diff --git a/components/CurrentlyPlayingBar.tsx b/components/CurrentlyPlayingBar.tsx index 8bdd1e41..3bc7f01c 100644 --- a/components/CurrentlyPlayingBar.tsx +++ b/components/CurrentlyPlayingBar.tsx @@ -84,6 +84,16 @@ export const CurrentlyPlayingBar: React.FC = () => { }; }); + const startPosition = useMemo( + () => + currentlyPlaying?.item?.UserData?.PlaybackPositionTicks + ? Math.round( + currentlyPlaying?.item.UserData.PlaybackPositionTicks / 10000 + ) + : 0, + [currentlyPlaying?.item] + ); + const videoSource = useMemo(() => { if (!api || !currentlyPlaying || !poster) return null; return {