twilio / twilio-video-app-ios

A collaboration application built with the Twilio Video iOS SDK
Apache License 2.0
246 stars 54 forks source link

Using the Camera Object while the app goes to Background iOS #209

Open dev-odaptos opened 2 years ago

dev-odaptos commented 2 years ago

Use Multitasking feature on iOS

The Problem

This is the problems we are facing, we are making a video app and we need to make use of the camera while the app is on the background, but the Twilio SDK and WebRTC keeps closing the connection of the camera when the app goes to the background.

Solution You Would Like

The ideal will be for the App not to close the connection to the camera when the app goes to the background.

this is what we are trying to achieve: https://developer.apple.com/documentation/avkit/accessing_the_camera_while_multitasking#overview

Do you have a scope on when this feature will be present on Twilio ? or a workaround using native modules?

PD: on the new iOS Multicamera Access is already enabled for all apps.

fukemy commented 1 year ago

Hi, as my knowledged, the local camera stop right after app go background, you need to request accesscamerawhilemultitasking first for this from IOS 16, you can display remote video in background