mirror of
https://github.com/Jellify-Music/App.git
synced 2026-04-24 03:49:11 -05:00
prev commit contd
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { Event, useTrackPlayerEvents } from "react-native-track-player";
|
||||
import { handlePlayerError } from "./helpers/error-handlers";
|
||||
import { usePlayerContext } from "../../player/provider";
|
||||
import { XStack, YStack } from "tamagui";
|
||||
import { Spacer, XStack, YStack } from "tamagui";
|
||||
import { CachedImage } from "@georstat/react-native-image-cache";
|
||||
import { useApiClientContext } from "../jellyfin-api-provider";
|
||||
import { getImageApi } from "@jellyfin/sdk/lib/utils/api";
|
||||
@@ -39,7 +39,8 @@ export default function Player({ navigation }: { navigation : NavigationHelpers<
|
||||
)
|
||||
}
|
||||
imageStyle={{
|
||||
alignSelf: "center",
|
||||
position: "relative",
|
||||
zIndex: -99,
|
||||
width: width,
|
||||
height: width,
|
||||
resizeMode: "cover",
|
||||
@@ -62,8 +63,8 @@ export default function Player({ navigation }: { navigation : NavigationHelpers<
|
||||
imageStyle={{
|
||||
position: "relative",
|
||||
alignSelf: "center",
|
||||
width: width,
|
||||
height: width,
|
||||
width: width / 1.25,
|
||||
height: width / 1.25,
|
||||
borderRadius: 2
|
||||
}}
|
||||
/>
|
||||
@@ -91,12 +92,12 @@ export default function Player({ navigation }: { navigation : NavigationHelpers<
|
||||
</XStack>
|
||||
</XStack>
|
||||
|
||||
<XStack justifyContent="center" marginTop={10}>
|
||||
<XStack justifyContent="center" margin={15}>
|
||||
{/* playback progress goes here */}
|
||||
<HorizontalSlider
|
||||
value={progress!.position}
|
||||
max={progress!.duration}
|
||||
width={width}
|
||||
width={width / 1.25}
|
||||
/>
|
||||
|
||||
</XStack>
|
||||
@@ -108,8 +109,12 @@ export default function Player({ navigation }: { navigation : NavigationHelpers<
|
||||
onPress={() => skipToPrevious()}
|
||||
/>
|
||||
|
||||
<Spacer />
|
||||
|
||||
<PlayPauseButton />
|
||||
|
||||
<Spacer />
|
||||
|
||||
<Icon
|
||||
large
|
||||
name="skip-next"
|
||||
|
||||
@@ -18,7 +18,7 @@ export default function PlayPauseButton() : React.JSX.Element {
|
||||
|
||||
case (State.Buffering) :
|
||||
case (State.Loading) : {
|
||||
button = <Spinner size="small" color={Colors.Primary}/>;
|
||||
button = <Spinner marginHorizontal={5} size="small" color={Colors.Primary}/>;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user