Skip to content

Commit

Permalink
Merge pull request #2267 from Orphis/sort_simulcast_layers
Browse files Browse the repository at this point in the history
Properly sort simulcast layers in example by size
  • Loading branch information
aboba committed Aug 13, 2019
2 parents c186f21 + 6aa5c68 commit 0433cc4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions webrtc.html
Expand Up @@ -8213,16 +8213,16 @@ <h3>Encoding Parameter Examples</h3>

// Example of 3-layer spatial simulcast with all but the lowest resolution layer disabled
var encodings = [
{rid: 'f', active: false},
{rid: 'h', active: false, scaleResolutionDownBy: 2.0},
{rid: 'q', active: true, scaleResolutionDownBy: 4.0}
{rid: 'h', active: false, scaleResolutionDownBy: 2.0},
{rid: 'f', active: false},
];

// Example of 3-layer framerate simulcast with the middle layer disabled
var encodings = [
{rid: 'f', active: true, maxFramerate: 60},
{rid: 'h', active: false, maxFramerate: 30},
{rid: 'q', active: true, maxFramerate: 15}
{rid: 'h', active: false, maxFramerate: 30},
{rid: 'f', active: true, maxFramerate: 60},
];
</pre>
</div>
Expand Down Expand Up @@ -11867,9 +11867,9 @@ <h3>Simulcast Example</h3>
pc.addTransceiver(stream.getVideoTracks()[0], {
direction: 'sendonly',
sendEncodings: [
{rid: 'f'},
{rid: 'h', scaleResolutionDownBy: 2.0},
{rid: 'q', scaleResolutionDownBy: 4.0}
{rid: 'h', scaleResolutionDownBy: 2.0},
{rid: 'f'},
]
});
} catch (err) {
Expand Down

0 comments on commit 0433cc4

Please sign in to comment.