diff --git a/apps/expo/src/app/videoPlayer.tsx b/apps/expo/src/app/videoPlayer.tsx index 8a64892..7ea930d 100644 --- a/apps/expo/src/app/videoPlayer.tsx +++ b/apps/expo/src/app/videoPlayer.tsx @@ -4,7 +4,7 @@ import type { TextTracks, } from "react-native-video"; import React, { useEffect, useState } from "react"; -import { ActivityIndicator, Platform, View } from "react-native"; +import { ActivityIndicator, Platform, StyleSheet, View } from "react-native"; import Video, { TextTracksType } from "react-native-video"; import { useLocalSearchParams, useRouter } from "expo-router"; import * as ScreenOrientation from "expo-screen-orientation"; @@ -153,7 +153,6 @@ const VideoPlayer: React.FC = ({ data }) => { ref={setVideoRef} source={videoSrc} // textTracks={textTracks} // breaks playback on iOS, see pr body - className="absolute inset-0" fullscreen fullscreenOrientation="landscape" paused={false} @@ -161,6 +160,7 @@ const VideoPlayer: React.FC = ({ data }) => { useSecureView onLoadStart={onVideoLoadStart} onReadyForDisplay={onReadyForDisplay} + style={styles.backgroundVideo} /> {isLoading && } {!isLoading &&
} @@ -197,3 +197,13 @@ function convertCaptionsToTextTracks(captions: Caption[]): TextTracks { }) .filter(Boolean) as TextTracks; } + +const styles = StyleSheet.create({ + backgroundVideo: { + position: "absolute", + top: 0, + left: 0, + bottom: 0, + right: 0, + }, +}); diff --git a/apps/expo/src/components/player/Header.tsx b/apps/expo/src/components/player/Header.tsx index 4d6daa5..0efd7ec 100644 --- a/apps/expo/src/components/player/Header.tsx +++ b/apps/expo/src/components/player/Header.tsx @@ -13,7 +13,7 @@ export const Header = ({ title }: HeaderProps) => { {title} - + movie-web