Cleanup hls player
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
Kieran 2023-06-17 22:38:03 +01:00
parent 19a2589e77
commit adaa8a71e7
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
1 changed files with 1 additions and 0 deletions

View File

@ -8,6 +8,7 @@ export function LiveVideoPlayer(props: HTMLProps<HTMLVideoElement>) {
const hls = new Hls();
hls.loadSource(props.src);
hls.attachMedia(video.current);
return () => hls.destroy();
}
}, [video, props]);
return (