On error set 'current-mode'='ERROR' (video-stream.js)

This commit is contained in:
IgorA100
2025-08-04 13:11:16 +03:00
committed by GitHub
parent cdfa0df471
commit e89c608ec9

View File

@@ -23,8 +23,8 @@ class VideoStream extends VideoRTC {
modeEl.innerText = 'Go2RTC ' + 'error';
}
if (statusEl) statusEl.innerText = 'Go2RTC ' + value;
this.setAttribute('current-mode', value.toUpperCase());
this.currentMode = value.toUpperCase();
this.setAttribute('current-mode', 'ERROR');
this.currentMode = 'ERROR';
}
/**