如何在 iOS 上以后台模式使用 Twilio

问题描述 投票:0回答:1

我在 React Native 中创建了一个视频流应用程序,我使用了这个库的最新版本:twilio 在 iOS 中,当应用程序处于后台模式时,我无法使用相机, 我不知道我是否在后台使用了相机,

请告诉我 iOS 是否可行, 如果可能的话请给我提供一个示例和文档。
如果不可能,请在这里分享相关的文档

高级感谢!!

ios react-native twilio ios-background-mode
1个回答
0
投票

在 IOS 中,当应用程序进入后台时,相机无法工作。在这里查看更多:

Camera usage is prohibited while in the background. If you attempt to start running a camera while in the background, the capture session sends an AVCaptureSessionWasInterruptedNotification with this interruption reason. If you don't explicitly call the stopRunning method, your startRunning request is preserved, and when your app comes back to foreground, you receive AVCaptureSessionInterruptionEndedNotification and your session starts running.

© www.soinside.com 2019 - 2024. All rights reserved.