Issue #333 media switch fix
This commit is contained in:
parent
52393145ec
commit
877586a00a
1 changed files with 7 additions and 0 deletions
|
@ -14,6 +14,13 @@ class Video extends React.PureComponent {
|
|||
};
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
// reset playing state upon change path action
|
||||
if (this.state.isPlaying) {
|
||||
this.state.isPlaying = false;
|
||||
}
|
||||
}
|
||||
|
||||
startPlaying() {
|
||||
this.setState({
|
||||
isPlaying: true,
|
||||
|
|
Loading…
Add table
Reference in a new issue