![]() This wasn’t too bad initially, as it was just iterating the list of menu items and clicking the one which matched my device’s name. Instead, we have to click the button to open the inputs list and then make the selections via AppleScript. Unfortunately, it doesn’t work as you get hit with Can’t make "Kevin's iPhone" into type video recording device. Tell application "QuickTime Player" set newMovieRecording to new movie recording tell newMovieRecording set current camera of newMovieRecording to "Kevin's iPhone" set current microphone of newMovieRecording to "Kevin's iPhone" end tell end tell ![]() It turns out that you should be able to do the following: A quick search turned up this Stack Overflow question. I had to select my iPhone for the video/audio inputs in QuickTime using AppleScript. The following is the code hosted on a Public Gist. If you need to, you can always dive into the functions themselves. ![]() The first eight lines cover all necessary customization needs as they are just function calls. I may be biased, but the source code is organized quite well in my opinion. This GIF demonstrates the automation that covers all seven manual steps. Enable KeepingYouAwake (so monitor doesn’t go to sleep with no inputs). ![]() There are a number of steps that I have to complete to mirror my iPhone to QuickTime: ![]() In this situation, I’ll mirror my iOS device through QuickTime so that I can play on a larger screen with a controller. As mentioned in my previous article, I’ll sometimes play on my exercise bike. For the games that have controller support, I’ll stream the video on a larger screen. Like many, I’m guilty of playing mobile games on my iPhone. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |