Remove unused setState playing:true in onReady method
This commit is contained in:
parent
be9202a648
commit
c7bba345c6
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user