mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-01-15 23:59:08 +00:00
fix: platform sepcific playing
This commit is contained in:
@@ -8,7 +8,7 @@ import { Feather, Ionicons, MaterialCommunityIcons } from "@expo/vector-icons";
|
||||
import { BaseItemDto } from "@jellyfin/sdk/lib/generated-client/models";
|
||||
import { useAtom, useAtomValue } from "jotai";
|
||||
import { useCallback, useEffect, useMemo } from "react";
|
||||
import { Alert, Linking, TouchableOpacity, View } from "react-native";
|
||||
import { Alert, Linking, Platform, TouchableOpacity, View } from "react-native";
|
||||
import CastContext, {
|
||||
CastButton,
|
||||
PlayServicesState,
|
||||
@@ -83,7 +83,8 @@ export const PlayButton: React.FC<Props> = ({ ...props }) => {
|
||||
return;
|
||||
}
|
||||
|
||||
router.push("/vlc-player");
|
||||
if (Platform.OS === "ios") router.push("/vlc-player");
|
||||
else router.push("/play-video");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user