mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-09-03 20:35:17 +00:00
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() {
|
startPlaying() {
|
||||||
this.setState({
|
this.setState({
|
||||||
isPlaying: true,
|
isPlaying: true,
|
||||||
|
|
Loading…
Add table
Reference in a new issue