fix: offline vlc playback not working

This commit is contained in:
Fredrik Burmester
2024-11-10 11:54:22 +01:00
parent f2bcd2c675
commit fff880e708
6 changed files with 6 additions and 13 deletions

View File

@@ -2,7 +2,7 @@
"expo": { "expo": {
"name": "Streamyfin", "name": "Streamyfin",
"slug": "streamyfin", "slug": "streamyfin",
"version": "0.19.0", "version": "0.20.0",
"orientation": "default", "orientation": "default",
"icon": "./assets/images/icon.png", "icon": "./assets/images/icon.png",
"scheme": "streamyfin", "scheme": "streamyfin",

View File

@@ -219,6 +219,7 @@ export default function page() {
pause={pause} pause={pause}
stop={stop} stop={stop}
seek={videoRef.current?.seekTo} seek={videoRef.current?.seekTo}
isVlc
getAudioTracks={videoRef.current?.getAudioTracks} getAudioTracks={videoRef.current?.getAudioTracks}
getSubtitleTracks={videoRef.current?.getSubtitleTracks} getSubtitleTracks={videoRef.current?.getSubtitleTracks}
setAudioTrack={videoRef.current?.setAudioTrack} setAudioTrack={videoRef.current?.setAudioTrack}

View File

@@ -248,12 +248,6 @@ export default function page() {
progress.value = currentTime; progress.value = currentTime;
const currentTimeInTicks = msToTicks(currentTime); const currentTimeInTicks = msToTicks(currentTime);
// console.log("onProgress ~", {
// currentTime,
// currentTimeInTicks,
// isPlaying,
// });
await getPlaystateApi(api).onPlaybackProgress({ await getPlaystateApi(api).onPlaybackProgress({
itemId: item.Id, itemId: item.Id,
audioStreamIndex: audioIndex ? audioIndex : undefined, audioStreamIndex: audioIndex ? audioIndex : undefined,

View File

@@ -208,8 +208,6 @@ export const Controls: React.FC<Props> = ({
? maxValue - currentProgress ? maxValue - currentProgress
: ticksToSeconds(maxValue - currentProgress); : ticksToSeconds(maxValue - currentProgress);
// console.log("Remaning time is: ", remaining);
setCurrentTime(current); setCurrentTime(current);
setRemainingTime(remaining); setRemainingTime(remaining);

View File

@@ -22,13 +22,13 @@
} }
}, },
"production": { "production": {
"channel": "0.19.0", "channel": "0.20.0",
"android": { "android": {
"image": "latest" "image": "latest"
} }
}, },
"production-apk": { "production-apk": {
"channel": "0.19.0", "channel": "0.20.0",
"android": { "android": {
"buildType": "apk", "buildType": "apk",
"image": "latest" "image": "latest"

View File

@@ -52,7 +52,7 @@ export const JellyfinProvider: React.FC<{ children: ReactNode }> = ({
setJellyfin( setJellyfin(
() => () =>
new Jellyfin({ new Jellyfin({
clientInfo: { name: "Streamyfin", version: "0.19.0" }, clientInfo: { name: "Streamyfin", version: "0.20.0" },
deviceInfo: { name: Platform.OS === "ios" ? "iOS" : "Android", id }, deviceInfo: { name: Platform.OS === "ios" ? "iOS" : "Android", id },
}) })
); );
@@ -86,7 +86,7 @@ export const JellyfinProvider: React.FC<{ children: ReactNode }> = ({
return { return {
authorization: `MediaBrowser Client="Streamyfin", Device=${ authorization: `MediaBrowser Client="Streamyfin", Device=${
Platform.OS === "android" ? "Android" : "iOS" Platform.OS === "android" ? "Android" : "iOS"
}, DeviceId="${deviceId}", Version="0.19.0"`, }, DeviceId="${deviceId}", Version="0.20.0"`,
}; };
}, [deviceId]); }, [deviceId]);