From 6cd8ded1f4092bab7ef774c08d69df7cf0e6b168 Mon Sep 17 00:00:00 2001 From: Christian Pillsbury Date: Fri, 26 Jul 2024 14:00:26 -0700 Subject: [PATCH] fix: clean up mux embed types for plyr use case. --- components/plyr-player.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/plyr-player.tsx b/components/plyr-player.tsx index 336ba4d..6e0d43a 100644 --- a/components/plyr-player.tsx +++ b/components/plyr-player.tsx @@ -33,8 +33,8 @@ const PlyrPlayer: React.FC = ({ playbackId, poster, currentTime, onLoaded useEffect(() => { const video = videoRef.current; const src = `${getStreamBaseUrl()}/${playbackId}.m3u8`; - let hls: Hls | null; - hls = null; + let hls: Hls | undefined; + hls = undefined; if (video) { video.addEventListener('error', videoError); playerRef.current = new Plyr(video, {