1b02f81cb8
Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
17 lines
443 B
TypeScript
17 lines
443 B
TypeScript
import React from 'react'
|
|
import type Hls from 'hls.js'
|
|
|
|
export function Controls({}: {
|
|
videoRef: React.RefObject<HTMLVideoElement>
|
|
hlsRef: React.RefObject<Hls | undefined>
|
|
active: boolean
|
|
setActive: () => void
|
|
focused: boolean
|
|
setFocused: (focused: boolean) => void
|
|
onScreen: boolean
|
|
fullscreenRef: React.RefObject<HTMLDivElement>
|
|
hasSubtitleTrack: boolean
|
|
}): React.ReactElement {
|
|
throw new Error('Web-only component')
|
|
}
|