Something went wrong. Try again.
fork of witchsky forked from jollywhoppers.com/witchsky.app
Something went wrong. Try again.
witchsky.app-fork src components Post Embed VideoEmbed VideoEmbedInner web-controls VideoControls.shared.ts
12345678910111213141516171819import type Hls from 'hls.js'
export type ControlsProps = { videoRef: React.RefObject<HTMLVideoElement | null> hlsRef: React.RefObject<Hls | undefined | null> onDownload?: () => void active: boolean setActive: () => void focused: boolean setFocused: (focused: boolean) => void onScreen: boolean fullscreenRef: React.RefObject<HTMLDivElement | null> hlsLoading: boolean hasSubtitleTrack: boolean isGif: boolean altText?: string updateCuePositions: (controlsVisible?: boolean) => void}