feat(play): adjust video controls for device type and enhance loading state management

This commit is contained in:
zimplexing
2025-08-13 20:06:24 +08:00
parent d1ed2dd8d6
commit 852113a21a
2 changed files with 9 additions and 2 deletions

View File

@@ -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
}

View File

@@ -156,11 +156,11 @@ export default function PlayScreen() {
usePlayerStore.setState({ isLoading: false });
}}
onLoadStart={() => usePlayerStore.setState({ isLoading: true })}
useNativeControls={false}
useNativeControls={deviceType !== 'tv'}
shouldPlay
/>
{showControls && <PlayerControls showControls={showControls} setShowControls={setShowControls} />}
{showControls && deviceType === 'tv' && <PlayerControls showControls={showControls} setShowControls={setShowControls} />}
<SeekingBar />