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

Commit 95725bd

Browse files
wayungejianjunz
authored andcommitted
Sort resolution buttons in ascending order. (#291)
1 parent 961f0a6 commit 95725bd

File tree

1 file changed

+1
-1
lines changed
  • src/samples/conference/public/scripts

1 file changed

+1
-1
lines changed

src/samples/conference/public/scripts/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const runSocketIOSample = function() {
6969
}
7070
}
7171
// Resolutions from extraCapabilities.
72-
for (const resolution of stream.extraCapabilities.video.resolutions) {
72+
for (const resolution of stream.extraCapabilities.video.resolutions.reverse()) {
7373
const button = $('<button/>', {
7474
text: resolution.width + 'x' +
7575
resolution.height,

0 commit comments

Comments
 (0)