gpt4 book ai didi

javascript - 是否有保持 iPhone 摄像头录制的命令?

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:13:13 25 4
gpt4 key购买 nike

基本上,我对我的应用程序有一个想法,我希望 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

实现您想要的唯一其他方法是越狱您的设备并在 Cydia(越狱的 App Store)上分发您的应用程序。越狱将使您的设备摆脱 IOS 的限制,但也会使您的手机更容易被黑客入侵...

关于javascript - 是否有保持 iPhone 摄像头录制的命令?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32036252/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com