diff --git a/modules/UI/videolayout/VideoContainer.js b/modules/UI/videolayout/VideoContainer.js index 25ae512e3..9f1ab8dbc 100644 --- a/modules/UI/videolayout/VideoContainer.js +++ b/modules/UI/videolayout/VideoContainer.js @@ -206,7 +206,7 @@ export class VideoContainer extends LargeContainer { this.avatarHeight = $("#dominantSpeakerAvatar").height(); - var onPlayCallback = function (event) { + var onPlayingCallback = function (event) { if (typeof resizeContainer === 'function') { resizeContainer(event); } @@ -215,7 +215,7 @@ export class VideoContainer extends LargeContainer { // This does not work with Temasys plugin - has to be a property to be // copied between new elements //this.$video.on('play', onPlay); - this.$video[0].onplay = onPlayCallback; + this.$video[0].onplaying = onPlayingCallback; /** * A Set of functions to invoke when the video element resizes.