@@ -18,7 +18,7 @@ conference.join(token).then(resp => {
18
18
* (https://w3c.github.io/webrtc-pc/#dom-rtcrtpencodingparameters).
19
19
* The following option would create 3 streams with resolutions if browser supports:
20
20
* 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) .
22
22
* For current Safari, legacy simulcast is used and the parameters like `rid` won't take effect.
23
23
* Besides `scaleResolutionDownBy`, other `RTCRtpEncodingParameters` can be set
24
24
* if browser supports.
@@ -27,9 +27,9 @@ conference.join(token).then(resp => {
27
27
* rather than 3.
28
28
*/
29
29
const publishOption = {video:[
30
- {rid: 'q', active: true, scaleResolutionDownBy: 1 .0},
30
+ {rid: 'q', active: true, scaleResolutionDownBy: 4 .0},
31
31
{rid: 'h', active: true, scaleResolutionDownBy: 2.0},
32
- {rid: 'f', active: true, scaleResolutionDownBy: 4 .0}
32
+ {rid: 'f', active: true, scaleResolutionDownBy: 1 .0}
33
33
]};
34
34
/*
35
35
* Codec priority list.
@@ -70,4 +70,4 @@ conference.join(token).then(resp => {
70
70
1 . The simulcast stream published to conference won't be transcoded.
71
71
2 . The ` rid ` attribute may not be present once a 'streamadded' event triggered. Users should listen on stream's ` updated `
72
72
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