mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-31 12:14:46 -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 {
|
} else {
|
||||||
hls.attachMedia(ref.current);
|
hls.attachMedia(ref.current);
|
||||||
hls.startLoad(0);
|
hls.startLoad(0);
|
||||||
hls.on(Hls.Events.MANIFEST_LOADED, async () => {
|
|
||||||
try {
|
|
||||||
await ref.current?.play();
|
|
||||||
} catch {}
|
|
||||||
});
|
|
||||||
hls.on(Hls.Events.ERROR, (_, d) => {
|
hls.on(Hls.Events.ERROR, (_, d) => {
|
||||||
if (!d.fatal || !hls?.media) return;
|
if (!d.fatal || !hls?.media) return;
|
||||||
console.warn("Hls error", d);
|
console.warn("Hls error", d);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user