fix: fixing hls videos

This commit is contained in:
Chubby Granny Chaser
2025-11-30 03:41:41 +00:00
parent b135087ffe
commit e9de8264e2
3 changed files with 18 additions and 4 deletions

View File

@@ -76,7 +76,7 @@ export function useHlsVideo(
logger.warn("Failed to autoplay HLS video:", err);
});
}
return () => {
video.src = "";
};
@@ -99,4 +99,3 @@ export function useHlsVideo(
return hlsRef.current;
}

View File

@@ -46,7 +46,9 @@ export function VideoPlayer({
muted={muted}
autoPlay={autoplay}
tabIndex={tabIndex}
/>
>
<track kind="captions" />
</video>
);
}
@@ -62,7 +64,7 @@ export function VideoPlayer({
tabIndex={tabIndex}
>
{videoSrc && <source src={videoSrc} type={videoType} />}
<track kind="captions" />
</video>
);
}