If browser does not support 'RTCPeerConnection', display message instead of image (MonitorStream.js)

This commit is contained in:
IgorA100
2025-04-10 16:44:25 +03:00
committed by GitHub
parent c5f14170ed
commit 63a54f776c

View File

@@ -1142,7 +1142,9 @@ const waitUntil = (condition) => {
function startRTSP2WebPlay(videoEl, url, stream) {
if (typeof RTCPeerConnection !== 'function') {
console.log(`Your browser does not support 'RTCPeerConnection'. Monitor '${stream.name}' ID=${stream.id} not started.`);
const msg = `Your browser does not support 'RTCPeerConnection'. Monitor '${stream.name}' ID=${stream.id} not started.`;
console.log(msg);
stream.getElement().before(document.createTextNode(msg));
stream.RTSP2WebType = null; // Avoid repeated restarts.
return;
}