Skip to content

Commit 095b98e

Browse files
committed
2 parents 4676f8b + e737844 commit 095b98e

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,6 @@ <h1>Customized Default UI</h1>
144144
optionsUl.appendChild(li);
145145
});
146146
const camOptions = document.querySelectorAll("#ul_options_camera span");
147-
camOptions.forEach(span => {
148-
149-
if (span.id === currentCamera.deviceId) {
150-
151-
} else {
152-
span.classList.remove("selected");
153-
}
154-
});
155147
}
156148
// resolution selector renderer
157149
async function renderResolutionSelector() {
@@ -237,8 +229,12 @@ <h1>Customized Default UI</h1>
237229
}
238230
// camera's styles mask show or not
239231
function toggleMaskView() {
232+
let dceLoading = document.getElementById('dce-loading');
240233
let dceMask = document.getElementById('dce-mask');
234+
let dceScanlight = document.getElementById('dce-scanlight');
235+
dceLoading.style.display = dceLoading.style.display === "none" ? "inline-block" : "none"
241236
dceMask.hidden = !dceMask.hidden;
237+
dceScanlight.hidden = !dceScanlight.hidden;
242238
}
243239
// click anywhere outside the options to collapse the options
244240
function clickToHiddenOptions(e) {

0 commit comments

Comments
 (0)