Merge pull request #11931 from ramonlsouza/issue-11708-2

Stop viewer play/stop actions on external videos
This commit is contained in:
Anton Georgiev 2021-04-22 17:16:34 -04:00 committed by GitHub
commit 1416a0d255
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -396,6 +396,10 @@ class VideoPlayer extends Component {
this.setState({ playing: true });
this.handleFirstPlay();
if (!isPresenter && !playing) {
this.setState({ playing: false });
}
}
handleOnPause() {
@ -410,6 +414,10 @@ class VideoPlayer extends Component {
this.setState({ playing: false });
this.handleFirstPlay();
if (!isPresenter && playing) {
this.setState({ playing: true });
}
}
render() {