mirror of
https://github.com/streamyfin/streamyfin.git
synced 2025-08-20 18:37:18 +02:00
wip: subtitles and onVideoLoad stuff
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user