red5pro / streaming-ios

This repository contains a simple project with a number of iOS examples that can be used for testing and reference.
Other
92 stars 29 forks source link

Unable to Start Streaming in Background (iOS) #176

Open Sm038229 opened 5 years ago

Sm038229 commented 5 years ago

Actually I want to start an incident via Panic-Button : 1 : Foreground Mode -

Log :

beetlejesss commented 5 years ago

@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.

Sm038229 commented 5 years ago

@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

saheemhussain commented 2 years ago

@Sm038229 Did you manage to make it work?