fix clicking play twice required on most videos
This commit is contained in:
parent
cd7e780465
commit
f4bdabd5d8
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ class Video extends React.PureComponent {
|
|||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
// reset playing state upon change path action
|
||||
if (!this.isMediaSame(nextProps) && this.state.isPlaying) {
|
||||
if (!this.isMediaSame(nextProps) && this.props.fileInfo && this.state.isPlaying) {
|
||||
this.state.isPlaying = false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue