[Video] Use expo-video from fork (#5159)

This commit is contained in:
Hailey 2024-09-05 08:27:28 -07:00 committed by GitHub
parent 6d8ed5c3c8
commit 93c171b403
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 7 additions and 652 deletions

View file

@ -56,13 +56,13 @@ export function VideoEmbedInnerNative({
contentFit="cover"
nativeControls={isFullscreen}
accessibilityIgnoresInvertColors
onEnterFullscreen={() => {
onFullscreenEnter={() => {
PlatformInfo.setAudioCategory(AudioCategory.Playback)
PlatformInfo.setAudioActive(true)
player.muted = false
setIsFullscreen(true)
}}
onExitFullscreen={() => {
onFullscreenExit={() => {
PlatformInfo.setAudioCategory(AudioCategory.Ambient)
PlatformInfo.setAudioActive(false)
player.muted = true