Files
streamyfin/components/video-player/controls/constants.ts
Fredrik Burmester d2790f4997 fix(tv): seek
2026-01-20 22:15:00 +01:00

22 lines
587 B
TypeScript

export const CONTROLS_CONSTANTS = {
TIMEOUT: 4000,
SCRUB_INTERVAL_MS: 30 * 1000, // 30 seconds in ms
SCRUB_INTERVAL_TICKS: 10 * 10000000, // 10 seconds in ticks
TILE_WIDTH: 150,
PROGRESS_UNIT_MS: 1000, // 1 second in ms
PROGRESS_UNIT_TICKS: 10000000, // 1 second in ticks
LONG_PRESS_INITIAL_SEEK: 30,
LONG_PRESS_ACCELERATION: 1.2,
LONG_PRESS_INTERVAL: 300,
SLIDER_DEBOUNCE_MS: 3,
} as const;
export const ICON_SIZES = {
HEADER: 24,
CENTER: 50,
} as const;
export const HEADER_LAYOUT = {
CONTAINER_PADDING: 8, // p-2 = 8px (matches HeaderControls)
} as const;