mirror of
https://github.com/pion/webrtc.git
synced 2025-10-06 15:46:54 +08:00

This change caused a ~24% performance decrease
Relates to pion/webrtc#1564
This reverts commit 47a7a64898
.
simulcast
demonstrates of how to handle incoming track with multiple simulcast rtp streams and show all them back.
Instructions
Download simulcast
go get github.com/pion/webrtc/v3/examples/simulcast
Open simulcast example page
jsfiddle.net you should see two text-areas and a 'Start Session' button.
Run simulcast, with your browsers SessionDescription as stdin
In the jsfiddle the top textarea is your browser, copy that and:
Linux/macOS
Run echo $BROWSER_SDP | simulcast
Windows
- Paste the SessionDescription into a file.
- Run
simulcast < my_file
Input simulcast's SessionDescription into your browser
Copy the text that simulcast
just emitted and copy into second text area
Hit 'Start Session' in jsfiddle, enjoy your video!
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