Steps to reproduce the problem: • Run https://jsfiddle.net/1hu2gLvz/ in a new tab. • Click on "Add the same audio track the second time". • Observe JavaScript console. What is the expected behavior? MSID in the sdp should match the MediaStreamTrack's ID for both m= sections. What went wrong? MSID in the sdp does not match the MediaStreamTrack ID in the second m= section.
Thanks for the report Manjesh, I do not think that the mapping between msid and track ids is guaranteed anymore. See for instance https://github.com/w3c/webrtc-pc/issues/2005. The only meaningful part on msid is the media stream id part. I will close this one as WontFix. Please reopen if needed. Is it causing issues on your side?
Hi Youenn, Yes. Because of this issue, it is not possible to map our application-level Tracks with the underlying MediaStreamTracks. We have tackled this issue in our newer versions by always cloning MediaStreamTracks before adding them to PeerConnections, but we still need to support older versions for some time. - Manjesh