Rename startRTSPtoWebRTSPPaly to startRTSPtoWebPlay

pull/3779/head
Isaac Connor 2023-10-06 10:43:12 -04:00
parent 93f5378f4e
commit ea76a03043
1 changed files with 3 additions and 3 deletions

View File

@ -249,7 +249,7 @@ function MonitorStream(monitorData) {
webrtcUrl = rtsp2webModUrl;
webrtcUrl.pathname = "/stream/" + this.id + "/channel/0/webrtc";
console.log(webrtcUrl.href);
startRTSP2WebRTSPPlay(videoEl, webrtcUrl.href);
startRTSP2WebPlay(videoEl, webrtcUrl.href);
}
} else {
// zms stream
@ -871,7 +871,7 @@ const waitUntil = (condition) => {
});
};
function startRTSP2WebRTSPPlay(videoEl, url) {
function startRTSP2WebPlay(videoEl, url) {
const webrtc = new RTCPeerConnection({
iceServers: [{
urls: ['stun:stun.l.google.com:19302']
@ -912,7 +912,7 @@ function startRTSP2WebRTSPPlay(videoEl, url) {
};
webrtcSendChannel.onclose = (_event) => {
console.log(`${webrtcSendChannel.label} has closed`);
startRTSP2WebRTSPPlay(videoEl, url);
startRTSP2WebPlay(videoEl, url);
};
webrtcSendChannel.onmessage = (event) => console.log(event.data);
}