From f26b8022bdbc9aafdf215c4081fb8f766c63c823 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Thu, 1 Dec 2022 03:42:50 -0500 Subject: [PATCH] Update video fullscreen enum values --- components/VideoPlayer.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components/VideoPlayer.js b/components/VideoPlayer.js index 82d6561..f8d2a9e 100644 --- a/components/VideoPlayer.js +++ b/components/VideoPlayer.js @@ -3,7 +3,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -import { Audio, InterruptionModeAndroid, InterruptionModeIOS, Video } from 'expo-av'; +import { Audio, InterruptionModeAndroid, InterruptionModeIOS, Video, VideoFullscreenUpdate } from 'expo-av'; import { observer } from 'mobx-react-lite'; import React, { useEffect, useRef, useState } from 'react'; import { Alert } from 'react-native'; @@ -101,17 +101,17 @@ const VideoPlayer = observer(() => { }} onFullscreenUpdate={({ fullscreenUpdate }) => { switch (fullscreenUpdate) { - case Video.FULLSCREEN_UPDATE_PLAYER_WILL_PRESENT: + case VideoFullscreenUpdate.PLAYER_WILL_PRESENT: setIsPresenting(true); rootStore.isFullscreen = true; break; - case Video.FULLSCREEN_UPDATE_PLAYER_DID_PRESENT: + case VideoFullscreenUpdate.PLAYER_DID_PRESENT: setIsPresenting(false); break; - case Video.FULLSCREEN_UPDATE_PLAYER_WILL_DISMISS: + case VideoFullscreenUpdate.PLAYER_WILL_DISMISS: setIsDismissing(true); break; - case Video.FULLSCREEN_UPDATE_PLAYER_DID_DISMISS: + case VideoFullscreenUpdate.PLAYER_DID_DISMISS: setIsDismissing(false); rootStore.isFullscreen = false; rootStore.mediaStore.reset();