aws-samples/amazon-ivs-broadcast-ios-sample

Streaming from camera is not supported in background for iOS

Closed this issue · 1 comments

After giving permissions of background modes like - voice for IP , background fetch, audio (I tried all single and together as well). But as soon as app goes in background mode streaming stops automatically.

is there a way to handle streaming in background for iOS applications ?

Yes there is, please use the createAppBackgroundImageSource API. Apple does not allow GPU access in the background, which means it is not possible to continue to encode live video. This API lets you work around this limitation by continuing to broadcast live audio while looping pre-encoded video.