Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit 5c97cb0

Browse files
starwarfanlzhai
authored andcommitted
Update simulcast document (#302)
1 parent d5d496e commit 5c97cb0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/mdfiles/simulcast.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ conference.join(token).then(resp => {
1818
* (https://w3c.github.io/webrtc-pc/#dom-rtcrtpencodingparameters).
1919
* The following option would create 3 streams with resolutions if browser supports:
2020
* OriginResolution, OriginResolution/2.0 and OriginResolution/4.0.
21-
* For current Firefox, the resolutions must be sorted in descending order.
21+
* For current Firefox, the resolutions should be sorted in descending order(reversed sample's option).
2222
* For current Safari, legacy simulcast is used and the parameters like `rid` won't take effect.
2323
* Besides `scaleResolutionDownBy`, other `RTCRtpEncodingParameters` can be set
2424
* if browser supports.
@@ -27,9 +27,9 @@ conference.join(token).then(resp => {
2727
* rather than 3.
2828
*/
2929
const publishOption = {video:[
30-
{rid: 'q', active: true, scaleResolutionDownBy: 1.0},
30+
{rid: 'q', active: true, scaleResolutionDownBy: 4.0},
3131
{rid: 'h', active: true, scaleResolutionDownBy: 2.0},
32-
{rid: 'f', active: true, scaleResolutionDownBy: 4.0}
32+
{rid: 'f', active: true, scaleResolutionDownBy: 1.0}
3333
]};
3434
/*
3535
* Codec priority list.
@@ -70,4 +70,4 @@ conference.join(token).then(resp => {
7070
1. The simulcast stream published to conference won't be transcoded.
7171
2. The `rid` attribute may not be present once a 'streamadded' event triggered. Users should listen on stream's `updated`
7272
event for new `rid` added.
73-
3. Current browsers(Chrome/Firefox/Safari) can support VP8 simulcast well while H.264 simulcast has some limitations.
73+
3. Current browsers support VP8 simulcast well while H.264 simulcast has some limitations.

0 commit comments

Comments
 (0)