mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-01-15 23:59:08 +00:00
wip
This commit is contained in:
2
app.json
2
app.json
@@ -2,7 +2,7 @@
|
|||||||
"expo": {
|
"expo": {
|
||||||
"name": "Streamyfin",
|
"name": "Streamyfin",
|
||||||
"slug": "streamyfin",
|
"slug": "streamyfin",
|
||||||
"version": "0.20.0",
|
"version": "0.20.1",
|
||||||
"orientation": "default",
|
"orientation": "default",
|
||||||
"icon": "./assets/images/icon.png",
|
"icon": "./assets/images/icon.png",
|
||||||
"scheme": "streamyfin",
|
"scheme": "streamyfin",
|
||||||
|
|||||||
4
eas.json
4
eas.json
@@ -22,13 +22,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"production": {
|
"production": {
|
||||||
"channel": "0.20.0",
|
"channel": "0.20.1",
|
||||||
"android": {
|
"android": {
|
||||||
"image": "latest"
|
"image": "latest"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"production-apk": {
|
"production-apk": {
|
||||||
"channel": "0.20.0",
|
"channel": "0.20.1",
|
||||||
"android": {
|
"android": {
|
||||||
"buildType": "apk",
|
"buildType": "apk",
|
||||||
"image": "latest"
|
"image": "latest"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"platforms": ["ios"],
|
"platforms": ["ios", "tvos", "android", "web"],
|
||||||
"ios": {
|
"ios": {
|
||||||
"modules": ["VlcPlayerModule"]
|
"modules": ["VlcPlayerModule"]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
"@expo/vector-icons": "^14.0.3",
|
"@expo/vector-icons": "^14.0.3",
|
||||||
"@futurejj/react-native-visibility-sensor": "^1.3.4",
|
"@futurejj/react-native-visibility-sensor": "^1.3.4",
|
||||||
"@gorhom/bottom-sheet": "^4",
|
"@gorhom/bottom-sheet": "^4",
|
||||||
"@jellyfin/sdk": "^0.10.0",
|
"@jellyfin/sdk": "^0.11.0",
|
||||||
"@kesha-antonov/react-native-background-downloader": "^3.2.1",
|
"@kesha-antonov/react-native-background-downloader": "^3.2.1",
|
||||||
"@react-native-async-storage/async-storage": "1.23.1",
|
"@react-native-async-storage/async-storage": "1.23.1",
|
||||||
"@react-native-community/netinfo": "11.3.1",
|
"@react-native-community/netinfo": "11.3.1",
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ export const JellyfinProvider: React.FC<{ children: ReactNode }> = ({
|
|||||||
setJellyfin(
|
setJellyfin(
|
||||||
() =>
|
() =>
|
||||||
new Jellyfin({
|
new Jellyfin({
|
||||||
clientInfo: { name: "Streamyfin", version: "0.20.0" },
|
clientInfo: { name: "Streamyfin", version: "0.20.1" },
|
||||||
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.20.0"`,
|
}, DeviceId="${deviceId}", Version="0.20.1"`,
|
||||||
};
|
};
|
||||||
}, [deviceId]);
|
}, [deviceId]);
|
||||||
|
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ export const getStreamUrl = async ({
|
|||||||
let sessionId: string | null | undefined;
|
let sessionId: string | null | undefined;
|
||||||
|
|
||||||
if (item.Type === "Program") {
|
if (item.Type === "Program") {
|
||||||
|
console.log("Item is of type program...");
|
||||||
const res0 = await getMediaInfoApi(api).getPlaybackInfo(
|
const res0 = await getMediaInfoApi(api).getPlaybackInfo(
|
||||||
{
|
{
|
||||||
userId,
|
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;
|
sessionId = res2.data.PlaySessionId || null;
|
||||||
|
|
||||||
mediaSource = res2.data.MediaSources?.find(
|
mediaSource = res2.data.MediaSources?.find(
|
||||||
|
|||||||
Reference in New Issue
Block a user