mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix duplicated code issue
This commit is contained in:
parent
954909fecd
commit
f42eaeb953
@ -105,14 +105,6 @@ const Video = forwardRef<{ seek: (value: number) => void }, VideoProps>(function
|
||||
useSubtitle(ref, subtitle, fonts);
|
||||
|
||||
|
||||
useLayoutEffect(() => {
|
||||
(async () => {
|
||||
await initHls();
|
||||
// Still load the hls source to list available qualities.
|
||||
// Note: This may ask the server to transmux the audio/video by loading the index.m3u8
|
||||
hls.loadSource(source.hls);
|
||||
})();
|
||||
}, [source.hls]);
|
||||
useLayoutEffect(() => {
|
||||
(async () => {
|
||||
if (!ref?.current || !source.uri) return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user