From 852113a21a5de78b6d3056f7dece7fb0d40d8fdf Mon Sep 17 00:00:00 2001 From: zimplexing Date: Wed, 13 Aug 2025 20:06:24 +0800 Subject: [PATCH] feat(play): adjust video controls for device type and enhance loading state management --- app.json | 7 +++++++ app/play.tsx | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) 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' && }