mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-03-29 03:01:43 -04:00
If browser does not support 'RTCPeerConnection', display message instead of image (MonitorStream.js)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user