mirror of
https://github.com/zimplexing/OrionTV.git
synced 2026-05-21 01:13:33 +08:00
feat(play): adjust video controls for device type and enhance loading state management
This commit is contained in:
7
app.json
7
app.json
@@ -63,6 +63,7 @@
|
|||||||
"android.permission.ACCESS_NETWORK_STATE",
|
"android.permission.ACCESS_NETWORK_STATE",
|
||||||
"android.permission.WAKE_LOCK"
|
"android.permission.WAKE_LOCK"
|
||||||
],
|
],
|
||||||
|
"screenOrientation": "unspecified",
|
||||||
"intentFilters": [
|
"intentFilters": [
|
||||||
{
|
{
|
||||||
"action": "VIEW",
|
"action": "VIEW",
|
||||||
@@ -82,6 +83,12 @@
|
|||||||
"bundleIdentifier": "com.oriontv",
|
"bundleIdentifier": "com.oriontv",
|
||||||
"supportsTablet": true,
|
"supportsTablet": true,
|
||||||
"requireFullScreen": false,
|
"requireFullScreen": false,
|
||||||
|
"supportedInterfaceOrientations": [
|
||||||
|
"UIInterfaceOrientationPortrait",
|
||||||
|
"UIInterfaceOrientationLandscapeLeft",
|
||||||
|
"UIInterfaceOrientationLandscapeRight",
|
||||||
|
"UIInterfaceOrientationPortraitUpsideDown"
|
||||||
|
],
|
||||||
"config": {
|
"config": {
|
||||||
"usesNonExemptEncryption": false
|
"usesNonExemptEncryption": false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -156,11 +156,11 @@ export default function PlayScreen() {
|
|||||||
usePlayerStore.setState({ isLoading: false });
|
usePlayerStore.setState({ isLoading: false });
|
||||||
}}
|
}}
|
||||||
onLoadStart={() => usePlayerStore.setState({ isLoading: true })}
|
onLoadStart={() => usePlayerStore.setState({ isLoading: true })}
|
||||||
useNativeControls={false}
|
useNativeControls={deviceType !== 'tv'}
|
||||||
shouldPlay
|
shouldPlay
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{showControls && <PlayerControls showControls={showControls} setShowControls={setShowControls} />}
|
{showControls && deviceType === 'tv' && <PlayerControls showControls={showControls} setShowControls={setShowControls} />}
|
||||||
|
|
||||||
<SeekingBar />
|
<SeekingBar />
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user