fix: update device profile

This commit is contained in:
Fredrik Burmester
2024-10-04 16:51:26 +02:00
parent 4fd67091ea
commit eb11b928af
5 changed files with 10 additions and 5 deletions

View File

@@ -6,6 +6,7 @@ import {
PlaybackInfoResponse,
} from "@jellyfin/sdk/lib/generated-client/models";
import { getAuthHeaders } from "../jellyfin";
import iosFmp4 from "@/utils/profiles/iosFmp4";
export const getStreamUrl = async ({
api,
@@ -14,7 +15,7 @@ export const getStreamUrl = async ({
startTimeTicks = 0,
maxStreamingBitrate,
sessionData,
deviceProfile = ios,
deviceProfile = iosFmp4,
audioStreamIndex = 0,
subtitleStreamIndex = undefined,
forceDirectPlay = false,

View File

@@ -6,6 +6,7 @@ import { Api } from "@jellyfin/sdk";
import { AxiosError, AxiosResponse } from "axios";
import { useMemo } from "react";
import { getAuthHeaders } from "../jellyfin";
import iosFmp4 from "@/utils/profiles/iosFmp4";
interface PostCapabilitiesParams {
api: Api | null | undefined;
@@ -30,7 +31,7 @@ export const postCapabilities = async ({
throw new Error("Missing parameters for marking item as not played");
}
let profile: any = ios;
let profile: any = iosFmp4;
if (deviceProfile === "Native") {
profile = native;