fix: always use native device profile

This commit is contained in:
Fredrik Burmester
2024-10-15 13:08:03 +02:00
parent 9e5aa16a7d
commit ac9bcbcb9f
6 changed files with 100 additions and 333 deletions

View File

@@ -16,7 +16,7 @@ export const getStreamUrl = async ({
startTimeTicks = 0,
maxStreamingBitrate,
sessionData,
deviceProfile = iosFmp4,
deviceProfile = native,
audioStreamIndex = 0,
subtitleStreamIndex = undefined,
forceDirectPlay = false,
@@ -89,7 +89,7 @@ export const getStreamUrl = async ({
{
method: "POST",
data: {
deviceProfile: forceDirectPlay ? native : deviceProfile,
deviceProfile: native,
userId,
maxStreamingBitrate,
startTimeTicks,

View File

@@ -31,15 +31,6 @@ export const postCapabilities = async ({
throw new Error("Missing parameters for marking item as not played");
}
let profile: any = iosFmp4;
if (deviceProfile === "Native") {
profile = native;
}
if (deviceProfile === "Old") {
profile = old;
}
try {
const d = api.axiosInstance.post(
api.basePath + "/Sessions/Capabilities/Full",
@@ -57,7 +48,7 @@ export const postCapabilities = async ({
],
supportsMediaControl: true,
id: sessionId,
DeviceProfile: profile,
DeviceProfile: native,
},
{
headers: getAuthHeaders(api),