Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Uses property instead of jquery to hook "onplay" event of the large video.

paweldomas875a7b6f4f8b
diff --git a/modules/UI/videolayout/LargeVideo.js b/modules/UI/videolayout/LargeVideo.js
index bf05235c4a..c39ef63ecb 100644
--- a/modules/UI/videolayout/LargeVideo.js
+++ b/modules/UI/videolayout/LargeVideo.js
@@ -179,7 +179,10 @@ class VideoContainer extends LargeContainer {
this.$video.volume = 0;
}
- this.$video.on('play', onPlay);
+ // This does not work with Temasys plugin - has to be a property to be
+ // copied between new <object> elements
+ //this.$video.on('play', onPlay);
+ this.$video[0].onplay = onPlay;
}
/**