Remove unused setState playing:true in onReady method

This commit is contained in:
Lucas Zawacki 2020-02-12 17:39:45 -03:00
parent be9202a648
commit c7bba345c6

View File

@ -314,17 +314,12 @@ class VideoPlayer extends Component {
}
handleOnReady() {
const { isPresenter } = this.props;
const { hasPlayedBefore, playerIsReady } = this;
if (hasPlayedBefore || playerIsReady) {
return;
}
if (isPresenter) {
this.setState({ playing: true });
}
this.playerIsReady = true;
this.handleResize();