diff --git a/app/(auth)/player/transcoding-player.tsx b/app/(auth)/player/transcoding-player.tsx index db52c5e8..8fba5a57 100644 --- a/app/(auth)/player/transcoding-player.tsx +++ b/app/(auth)/player/transcoding-player.tsx @@ -224,12 +224,6 @@ const Player = () => { videoRef.current?.pause(); }, [videoRef]); - const stop = useCallback(() => { - setIsPlaybackStopped(true); - videoRef.current?.pause(); - reportPlaybackStopped(); - }, [videoRef]); - const seek = useCallback( (seconds: number) => { videoRef.current?.seek(seconds); @@ -248,6 +242,12 @@ const Player = () => { revalidateProgressCache(); }; + const stop = useCallback(() => { + setIsPlaybackStopped(true); + videoRef.current?.pause(); + reportPlaybackStopped(); + }, [videoRef, reportPlaybackStopped]); + const reportPlaybackStart = async () => { if (!item?.Id) return; await getPlaystateApi(api!).onPlaybackStart({