Issue #333 media switch fix

This commit is contained in:
Akinwale Ariwodola 2017-07-12 13:40:36 +01:00
parent 52393145ec
commit 877586a00a

View file

@ -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,