diff --git a/components/player/DesktopVideoPlayer.tsx b/components/player/DesktopVideoPlayer.tsx index accdc5d..853632f 100644 --- a/components/player/DesktopVideoPlayer.tsx +++ b/components/player/DesktopVideoPlayer.tsx @@ -27,7 +27,7 @@ export function DesktopVideoPlayer({ const { currentTime } = state; // Preload HLS segments - useHLSPreloader({ src, currentTime }); + useHLSPreloader({ src, currentTime, videoRef: refs.videoRef, isLoading: state.isLoading }); const { videoRef, diff --git a/components/player/MobileVideoPlayer.tsx b/components/player/MobileVideoPlayer.tsx index 7098aa7..f6cae96 100644 --- a/components/player/MobileVideoPlayer.tsx +++ b/components/player/MobileVideoPlayer.tsx @@ -31,7 +31,7 @@ export function MobileVideoPlayer({ const { currentTime } = state; // Preload HLS segments - useHLSPreloader({ src, currentTime }); + useHLSPreloader({ src, currentTime, videoRef: refs.videoRef, isLoading: state.isLoading }); const { videoRef, @@ -97,7 +97,7 @@ export function MobileVideoPlayer({ {/* Video Element */}