use overlay so player state is maintained between camera switches

This commit is contained in:
Nicolas Mowen 2024-05-10 08:29:30 -06:00
parent ac250cc891
commit 322c6cf61c

View File

@ -255,7 +255,7 @@ export default function HlsVideoPlayer({
onLoadedMetadata={() => { onLoadedMetadata={() => {
handleLoadedMetadata(); handleLoadedMetadata();
if (videoRef.current) { if (videoRef.current && volume) {
videoRef.current.volume = volume; videoRef.current.volume = volume;
} }
}} }}