Files
webrtc/examples/simulcast
Sean DuBois fe447d6e56 Revert "Process RTCP Packets in OnTrack examples"
This is not needed. We don't perform any operations on inbound RTCP
packets. Receiver Reports and TWCC are generated by Reading RTP packets.

This reverts commit 080d7b8427.
2021-12-29 23:39:32 -05:00
..
2020-07-24 01:01:43 -07:00

simulcast

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.

Instructions

Download simulcast

export GO111MODULE=on
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

  1. Paste the SessionDescription into a file.
  2. 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