streaming-ios icon indicating copy to clipboard operation
streaming-ios copied to clipboard

Unable to Start Streaming in Background (iOS)

Open Sm038229 opened this issue 5 years ago • 3 comments

Actually I want to start an incident via Panic-Button : 1 : Foreground Mode - - It works fine as required. 2 : Background Mode - - Streaming fails. It doesn't give any error.

Log : - [aurioc] 1540: AUIOClient_StartIO failed (561145187) Status not 0! 561145187

Sm038229 avatar Nov 18 '19 13:11 Sm038229

@Sm038229 have you tried the https://github.com/red5pro/streaming-ios/tree/master/R5ProTestbed/Tests/PublishBackground example? You have to start streaming in the foreground in order for the device to give permissions to the camera and microphone. You can't stream video from the background - but you should be able to continue streaming audio when the app goes into the background, per this example.

beetlejesss avatar Nov 18 '19 14:11 beetlejesss

@beetlejesss If the app is in background is there any way to trigger/start streaming through any external bluetooth devices. In my case I have to start streaming using panic button.

With panic button I am able to invoke stream.start() function however streaming does not start and I get following in the log

[aurioc] 1540: AUIOClient_StartIO failed (561145187) Status not 0! 561145187

Sm038229 avatar Nov 19 '19 06:11 Sm038229

@Sm038229 Did you manage to make it work?

saheemhussain avatar Jul 14 '22 14:07 saheemhussain