webrtc: fix endless loading in Firefox (#4707)

Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
This commit is contained in:
dishmaker
2025-07-12 22:58:14 +02:00
committed by GitHub
co-authored by aler9
parent 1bd5febcad
commit cfcdab1f9e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -411,7 +411,7 @@ const loadValuesFromQuery = () => {
}
};
window.addEventListener('DOMContentLoaded', () => {
window.addEventListener('load', () => {
if (navigator.mediaDevices === undefined) {
setMessage(`can't access webcams or microphones. Make sure that WebRTC encryption is enabled.`);
return;
+1 -1
View File
@@ -80,7 +80,7 @@ const loadAttributesFromQuery = () => {
defaultControls = video.controls;
};
window.addEventListener('DOMContentLoaded', () => {
window.addEventListener('load', () => {
loadAttributesFromQuery();
new MediaMTXWebRTCReader({