Skip to content

Commit

Permalink
fix: clean up mux embed types for plyr use case.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjpillsbury committed Jul 26, 2024
1 parent 2d5be62 commit 6cd8ded
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/plyr-player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ const PlyrPlayer: React.FC<Props> = ({ 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, {
Expand Down

0 comments on commit 6cd8ded

Please sign in to comment.