diff --git a/app.json b/app.json index 4c2ad7a2..1bb76e20 100644 --- a/app.json +++ b/app.json @@ -96,6 +96,17 @@ { "motionPermission": "Allow Streamyfin to access your device motion for landscape video watching." } + ], + [ + "react-native-vlc-media-player", + { + "ios": { + "includeVLCKit": false // should be true if react-native version < 0.61 + }, + "android": { + "legacyJetifier": false // should be true if react-native version < 0.71 + } + } ] ], "experiments": { diff --git a/bun.lockb b/bun.lockb index fea3b829..78a18819 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/components/CurrentlyPlayingBar.tsx b/components/CurrentlyPlayingBar.tsx index 2e84aec1..53ef4c1e 100644 --- a/components/CurrentlyPlayingBar.tsx +++ b/components/CurrentlyPlayingBar.tsx @@ -17,6 +17,7 @@ import Animated, { import Video from "react-native-video"; import { Text } from "./common/Text"; import { Loader } from "./Loader"; +import { VLCPlayer, VlCPlayerView } from "react-native-vlc-media-player"; export const CurrentlyPlayingBar: React.FC = () => { const segments = useSegments(); @@ -137,68 +138,82 @@ export const CurrentlyPlayingBar: React.FC = () => { `} > {currentlyPlaying?.url && ( -