WebRTC websocket implementation now uses generalized base version, removed unused code from MP4 output

This commit is contained in:
Thulinma 2023-10-19 12:07:12 +02:00
parent b9819eb40f
commit 16e22eadbe
6 changed files with 19 additions and 255 deletions

File diff suppressed because one or more lines are too long

View file

@ -273,7 +273,7 @@ p.prototype.build = function (MistVideo,callback) {
}
}
if (ev.type in me.listeners) {
return me.listeners[ev.type].call(me,ev);
return me.listeners[ev.type].call(me,("data" in ev)?ev.data:ev);
}
MistVideo.log("Unhandled WebRTC event "+ev.type+": "+JSON.stringify(ev));
return false;