Something went wrong. Try again.
Bluesky app fork with some witchin' additions 💫 forked from jollywhoppers.com/witchsky.app
Something went wrong. Try again.
witchsky.app src components Post Embed VideoEmbed VideoEmbedInner web-controls VideoControls.shared.ts
514 B · 18 lines
TypeScript
at main
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}