Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(RemoteVideo): .oncanplay -> addEventListener
Hristo Terezov851976ebdf54
diff --git a/modules/UI/videolayout/RemoteVideo.js b/modules/UI/videolayout/RemoteVideo.jsindex e2f6caeaf4..0591f3bb60 100644--- a/modules/UI/videolayout/RemoteVideo.js+++ b/modules/UI/videolayout/RemoteVideo.js@@ -456,14 +456,16 @@ export default class RemoteVideo extends SmallVideo {return;}- streamElement.oncanplay = () => {+ const listener = () => {this._canPlayEventReceived = true;this.VideoLayout.remoteVideoActive(streamElement, this.id);- streamElement.oncanplay = undefined;+ streamElement.removeEventListener('canplay', listener);// Refresh to show the videothis.updateView();};++ streamElement.addEventListener('canplay', listener);}/**