<div dir="ltr">You can always rewrite the sdp after it's been generated and include mslabel attributes (sibling to a=ssrc). That's what we do. </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 3, 2021 at 12:20 PM Acs Christoph via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi<br>
<br>
I have multiple streams with one webrtcbin, playing works fine but I need a<br>
way to identify these streams.<br>
Currently on js side when new RTCRtpTransceiver is added<br>
(RTCPeerConnection.ontrack), <br>
I see this information, each video streams has id's like video0, video1,<br>
video2<br>
<br>
Is there a way to change these id's (video0, video1, video2) to a different<br>
name so that i can set an identifier for each side on gstreamer side and get<br>
then these identifiers on js side ?<br>
<br>
*JS RTCPeerConnection Track Info:*<br>
track: MediaStreamTrack<br>
id: "webrtctransceiver3"<br>
kind: "video"<br>
label: "webrtctransceiver3"<br>
<br>
*JS RTCPeerConnection Transceiver Info*<br>
transceiver: RTCRtpTransceiver<br>
currentDirection: "recvonly"<br>
direction: "recvonly"<br>
mid: "video0"<br>
<br>
my gstreamer pipeline looks this.<br>
webrtcbin name=sendrecv bundle-policy=max-bundle rtspsrc<br>
location=rtsp://<a href="http://213.208.158.226:554/stream_0" rel="noreferrer" target="_blank">213.208.158.226:554/stream_0</a> user-id=G4S user-pw=1211<br>
name=rtspsrc latency=0<br>
 ! rtph264depay name=depay ! h264parse ! rtph264pay config-interval=-1 !<br>
application/x-rtp, media=video, encoding-name=H264, payload=96 ! sendrecv.<br>
rtspsrc location=rtsp://<a href="http://213.208.158.226:554/stream_0" rel="noreferrer" target="_blank">213.208.158.226:554/stream_0</a> user-id=G4S<br>
user-pw=1211 name=rtspsrc2 latency=0<br>
 ! rtph264depay name=depay2 ! h264parse ! rtph264pay config-interval=-1 !<br>
application/x-rtp, media=video, encoding-name=H264, payload=96 ! sendrecv.<br>
rtspsrc location=rtsp://<a href="http://213.208.158.226:554/stream_0" rel="noreferrer" target="_blank">213.208.158.226:554/stream_0</a> user-id=G4S<br>
user-pw=1211 name=rtspsrc3 latency=0<br>
 ! rtph264depay name=depay3 ! h264parse ! rtph264pay config-interval=-1 !<br>
application/x-rtp, media=video, encoding-name=H264, payload=96 ! sendrecv.<br>
<br>
big thanks <br>
br christoph<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div>