简体   繁体   English

在iPhone上以编程方式录制视频

[英]record video programmatically on iphone

Is there public interface in SDK 3.* to start video recording programmatically? SDK 3. *中是否有公共接口可以以编程方式开始视频录制? Also how can I customize camera button appearance? 另外,如何自定义相机按钮的外观?

Thanks, 谢谢,

Nava 纳瓦

No you cannot do that right now. 不,您现在不能这样做。 There has been some rumours that it might be possible in 3.2 though, but no idea how accurate that is. 有传言说虽然在3.2中是可能的,但是不知道它有多精确。

This is very late reply! 这是很晚的回复!

I have written a script that you can run to record your iphone screen. 我编写了一个脚本,可以运行该脚本来记录您的iPhone屏幕。

Select your iPhone or iPad manually from the list of devices in QuickTime Player and run the script you'll see your device's screen replicated in the QuickTime window and gets recorded. 从QuickTime Player中的设备列表中手动选择iPhone或iPad,然后运行脚本,您将看到设备的屏幕在QuickTime窗口中复制并记录下来。

Create a shell script and the following: 创建一个shell脚本,然后执行以下操作:

osascript <<EOD
tell application "QuickTime Player"
    activate
    start (new movie recording)
    delay 5
    tell application "System Events"
          key down {command}
          keystroke "w"
          key up {command}
          key down {command}
          keystroke "s"
          key up {command}
    end  tell
end tell
EOD 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM