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": {
"name": "Streamyfin",
"slug": "streamyfin",
"version": "0.19.0",
"version": "0.20.0",
"orientation": "default",
"icon": "./assets/images/icon.png",
"scheme": "streamyfin",

View File

@@ -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}

View File

@@ -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,

View File

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

View File

@@ -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"

View File

@@ -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]);