Handling Deactivating an audio session that has running I/O.

andrew.n

Member
After we start broadcasting we have some events where we play some local audio files using an AVPlayer.
The problem is that the OS is closing the audio session that is used by FlashPhoner SDK.
debug logs: Deactivating an audio session that has running I/O. All I/O should be stopped or paused prior to deactivating the audio session.

How can I enable the audio for my RTCMTLVideoView? calling `unmuteAudio` function is not helping...
 

Max

Administrator
Staff member
There is another similar issue: you can play either Youtube stream or WebRTC stream in browser but not both of the simulateously.
And, unfortunately, this seems to be iOS issue. So you have to stop WebRTC audio session before playing a local audio, and then reestablish it (stop stream, then play again for example)
How can I enable the audio for my RTCMTLVideoView? calling `unmuteAudio` function is not helping...
unmuteAudio does not restore WebRTC publish session if this is already closed by iOS.
 
Top