Webrtc multiple streams, how to identify
Acs Christoph
g4sacs at gmail.com
Mon May 3 17:20:06 UTC 2021
Hi
I have multiple streams with one webrtcbin, playing works fine but I need a
way to identify these streams.
Currently on js side when new RTCRtpTransceiver is added
(RTCPeerConnection.ontrack),
I see this information, each video streams has id's like video0, video1,
video2
Is there a way to change these id's (video0, video1, video2) to a different
name so that i can set an identifier for each side on gstreamer side and get
then these identifiers on js side ?
*JS RTCPeerConnection Track Info:*
track: MediaStreamTrack
id: "webrtctransceiver3"
kind: "video"
label: "webrtctransceiver3"
*JS RTCPeerConnection Transceiver Info*
transceiver: RTCRtpTransceiver
currentDirection: "recvonly"
direction: "recvonly"
mid: "video0"
my gstreamer pipeline looks this.
webrtcbin name=sendrecv bundle-policy=max-bundle rtspsrc
location=rtsp://213.208.158.226:554/stream_0 user-id=G4S user-pw=1211
name=rtspsrc latency=0
! rtph264depay name=depay ! h264parse ! rtph264pay config-interval=-1 !
application/x-rtp, media=video, encoding-name=H264, payload=96 ! sendrecv.
rtspsrc location=rtsp://213.208.158.226:554/stream_0 user-id=G4S
user-pw=1211 name=rtspsrc2 latency=0
! rtph264depay name=depay2 ! h264parse ! rtph264pay config-interval=-1 !
application/x-rtp, media=video, encoding-name=H264, payload=96 ! sendrecv.
rtspsrc location=rtsp://213.208.158.226:554/stream_0 user-id=G4S
user-pw=1211 name=rtspsrc3 latency=0
! rtph264depay name=depay3 ! h264parse ! rtph264pay config-interval=-1 !
application/x-rtp, media=video, encoding-name=H264, payload=96 ! sendrecv.
big thanks
br christoph
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list