Re: [webrtc-pc] addTransceiver woes

About the question for what a=msid to use when we don't have a track.id to announce...

It is already the case with replaceTrack() that the sending track.id does NOT necessarily correspond to the a=msid line. Example:
```
sender = pc1.addTrack(track1);  // a=msid with track1.id announced in SDP
negotiate
sender.replaceTrack(track2);  // seamlessly change which track to send, same a=msid as before
```
In fact, if we try to use track.id we can end up with multiple senders trying to use the same ID... the ID needs to be unique to the sender, not to whatever track happens to be sending at the moment.

So what should happen?
addTransceiver() creates a sendrecv transciever with a random id announced in the SDP. The receiving end is ready to receive and replaceTrack() works without renegotiation, just like it would have if addTrack() was used.

That is, the spec is already correct for addTransceiver(). But if a=msid takes the track's ID, we might need to file a bug on track ID collisions...

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

Received on Thursday, 28 December 2017 20:52:01 UTC