mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-19 09:42:13 +00:00
unload player fixed
This commit is contained in:
parent
ea44bd6726
commit
3bae7de581
1 changed files with 2 additions and 2 deletions
|
|
@ -64,7 +64,7 @@ const Player = ({ urlParams }) => {
|
|||
setVideoState({ [propName]: propValue });
|
||||
}, []);
|
||||
const onEnded = useDeepEqualMemo(() => () => {
|
||||
core.dispatch({ action: 'Unload' }, 'Player');
|
||||
core.dispatch({ action: 'Unload' }, 'player');
|
||||
if (player.lib_item !== null) {
|
||||
core.dispatch({
|
||||
action: 'Ctx',
|
||||
|
|
@ -217,7 +217,7 @@ const Player = ({ urlParams }) => {
|
|||
duration: videoState.duration
|
||||
}
|
||||
}
|
||||
});
|
||||
}, 'player');
|
||||
}
|
||||
}, [videoState.time, videoState.duration]);
|
||||
React.useLayoutEffect(() => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue