diff --git a/components/PlayButton.tsx b/components/PlayButton.tsx index 62e626db..61f3f2d5 100644 --- a/components/PlayButton.tsx +++ b/components/PlayButton.tsx @@ -1,12 +1,11 @@ import { useActionSheet } from "@expo/react-native-action-sheet"; -import { Button, Host } from "@expo/ui/swift-ui"; import { Feather, Ionicons, MaterialCommunityIcons } from "@expo/vector-icons"; import type { BaseItemDto } from "@jellyfin/sdk/lib/generated-client"; import { useRouter } from "expo-router"; import { useAtom, useAtomValue } from "jotai"; import { useCallback, useEffect } from "react"; import { useTranslation } from "react-i18next"; -import { Alert, Platform, TouchableOpacity, View } from "react-native"; +import { Alert, TouchableOpacity, View } from "react-native"; import CastContext, { CastButton, PlayServicesState, @@ -364,45 +363,51 @@ export const PlayButton: React.FC = ({ * ********************* */ - if (Platform.OS === "ios") - return ( - - - - ); + // if (Platform.OS === "ios") + // return ( + // + // + // + // ); return ( = ({ > - {runtimeTicksToMinutes(item?.RunTimeTicks)} + {runtimeTicksToMinutes( + (item?.RunTimeTicks || 0) - + (item?.UserData?.PlaybackPositionTicks || 0), + )} + {(item?.UserData?.PlaybackPositionTicks || 0) > 0 && " left"}