Re: [webrtc-pc] Change stream associations (#2658)

So what is the best way to dynamically change A/V sync between tracks?
I'm trying to do this:
1. Conference has two users (U1, U2) each with a video track (V1, V2). The conference has one audio track (A) for the current active speaker.
2. U1 is the active speaker. Audio track A and video track V1 are part of stream S1 and there is A/V sync.
3. Video track V2 is part of stream S2 with no audio track.
4. Now U2 is the active speaker.
5. Audio track A is removed from stream S1 and added to stream S2. Now there is A/V sync between A and V2.

Is it possible to dynamically change the A/V sync of the audio track between two different video tracks? Is it supposed to work in Firefox/Chrome/Safari?
Should I use setStreams on the sender side or use addTrack/removeTrack on the receiver side?

-- 
GitHub Notification of comment by pablopla
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/2658#issuecomment-1340610845 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 7 December 2022 09:00:03 UTC