基本上,我有一个关于我的应用程序的想法,我希望 iPhone 相机即使在用户正在做其他事情(例如检查 twitter)时也能继续录制视频,例如 spy 凸轮。我有很多可用的编码解决方案
有没有办法用 HTML5、CSS、javascript 或 xcode 对此进行编码?
iOS 不允许您在后台持续运行相机。这是因为一旦每个应用程序进入后台状态,它只有很短的时间来结束它的进程并准备暂停(iOS 这样做是为了节省内存)。
来自 apple developer docs
In iOS, only specific app types are allowed to run in the background:
- Apps that play audible content to the user while in the background, such as a music player app
- Apps that record audio content while in the background
- Apps that keep users informed of their location at all times, such as a navigation app
- Apps that support Voice over Internet Protocol (VoIP)
- Apps that need to download and process new content regularly
- Apps that receive regular updates from external accessories
关于javascript - 是否有保持 iPhone 摄像头录音的命令?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32036252/
欢迎光临 OStack程序员社区-中国程序员成长平台 (https://ostack.cn/) | Powered by Discuz! X3.4 |