feat: Introduce pauseAfterSeek option to the video player, refresh landing page content and animations, and update the dashboard image.

This commit is contained in:
Yusuf İpek
2026-02-26 15:19:11 +03:00
parent 8d59095e72
commit bbf44fd0aa
9 changed files with 512 additions and 821 deletions
@@ -740,7 +740,11 @@ export function useVideoPlayer({
}
}, [isPlaying, playerRef]);
const handleSeekToTimestamp = useCallback((timestamp: number, annotation?: string | null) => {
const handleSeekToTimestamp = useCallback((
timestamp: number,
annotation?: string | null,
options?: { pauseAfterSeek?: boolean }
) => {
setCurrentTime(timestamp);
if (playerRef.current?.seekTo) {
const playerState = playerRef.current.getPlayerState?.();
@@ -751,7 +755,9 @@ export function useVideoPlayer({
: isPlaying;
playerRef.current.seekTo(timestamp, true);
if (wasPlayingBeforeSeek) {
if (options?.pauseAfterSeek) {
playerRef.current.pauseVideo();
} else if (wasPlayingBeforeSeek) {
playerRef.current.playVideo();
} else {
playerRef.current.pauseVideo();