mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-09 19:56:18 +00:00
enforce codec profiles
This commit is contained in:
@@ -32,6 +32,12 @@ namespace MediaBrowser.Controller.Dlna
|
||||
public ProfileConditionType Condition { get; set; }
|
||||
public ProfileConditionValue Property { get; set; }
|
||||
public string Value { get; set; }
|
||||
public bool IsRequired { get; set; }
|
||||
|
||||
public ProfileCondition()
|
||||
{
|
||||
IsRequired = true;
|
||||
}
|
||||
}
|
||||
|
||||
public enum ProfileConditionType
|
||||
@@ -46,11 +52,14 @@ namespace MediaBrowser.Controller.Dlna
|
||||
{
|
||||
AudioChannels,
|
||||
AudioBitrate,
|
||||
AudioProfile,
|
||||
Filesize,
|
||||
Width,
|
||||
Height,
|
||||
Has64BitOffsets,
|
||||
VideoBitrate,
|
||||
VideoFramerate,
|
||||
VideoLevel
|
||||
VideoLevel,
|
||||
VideoProfile
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,6 +60,9 @@ namespace MediaBrowser.Controller.Dlna
|
||||
|
||||
public int TimelineOffsetSeconds { get; set; }
|
||||
|
||||
public bool RequiresPlainVideoItems { get; set; }
|
||||
public bool RequiresPlainFolders { get; set; }
|
||||
|
||||
public DeviceProfile()
|
||||
{
|
||||
DirectPlayProfiles = new DirectPlayProfile[] { };
|
||||
|
||||
@@ -11,6 +11,10 @@ namespace MediaBrowser.Controller.Dlna
|
||||
public string VideoCodec { get; set; }
|
||||
public string AudioCodec { get; set; }
|
||||
|
||||
public bool EstimateContentLength { get; set; }
|
||||
|
||||
public TranscodeSeekInfo TranscodeSeekInfo { get; set; }
|
||||
|
||||
public List<TranscodingSetting> Settings { get; set; }
|
||||
|
||||
public TranscodingProfile()
|
||||
@@ -27,6 +31,13 @@ namespace MediaBrowser.Controller.Dlna
|
||||
|
||||
public enum TranscodingSettingType
|
||||
{
|
||||
Profile
|
||||
Profile = 0,
|
||||
MaxAudioChannels = 1
|
||||
}
|
||||
|
||||
public enum TranscodeSeekInfo
|
||||
{
|
||||
Auto = 0,
|
||||
Bytes = 1
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user