mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-15 18:53:27 +01:00
Make Live TV compatibility profiles customizable (#12529)
This commit is contained in:
@@ -805,6 +805,7 @@ namespace MediaBrowser.Model.Dlna
|
||||
}
|
||||
|
||||
var transcodingProfiles = options.Profile.TranscodingProfiles
|
||||
.Where(i => !item.UseMostCompatibleTranscodingProfile || string.Equals(i.Container, "ts", StringComparison.OrdinalIgnoreCase))
|
||||
.Where(i => i.Type == playlistItem.MediaType && i.Context == options.Context);
|
||||
|
||||
if (options.AllowVideoStreamCopy)
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Text.Json.Serialization;
|
||||
using Jellyfin.Data.Enums;
|
||||
using MediaBrowser.Model.Dlna;
|
||||
@@ -24,6 +25,7 @@ namespace MediaBrowser.Model.Dto
|
||||
SupportsDirectStream = true;
|
||||
SupportsDirectPlay = true;
|
||||
SupportsProbing = true;
|
||||
UseMostCompatibleTranscodingProfile = false;
|
||||
}
|
||||
|
||||
public MediaProtocol Protocol { get; set; }
|
||||
@@ -70,6 +72,9 @@ namespace MediaBrowser.Model.Dto
|
||||
|
||||
public bool IsInfiniteStream { get; set; }
|
||||
|
||||
[DefaultValue(false)]
|
||||
public bool UseMostCompatibleTranscodingProfile { get; set; }
|
||||
|
||||
public bool RequiresOpening { get; set; }
|
||||
|
||||
public string OpenToken { get; set; }
|
||||
@@ -98,6 +103,8 @@ namespace MediaBrowser.Model.Dto
|
||||
|
||||
public int? Bitrate { get; set; }
|
||||
|
||||
public int? FallbackMaxStreamingBitrate { get; set; }
|
||||
|
||||
public TransportStreamTimestamp? Timestamp { get; set; }
|
||||
|
||||
public Dictionary<string, string> RequiredHttpHeaders { get; set; }
|
||||
|
||||
@@ -9,6 +9,9 @@ namespace MediaBrowser.Model.LiveTv
|
||||
{
|
||||
AllowHWTranscoding = true;
|
||||
IgnoreDts = true;
|
||||
AllowStreamSharing = true;
|
||||
AllowFmp4TranscodingContainer = false;
|
||||
FallbackMaxStreamingBitrate = 30000000;
|
||||
}
|
||||
|
||||
public string Id { get; set; }
|
||||
@@ -25,6 +28,12 @@ namespace MediaBrowser.Model.LiveTv
|
||||
|
||||
public bool AllowHWTranscoding { get; set; }
|
||||
|
||||
public bool AllowFmp4TranscodingContainer { get; set; }
|
||||
|
||||
public bool AllowStreamSharing { get; set; }
|
||||
|
||||
public int FallbackMaxStreamingBitrate { get; set; }
|
||||
|
||||
public bool EnableStreamLooping { get; set; }
|
||||
|
||||
public string Source { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user