player fixes

This commit is contained in:
Violet Caulfield
2025-02-04 08:48:13 -06:00
parent e33653fa33
commit 90a421753d

View File

@@ -147,7 +147,7 @@ export default function PlayerScreen({ navigation }: { navigation: NativeStackNa
{/* playback progress goes here */}
<HorizontalSlider
value={progressState}
max={progress!.duration}
max={progress?.duration ?? 0}
width={width / 1.1}
props={{
// If user swipes off of the slider we should seek to the spot
@@ -187,7 +187,7 @@ export default function PlayerScreen({ navigation }: { navigation: NativeStackNa
</XStack>
<XStack flex={1} justifyContent="flex-end">
<RunTimeSeconds>{progress!.duration}</RunTimeSeconds>
<RunTimeSeconds>{progress?.duration ?? 0}</RunTimeSeconds>
</XStack>
</XStack>