mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add HLS direct play profile
This commit is contained in:
parent
c506d0b753
commit
171c381768
1 changed files with 18 additions and 0 deletions
|
@ -718,6 +718,15 @@ export default function (options) {
|
||||||
enableFmp4Hls = false;
|
enableFmp4Hls = false;
|
||||||
}
|
}
|
||||||
if (hlsInFmp4VideoCodecs.length && hlsInFmp4VideoAudioCodecs.length && enableFmp4Hls) {
|
if (hlsInFmp4VideoCodecs.length && hlsInFmp4VideoAudioCodecs.length && enableFmp4Hls) {
|
||||||
|
// HACK: Since there is no filter for TS/MP4 in the API, specify HLS support in general and rely on retry after DirectPlay error
|
||||||
|
// FIXME: Need support for {Container: 'mp4', Protocol: 'hls'} or {Container: 'hls', SubContainer: 'mp4'}
|
||||||
|
profile.DirectPlayProfiles.push({
|
||||||
|
Container: 'hls',
|
||||||
|
Type: 'Video',
|
||||||
|
VideoCodec: hlsInFmp4VideoCodecs.join(','),
|
||||||
|
AudioCodec: hlsInFmp4VideoAudioCodecs.join(',')
|
||||||
|
});
|
||||||
|
|
||||||
profile.TranscodingProfiles.push({
|
profile.TranscodingProfiles.push({
|
||||||
Container: 'mp4',
|
Container: 'mp4',
|
||||||
Type: 'Video',
|
Type: 'Video',
|
||||||
|
@ -732,6 +741,15 @@ export default function (options) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hlsInTsVideoCodecs.length && hlsInTsVideoAudioCodecs.length) {
|
if (hlsInTsVideoCodecs.length && hlsInTsVideoAudioCodecs.length) {
|
||||||
|
// HACK: Since there is no filter for TS/MP4 in the API, specify HLS support in general and rely on retry after DirectPlay error
|
||||||
|
// FIXME: Need support for {Container: 'ts', Protocol: 'hls'} or {Container: 'hls', SubContainer: 'ts'}
|
||||||
|
profile.DirectPlayProfiles.push({
|
||||||
|
Container: 'hls',
|
||||||
|
Type: 'Video',
|
||||||
|
VideoCodec: hlsInTsVideoCodecs.join(','),
|
||||||
|
AudioCodec: hlsInTsVideoAudioCodecs.join(',')
|
||||||
|
});
|
||||||
|
|
||||||
profile.TranscodingProfiles.push({
|
profile.TranscodingProfiles.push({
|
||||||
Container: 'ts',
|
Container: 'ts',
|
||||||
Type: 'Video',
|
Type: 'Video',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue