Fix error thrown by player after player is unmounted
This commit is contained in:
@@ -288,6 +288,13 @@ export const OwncastPlayer: FC<OwncastPlayerProps> = ({ source, online }) => {
|
|||||||
}
|
}
|
||||||
}, [clockSkew]);
|
}, [clockSkew]);
|
||||||
|
|
||||||
|
useEffect(
|
||||||
|
() => () => {
|
||||||
|
stopLatencyCompensator();
|
||||||
|
},
|
||||||
|
[],
|
||||||
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ display: 'grid' }}>
|
<div style={{ display: 'grid' }}>
|
||||||
{online && (
|
{online && (
|
||||||
|
|||||||
Reference in New Issue
Block a user