Add TranscodingProfile conditions
This commit is contained in:
parent
588c349eb4
commit
1fe82d0deb
|
@ -699,6 +699,7 @@ namespace MediaBrowser.Model.Dlna
|
||||||
if (playlistItem.PlayMethod != PlayMethod.DirectPlay)
|
if (playlistItem.PlayMethod != PlayMethod.DirectPlay)
|
||||||
{
|
{
|
||||||
playlistItem.PlayMethod = PlayMethod.Transcode;
|
playlistItem.PlayMethod = PlayMethod.Transcode;
|
||||||
|
ApplyTranscodingConditions(playlistItem, transcodingProfile.Conditions, null, true, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#pragma warning disable CS1591
|
#pragma warning disable CS1591
|
||||||
|
|
||||||
|
using System;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Xml.Serialization;
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
@ -7,6 +8,11 @@ namespace MediaBrowser.Model.Dlna
|
||||||
{
|
{
|
||||||
public class TranscodingProfile
|
public class TranscodingProfile
|
||||||
{
|
{
|
||||||
|
public TranscodingProfile()
|
||||||
|
{
|
||||||
|
Conditions = Array.Empty<ProfileCondition>();
|
||||||
|
}
|
||||||
|
|
||||||
[XmlAttribute("container")]
|
[XmlAttribute("container")]
|
||||||
public string Container { get; set; } = string.Empty;
|
public string Container { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
@ -61,6 +67,8 @@ namespace MediaBrowser.Model.Dlna
|
||||||
[XmlAttribute("breakOnNonKeyFrames")]
|
[XmlAttribute("breakOnNonKeyFrames")]
|
||||||
public bool BreakOnNonKeyFrames { get; set; }
|
public bool BreakOnNonKeyFrames { get; set; }
|
||||||
|
|
||||||
|
public ProfileCondition[] Conditions { get; set; }
|
||||||
|
|
||||||
public string[] GetAudioCodecs()
|
public string[] GetAudioCodecs()
|
||||||
{
|
{
|
||||||
return ContainerProfile.SplitValue(AudioCodec);
|
return ContainerProfile.SplitValue(AudioCodec);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user