jellyfin/MediaBrowser.Dlna/Profiles/VlcProfile.cs

150 lines
4.0 KiB
C#
Raw Normal View History

2016-05-11 02:22:58 +00:00
using MediaBrowser.Model.Dlna;
using System.Xml.Serialization;
2015-05-04 22:07:46 +00:00
namespace MediaBrowser.Dlna.Profiles
{
[XmlRoot("Profile")]
public class VlcProfile : DefaultProfile
{
public VlcProfile()
{
Name = "Vlc";
2016-05-11 02:22:58 +00:00
2015-05-04 22:07:46 +00:00
TimelineOffsetSeconds = 5;
Identification = new DeviceIdentification
{
ModelName = "Vlc",
Headers = new[]
{
new HttpHeaderInfo {Name = "User-Agent", Value = "vlc", Match = HeaderMatchType.Substring}
}
};
TranscodingProfiles = new[]
{
new TranscodingProfile
{
Container = "mp3",
2016-05-11 02:22:58 +00:00
AudioCodec = "mp3",
Type = DlnaProfileType.Audio
2015-05-04 22:07:46 +00:00
},
2016-05-11 02:22:58 +00:00
2015-05-04 22:07:46 +00:00
new TranscodingProfile
{
Container = "ts",
Type = DlnaProfileType.Video,
2016-05-11 02:22:58 +00:00
AudioCodec = "aac",
VideoCodec = "h264"
2015-05-04 22:07:46 +00:00
},
2016-05-11 02:22:58 +00:00
2015-05-04 22:07:46 +00:00
new TranscodingProfile
{
Container = "jpeg",
Type = DlnaProfileType.Photo
}
};
DirectPlayProfiles = new[]
{
new DirectPlayProfile
{
2016-05-11 02:22:58 +00:00
Container = "",
2015-05-04 22:07:46 +00:00
Type = DlnaProfileType.Video
},
new DirectPlayProfile
{
2016-05-11 02:22:58 +00:00
Container = "",
2015-05-04 22:07:46 +00:00
Type = DlnaProfileType.Audio
},
new DirectPlayProfile
{
2016-05-11 02:22:58 +00:00
Container = "",
2015-05-04 22:07:46 +00:00
Type = DlnaProfileType.Photo,
}
};
ResponseProfiles = new ResponseProfile[] { };
ContainerProfiles = new ContainerProfile[] { };
CodecProfiles = new CodecProfile[] { };
2016-05-11 02:22:58 +00:00
SubtitleProfiles = new[]
{
new SubtitleProfile
{
Format = "srt",
Method = SubtitleDeliveryMethod.External,
},
new SubtitleProfile
{
Format = "sub",
Method = SubtitleDeliveryMethod.External,
},
new SubtitleProfile
{
Format = "srt",
Method = SubtitleDeliveryMethod.Embed,
DidlMode = "",
},
new SubtitleProfile
{
Format = "ass",
Method = SubtitleDeliveryMethod.Embed,
DidlMode = "",
},
new SubtitleProfile
{
Format = "ssa",
Method = SubtitleDeliveryMethod.Embed,
DidlMode = "",
},
new SubtitleProfile
{
Format = "smi",
Method = SubtitleDeliveryMethod.Embed,
DidlMode = "",
},
new SubtitleProfile
{
Format = "dvdsub",
Method = SubtitleDeliveryMethod.Embed,
DidlMode = "",
},
new SubtitleProfile
{
Format = "pgs",
Method = SubtitleDeliveryMethod.Embed,
DidlMode = "",
},
new SubtitleProfile
{
Format = "pgssub",
Method = SubtitleDeliveryMethod.Embed,
DidlMode = "",
},
new SubtitleProfile
{
Format = "sub",
Method = SubtitleDeliveryMethod.Embed,
DidlMode = "",
}
};
2015-05-04 22:07:46 +00:00
}
}
}