基本上,我有一个关于我的应用程序的想法,我希望 iPhone 相机即使在用户正在做其他事情(例如检查 twitter)时也能继续录制视频,例如 spy 凸轮。我有很多可用的编码解决方案
有没有办法用 HTML5、CSS、javascript 或 xcode 对此进行编码?
Best Answer-推荐答案 strong>
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
实现您想要的唯一其他方法是越狱您的设备并在 Cydia(越狱的 App Store)上分发您的应用程序。越狱将使您的设备摆脱 IOS 的限制,但也会使您的手机更容易受到黑客攻击...
关于javascript - 是否有保持 iPhone 摄像头录音的命令?,我们在Stack Overflow上找到一个类似的问题:
https://stackoverflow.com/questions/32036252/
|