Skip to content

Commit 7f93dec

Browse files
committed
fix camrea selected bug
1 parent f512a2c commit 7f93dec

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

2.ui-tweaking/3.read-video-with-external-control.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ <h1>Customized UI</h1>
173173
} catch (ex) {
174174
alert('Play video failed: ' + (ex.message || ex));
175175
}
176-
updateCurrentResolution();
176+
updateOptions();
177177
}
178178
});
179179
}

2.ui-tweaking/5.read-video-with-custom-default-ui.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ <h1>Customized Default UI</h1>
189189
}
190190
// when option is selected
191191
function camOptionSelected(e) {
192-
// if (currentCamera.deviceId === e.target.id) {
193-
// return;
194-
// }
192+
if (currentCamera.deviceId === e.target.id) {
193+
return;
194+
}
195195
toggleMaskView();
196196
camSelectorInput.value = e.target.innerText;
197197
cameras.forEach(item => {

0 commit comments

Comments
 (0)