diff --git a/bigbluebutton-html5/imports/ui/components/external-video-player/component.jsx b/bigbluebutton-html5/imports/ui/components/external-video-player/component.jsx index 646bf0cdc516690d75d7d6c5f78dfa2d41c29bd4..5c7f21fb5df636bb4afc40e7773afd90979ac122 100644 --- a/bigbluebutton-html5/imports/ui/components/external-video-player/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/external-video-player/component.jsx @@ -112,14 +112,13 @@ class VideoPlayer extends Component { registerVideoListeners() { const { isPresenter } = this.props; - const { playing } = this.state; if (isPresenter) { this.syncInterval = setInterval(() => { const curTime = this.player.getCurrentTime(); const rate = this.getCurrentPlaybackRate(); - sendMessage('playerUpdate', { rate, time: curTime, state: playing }); + sendMessage('playerUpdate', { rate, time: curTime, state: this.state.playing }); }, SYNC_INTERVAL_SECONDS * 1000); } else { onMessage('play', ({ time }) => { @@ -168,7 +167,7 @@ class VideoPlayer extends Component { }, 'Seek external video to:'); } - if (playing !== data.state) { + if (this.state.playing !== data.state) { this.setState({ playing: data.state }); } });