Stop playback metrics on player unmount

This commit is contained in:
Gabe Kangas
2022-10-12 18:08:14 -07:00
parent 4eb5bff3db
commit d40e66b7ef
2 changed files with 10 additions and 3 deletions

View File

@@ -291,6 +291,7 @@ export const OwncastPlayer: FC<OwncastPlayerProps> = ({ source, online }) => {
useEffect(
() => () => {
stopLatencyCompensator();
playbackMetrics.stop();
},
[],
);