prevent remounting
This commit is contained in:
parent
be7921e70b
commit
879cba77cb
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ function VideoViewer(props: Props) {
|
||||||
// Then it's set to false immediately after so we can re-mount a new player
|
// Then it's set to false immediately after so we can re-mount a new player
|
||||||
setRequireRedraw(true);
|
setRequireRedraw(true);
|
||||||
};
|
};
|
||||||
}, [videoRef, source, contentType, setRequireRedraw, requireRedraw, muted, volume]);
|
}, [videoRef, source, contentType, setRequireRedraw, requireRedraw]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (requireRedraw) {
|
if (requireRedraw) {
|
||||||
|
|
Loading…
Reference in a new issue