README.md
1# simulcast
2
3demonstrates of how to handle incoming track with multiple simulcast rtp streams and show all them back.
4
5The browser will not send higher quality streams unless it has the available bandwidth. You can look at
6the bandwidth estimation in `chrome://webrtc-internals`. It is under `VideoBwe` when `Read Stats From: Legacy non-Standard`
7is selected.
8
9## Instructions
10
11### Build simulcast
12
13```shell
14cargo build --example simulcast
15```
16
17### Open simulcast example page
18
19[jsfiddle.net](https://jsfiddle.net/rxk4bftc) you should see two text-areas and a 'Start Session' button.
20
21### Run simulcast, with your browsers SessionDescription as stdin
22
23In the jsfiddle the top textarea is your browser, copy that and:
24
25#### Linux/macOS
26
27Run `echo $BROWSER_SDP | ./target/debug/examples/simulcast`
28
29#### Windows
30
311. Paste the SessionDescription into a file.
321. Run `./target/debug/examples/simulcast < my_file`
33
34### Input simulcast's SessionDescription into your browser
35
36Copy the text that `simulcast` just emitted and copy into second text area
37
38### Hit 'Start Session' in jsfiddle, enjoy your video!
39
40Your browser should send a simulcast track to WebRTC.rs, and then all 3 incoming streams will be relayed back.
41
42Congrats, you have used WebRTC.rs!
43