Cleanup hls player
This commit is contained in:
parent
19a2589e77
commit
adaa8a71e7
@ -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 (
|
||||
|
Loading…
x
Reference in New Issue
Block a user