wip: subtitles and onVideoLoad stuff

This commit is contained in:
Fredrik Burmester
2024-10-14 11:14:34 +02:00
parent 092f5e73d7
commit 67be97d857
8 changed files with 144 additions and 58 deletions

View File

@@ -7,6 +7,7 @@ import {
} from "@jellyfin/sdk/lib/generated-client/models";
import { getMediaInfoApi } from "@jellyfin/sdk/lib/utils/api";
import { getAuthHeaders } from "../jellyfin";
import native from "@/utils/profiles/native";
export const getStreamUrl = async ({
api,
@@ -83,7 +84,7 @@ export const getStreamUrl = async ({
{
method: "POST",
data: {
deviceProfile,
deviceProfile: forceDirectPlay ? native : deviceProfile,
userId,
maxStreamingBitrate,
startTimeTicks,

View File

@@ -82,6 +82,12 @@ export default {
Type: MediaTypes.Video,
VideoCodec: "hevc,h264,mpeg4",
},
{
AudioCodec: "flac,alac,aac,eac3,ac3,opus",
Container: "mkv",
Type: MediaTypes.Video,
VideoCodec: "hevc,h264,mpeg4",
},
{
AudioCodec: "alac,aac,ac3",
Container: "m4v",