Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions web/js/video-rtc.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ export class VideoRTC extends HTMLElement {
this.ws.binaryType = 'arraybuffer';
this.ws.addEventListener('open', () => this.onopen());
this.ws.addEventListener('close', () => this.onclose());
this.ws.addEventListener('error', (ev) => this.onerror(ev));
this.ws.addEventListener('error', (ev) => this.onerrorGo2rtc(ev));

return true;
}
Expand Down Expand Up @@ -409,7 +409,7 @@ export class VideoRTC extends HTMLElement {
return true;
}

onerror(ev) {
onerrorGo2rtc(ev) {
console.log("Go2rtc websocket error ", ev);
}

Expand Down
4 changes: 2 additions & 2 deletions web/js/video-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class VideoStream extends VideoRTC {
return super.onclose();
}

onerror(ev) {
onerrorGo2rtc(ev) {
console.debug('stream.onerror');
const liveStream = this.closest('[id ^= "liveStream"]');
if (liveStream) {
Expand All @@ -129,7 +129,7 @@ class VideoStream extends VideoRTC {
monitorStream.restart(monitorStream.currentChannelStream);
}
}
super.onerror(ev);
super.onerrorGo2rtc(ev);
}

onpcvideo(ev) {
Expand Down
Loading