mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Disable hls ready callback to play
This commit is contained in:
parent
0e71242fd3
commit
a124a1a71f
@ -168,11 +168,6 @@ const Video = forwardRef<{ seek: (value: number) => void }, VideoProps>(function
|
||||
} else {
|
||||
hls.attachMedia(ref.current);
|
||||
hls.startLoad(0);
|
||||
hls.on(Hls.Events.MANIFEST_LOADED, async () => {
|
||||
try {
|
||||
await ref.current?.play();
|
||||
} catch {}
|
||||
});
|
||||
hls.on(Hls.Events.ERROR, (_, d) => {
|
||||
if (!d.fatal || !hls?.media) return;
|
||||
console.warn("Hls error", d);
|
||||
|
Loading…
x
Reference in New Issue
Block a user