From fff880e7084678f74fea664ecd8e4f43c0b8e7f1 Mon Sep 17 00:00:00 2001 From: Fredrik Burmester Date: Sun, 10 Nov 2024 11:54:22 +0100 Subject: [PATCH] fix: offline vlc playback not working --- app.json | 2 +- app/(auth)/offline-vlc-player.tsx | 1 + app/(auth)/vlc-player.tsx | 6 ------ components/video-player/Controls.tsx | 2 -- eas.json | 4 ++-- providers/JellyfinProvider.tsx | 4 ++-- 6 files changed, 6 insertions(+), 13 deletions(-) diff --git a/app.json b/app.json index 84086668..2b194d5f 100644 --- a/app.json +++ b/app.json @@ -2,7 +2,7 @@ "expo": { "name": "Streamyfin", "slug": "streamyfin", - "version": "0.19.0", + "version": "0.20.0", "orientation": "default", "icon": "./assets/images/icon.png", "scheme": "streamyfin", diff --git a/app/(auth)/offline-vlc-player.tsx b/app/(auth)/offline-vlc-player.tsx index 3707b645..493396d7 100644 --- a/app/(auth)/offline-vlc-player.tsx +++ b/app/(auth)/offline-vlc-player.tsx @@ -219,6 +219,7 @@ export default function page() { pause={pause} stop={stop} seek={videoRef.current?.seekTo} + isVlc getAudioTracks={videoRef.current?.getAudioTracks} getSubtitleTracks={videoRef.current?.getSubtitleTracks} setAudioTrack={videoRef.current?.setAudioTrack} diff --git a/app/(auth)/vlc-player.tsx b/app/(auth)/vlc-player.tsx index 6c91758f..dbcb3aac 100644 --- a/app/(auth)/vlc-player.tsx +++ b/app/(auth)/vlc-player.tsx @@ -248,12 +248,6 @@ export default function page() { progress.value = currentTime; const currentTimeInTicks = msToTicks(currentTime); - // console.log("onProgress ~", { - // currentTime, - // currentTimeInTicks, - // isPlaying, - // }); - await getPlaystateApi(api).onPlaybackProgress({ itemId: item.Id, audioStreamIndex: audioIndex ? audioIndex : undefined, diff --git a/components/video-player/Controls.tsx b/components/video-player/Controls.tsx index 41a8db54..c5d5bae0 100644 --- a/components/video-player/Controls.tsx +++ b/components/video-player/Controls.tsx @@ -208,8 +208,6 @@ export const Controls: React.FC = ({ ? maxValue - currentProgress : ticksToSeconds(maxValue - currentProgress); - // console.log("Remaning time is: ", remaining); - setCurrentTime(current); setRemainingTime(remaining); diff --git a/eas.json b/eas.json index f828ea06..18b03a84 100644 --- a/eas.json +++ b/eas.json @@ -22,13 +22,13 @@ } }, "production": { - "channel": "0.19.0", + "channel": "0.20.0", "android": { "image": "latest" } }, "production-apk": { - "channel": "0.19.0", + "channel": "0.20.0", "android": { "buildType": "apk", "image": "latest" diff --git a/providers/JellyfinProvider.tsx b/providers/JellyfinProvider.tsx index d1840efc..63ed727e 100644 --- a/providers/JellyfinProvider.tsx +++ b/providers/JellyfinProvider.tsx @@ -52,7 +52,7 @@ export const JellyfinProvider: React.FC<{ children: ReactNode }> = ({ setJellyfin( () => new Jellyfin({ - clientInfo: { name: "Streamyfin", version: "0.19.0" }, + clientInfo: { name: "Streamyfin", version: "0.20.0" }, deviceInfo: { name: Platform.OS === "ios" ? "iOS" : "Android", id }, }) ); @@ -86,7 +86,7 @@ export const JellyfinProvider: React.FC<{ children: ReactNode }> = ({ return { authorization: `MediaBrowser Client="Streamyfin", Device=${ Platform.OS === "android" ? "Android" : "iOS" - }, DeviceId="${deviceId}", Version="0.19.0"`, + }, DeviceId="${deviceId}", Version="0.20.0"`, }; }, [deviceId]);