Question: How to identify multiple video streams on javascript side (webrtc)
Hey Folks
Currently we have multiple video streams (RTSP) in our webrtc pipline, is there a good way during pipeline creating to set the mid attribute or modify the webrtctransceiver name.
We want to identify the video stream on RTCTrackEvent with RTCRtpTransceiver.mid or MediaStreamTrack .track on javascript side.
A modification of name property on webrtcbin callback "on-new-transceiver" doesn't work. (Has same name after set_property)
The only way that we currently see is to modify the SDP, and add a mslabel attribute to ssrc but this feels hacky.
SDP (shortened)
Source-1
a=ssrc:1444425869 msid:user3671549675@host-cd2decdb webrtctransceiver0
a=ssrc:1444425869 cname:user3671549675@host-cd2decdb
a=mid:video0
Source-2
a=ssrc:753894330 msid:user3671549675@host-cd2decdb webrtctransceiver1
a=ssrc:753894330 cname:user3671549675@host-cd2decdb
a=mid:video1
br thanks