Cleanup hls player
continuous-integration/drone/push Build encountered an error
Details
continuous-integration/drone/push Build encountered an error
Details
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…
Reference in New Issue