demonstrates of how to handle incoming track with multiple simulcast rtp streams and show all them back.
The browser will not send higher quality streams unless it has the available bandwidth. You can look at
the bandwidth estimation in chrome://webrtc-internals
. It is under VideoBwe
when Read Stats From: Legacy non-Standard
is selected.
go install github.com/pion/webrtc/v4/examples/simulcast@latest
jsfiddle.net you should see two text-areas and two buttons: Copy browser SDP to clipboard
, Start Session
.
In the jsfiddle the top textarea is your browser's Session Description. Press Copy browser SDP to clipboard
or copy the base64 string manually.
We will use this value in the next step.
Run echo $BROWSER_SDP | simulcast
- Paste the SessionDescription into a file.
- Run
simulcast < my_file
Copy the text that simulcast
just emitted and copy into second text area
Your browser should send a simulcast track to Pion, and then all 3 incoming streams will be relayed back.
Congrats, you have used Pion WebRTC! Now start building something cool