Monday, 17 May 2021

Android Webrtc change stream to STREAM_MUSIC

I have created webrtc session from one device to another, the device should be able to control the volume for music stream, but webrtc is originally designed to stream voice_call so is using the voice_call channel and using the call volume control is not good behavior for non-call app.

I tried to change STREAM_VOICE_CALL to STREAM_MUSIC in webrtc source WebRtcAudioTrack to use the stream music volume but the only change was android is detecting it as music but volume change with call volume.



from Android Webrtc change stream to STREAM_MUSIC

No comments:

Post a Comment