This commit is contained in:
Fredrik Burmester
2024-11-10 15:21:30 +01:00
parent fff880e708
commit 817e2b3d85
7 changed files with 17 additions and 7 deletions

View File

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

BIN
bun.lockb

Binary file not shown.

View File

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

View File

@@ -1,5 +1,5 @@
{
"platforms": ["ios"],
"platforms": ["ios", "tvos", "android", "web"],
"ios": {
"modules": ["VlcPlayerModule"]
},

View File

@@ -21,7 +21,7 @@
"@expo/vector-icons": "^14.0.3",
"@futurejj/react-native-visibility-sensor": "^1.3.4",
"@gorhom/bottom-sheet": "^4",
"@jellyfin/sdk": "^0.10.0",
"@jellyfin/sdk": "^0.11.0",
"@kesha-antonov/react-native-background-downloader": "^3.2.1",
"@react-native-async-storage/async-storage": "1.23.1",
"@react-native-community/netinfo": "11.3.1",

View File

@@ -52,7 +52,7 @@ export const JellyfinProvider: React.FC<{ children: ReactNode }> = ({
setJellyfin(
() =>
new Jellyfin({
clientInfo: { name: "Streamyfin", version: "0.20.0" },
clientInfo: { name: "Streamyfin", version: "0.20.1" },
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.20.0"`,
}, DeviceId="${deviceId}", Version="0.20.1"`,
};
}, [deviceId]);

View File

@@ -45,6 +45,7 @@ export const getStreamUrl = async ({
let sessionId: string | null | undefined;
if (item.Type === "Program") {
console.log("Item is of type program...");
const res0 = await getMediaInfoApi(api).getPlaybackInfo(
{
userId,
@@ -98,6 +99,15 @@ export const getStreamUrl = async ({
}
);
console.log(
"getStreamUrl ~ getMediaInfoApi ~ getPlaybackInfo ~",
res2.status
);
if (res2.status !== 200) {
console.error("Error getting playback info:", res2.status, res2.statusText);
}
sessionId = res2.data.PlaySessionId || null;
mediaSource = res2.data.MediaSources?.find(