You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm facing an issue while integrating WebRTC audio streaming and Mapbox Navigation audio in the same iOS application. When the Mapbox Navigation SDK plays audio (e.g., turn-by-turn instructions), it interrupts and stops the audio and mic of the ongoing WebRTC audio stream that uses AVAudioSession. This behavior negatively impacts the user experience, especially in scenarios where continuous communication via WebRTC is crucial alongside navigation.
Steps to reproduce
Integrate WebRTC audio streaming using WebRTC's RTCAudioSession.
Add Mapbox Navigation SDK to the project.
Start a WebRTC audio stream.
Trigger a navigation session that plays audio instructions (e.g., "Turn left in 100 meters").
Expected behavior
Mapbox Navigation audio should coexist with WebRTC audio:
Both audio streams should play simultaneously without interruption.
Navigation audio should not interfere with WebRTC audio streams.
Actual behavior
Mapbox Navigation audio interrupts and stops the volume and mic of the WebRTC audio stream.
After navigation audio finishes, WebRTC audio does not fully recover and it stops entirely.
Is this a one-time issue or a repeatable issue?
repeatable
The text was updated successfully, but these errors were encountered:
You described the expected behavior of the SDK. The navigation instruction interrupts other audio sessions on device. This is the default SDK behavior.
If you want to change this, feel free to write your custom SpeechSynthesizing implementation. Take a look at the sample.
Mapbox Navigation SDK version
2.0.1
I'm facing an issue while integrating WebRTC audio streaming and Mapbox Navigation audio in the same iOS application. When the Mapbox Navigation SDK plays audio (e.g., turn-by-turn instructions), it interrupts and stops the audio and mic of the ongoing WebRTC audio stream that uses AVAudioSession. This behavior negatively impacts the user experience, especially in scenarios where continuous communication via WebRTC is crucial alongside navigation.
Steps to reproduce
Expected behavior
Mapbox Navigation audio should coexist with WebRTC audio:
Actual behavior
Is this a one-time issue or a repeatable issue?
repeatable
The text was updated successfully, but these errors were encountered: