mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 18:13:25 +00:00
chore: adjust controls for local playback
This commit is contained in:
@@ -14,7 +14,7 @@ import { SeasonSelector } from "./SeasonEpisodeSelector";
|
|||||||
import { SourceSelector } from "./SourceSelector";
|
import { SourceSelector } from "./SourceSelector";
|
||||||
import { mapMillisecondsToTime } from "./utils";
|
import { mapMillisecondsToTime } from "./utils";
|
||||||
|
|
||||||
export const BottomControls = () => {
|
export const BottomControls = ({ isLocalAsset }: { isLocalAsset: boolean }) => {
|
||||||
const status = usePlayerStore((state) => state.status);
|
const status = usePlayerStore((state) => state.status);
|
||||||
const setIsIdle = usePlayerStore((state) => state.setIsIdle);
|
const setIsIdle = usePlayerStore((state) => state.setIsIdle);
|
||||||
const [showRemaining, setShowRemaining] = useState(false);
|
const [showRemaining, setShowRemaining] = useState(false);
|
||||||
@@ -76,6 +76,8 @@ export const BottomControls = () => {
|
|||||||
gap={4}
|
gap={4}
|
||||||
paddingBottom={40}
|
paddingBottom={40}
|
||||||
>
|
>
|
||||||
|
{!isLocalAsset && (
|
||||||
|
<>
|
||||||
<SeasonSelector />
|
<SeasonSelector />
|
||||||
<CaptionsSelector />
|
<CaptionsSelector />
|
||||||
<SourceSelector />
|
<SourceSelector />
|
||||||
@@ -83,6 +85,8 @@ export const BottomControls = () => {
|
|||||||
<PlaybackSpeedSelector />
|
<PlaybackSpeedSelector />
|
||||||
<QualitySelector />
|
<QualitySelector />
|
||||||
<DownloadButton />
|
<DownloadButton />
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
|
@@ -20,7 +20,7 @@ export const ControlsOverlay = ({
|
|||||||
>
|
>
|
||||||
<Header />
|
<Header />
|
||||||
{!isLoading && <MiddleControls />}
|
{!isLoading && <MiddleControls />}
|
||||||
{!isLocalAsset && <BottomControls />}
|
<BottomControls isLocalAsset={isLocalAsset} />
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user