Something went wrong. Try again.
Mirror — see github.com/blacksky-algorithms/blacksky.community
Something went wrong. Try again.
blacksky.community src components Post Embed VideoEmbed VideoEmbedInner web-controls VideoControls.shared.ts
123456789101112131415161718import type Hls from 'hls.js'
export type ControlsProps = { videoRef: React.RefObject<HTMLVideoElement | null> hlsRef: React.RefObject<Hls | undefined | null> 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}