mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-18 00:33:59 +00:00
fix: fixing hls videos
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user