On Android, when a peerConnection is connected and onAddStream is called with the remote stream we can decide what to do with the remote video track, i.e we can add a renderer if we want to show it. But for the audio track there’s no option, it’s always played. Is there a way of muting the track without disabling it?
This issue is important for us because we are trying to relay streams in Android.
( A ) ------- Audio_A ------------>>( B ) --------Audio_A----------->>( C )
In this setup we want to send the Audio from A all the way to C and play it there.
We use B to relay it and we don't want to play the audio in B.
If we disable the AudioTrack from the stream in B, it won't be relayed to C.
We took a look at the source code and it seems like WebRtcAudioTrack.java is getting the data from the native WebRTC layer and creating an Android AudioTrack and playing it, but we see no public method access. Would accessing this AudioTrack and using the normal API be enough to stop playback on B but keep WebRTC processing in place?
--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/747e4de8-81d0-4a41-823d-78609035e951%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.