[Video] Tweak playback handling (#5127)
This commit is contained in:
parent
515f87ed24
commit
21e48bb2d8
2 changed files with 26 additions and 10 deletions
|
|
@ -20,13 +20,16 @@ import {TimeIndicator} from './TimeIndicator'
|
|||
|
||||
export function VideoEmbedInnerNative({
|
||||
embed,
|
||||
isFullscreen,
|
||||
setIsFullscreen,
|
||||
}: {
|
||||
embed: AppBskyEmbedVideo.View
|
||||
isFullscreen: boolean
|
||||
setIsFullscreen: (isFullscreen: boolean) => void
|
||||
}) {
|
||||
const {_} = useLingui()
|
||||
const {player} = useActiveVideoNative()
|
||||
const ref = useRef<VideoView>(null)
|
||||
const [isFullscreen, setIsFullscreen] = useState(false)
|
||||
|
||||
const enterFullscreen = useCallback(() => {
|
||||
ref.current?.enterFullscreen()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue