click to steal active video

This commit is contained in:
Samuel Newman
2024-07-04 19:57:09 +01:00
parent bf71a5c80a
commit cec2438f6a
5 changed files with 77 additions and 7 deletions
@@ -13,7 +13,11 @@ import {atoms as a} from '#/alf'
import {Text} from '#/components/Typography'
import {useVideoPlayer} from './VideoPlayerContext'
export function VideoEmbedInner({}: {source: string; active: boolean}) {
export function VideoEmbedInner({}: {
source: string
active: boolean
setActive: () => void
}) {
const player = useVideoPlayer()
const aref = useAnimatedRef<Animated.View>()
const {height: windowHeight} = useWindowDimensions()