diff --git a/app.json b/app.json index 7212785..4bf6d31 100644 --- a/app.json +++ b/app.json @@ -63,6 +63,7 @@ "android.permission.ACCESS_NETWORK_STATE", "android.permission.WAKE_LOCK" ], + "screenOrientation": "unspecified", "intentFilters": [ { "action": "VIEW", @@ -82,6 +83,12 @@ "bundleIdentifier": "com.oriontv", "supportsTablet": true, "requireFullScreen": false, + "supportedInterfaceOrientations": [ + "UIInterfaceOrientationPortrait", + "UIInterfaceOrientationLandscapeLeft", + "UIInterfaceOrientationLandscapeRight", + "UIInterfaceOrientationPortraitUpsideDown" + ], "config": { "usesNonExemptEncryption": false } diff --git a/app/play.tsx b/app/play.tsx index 497fa7b..11eb37f 100644 --- a/app/play.tsx +++ b/app/play.tsx @@ -156,11 +156,11 @@ export default function PlayScreen() { usePlayerStore.setState({ isLoading: false }); }} onLoadStart={() => usePlayerStore.setState({ isLoading: true })} - useNativeControls={false} + useNativeControls={deviceType !== 'tv'} shouldPlay /> - {showControls && } + {showControls && deviceType === 'tv' && }