@@ -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 => {
70701 . The simulcast stream published to conference won't be transcoded.
71712 . The ` rid ` attribute may not be present once a 'streamadded' event triggered. Users should listen on stream's ` updated `
7272event 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