2020-01-22 20:00:07 +00:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
#pragma warning disable SA1600
|
|
|
|
|
2019-01-13 19:54:44 +00:00
|
|
|
using MediaBrowser.Model.Dlna;
|
2017-01-17 02:58:47 +00:00
|
|
|
|
|
|
|
namespace Emby.Dlna.Profiles
|
|
|
|
{
|
2018-09-12 17:26:21 +00:00
|
|
|
[System.Xml.Serialization.XmlRoot("Profile")]
|
2017-01-17 02:58:47 +00:00
|
|
|
public class SharpSmartTvProfile : DefaultProfile
|
|
|
|
{
|
|
|
|
public SharpSmartTvProfile()
|
|
|
|
{
|
|
|
|
Name = "Sharp Smart TV";
|
|
|
|
|
2017-01-18 13:33:18 +00:00
|
|
|
RequiresPlainFolders = true;
|
|
|
|
RequiresPlainVideoItems = true;
|
|
|
|
|
2017-01-17 02:58:47 +00:00
|
|
|
Identification = new DeviceIdentification
|
|
|
|
{
|
|
|
|
Manufacturer = "Sharp",
|
|
|
|
|
|
|
|
Headers = new[]
|
|
|
|
{
|
|
|
|
new HttpHeaderInfo
|
|
|
|
{
|
|
|
|
Name = "User-Agent",
|
|
|
|
Value = "Sharp",
|
|
|
|
Match = HeaderMatchType.Substring
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
TranscodingProfiles = new[]
|
|
|
|
{
|
|
|
|
new TranscodingProfile
|
|
|
|
{
|
|
|
|
Container = "mp3",
|
|
|
|
AudioCodec = "mp3",
|
|
|
|
Type = DlnaProfileType.Audio
|
|
|
|
},
|
|
|
|
|
|
|
|
new TranscodingProfile
|
|
|
|
{
|
2017-01-17 21:09:43 +00:00
|
|
|
Container = "ts",
|
2017-01-17 02:58:47 +00:00
|
|
|
Type = DlnaProfileType.Video,
|
|
|
|
AudioCodec = "ac3,aac,mp3,dts,dca",
|
2017-01-18 13:33:18 +00:00
|
|
|
VideoCodec = "h264",
|
|
|
|
EnableMpegtsM2TsMode = true
|
2017-01-17 02:58:47 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
new TranscodingProfile
|
|
|
|
{
|
|
|
|
Container = "jpeg",
|
|
|
|
Type = DlnaProfileType.Photo
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
DirectPlayProfiles = new[]
|
|
|
|
{
|
|
|
|
new DirectPlayProfile
|
|
|
|
{
|
|
|
|
Container = "m4v,mkv,avi,mov,mp4",
|
|
|
|
VideoCodec = "h264,mpeg4",
|
|
|
|
AudioCodec = "aac,mp3,ac3,dts,dca",
|
|
|
|
Type = DlnaProfileType.Video
|
|
|
|
},
|
|
|
|
|
|
|
|
new DirectPlayProfile
|
|
|
|
{
|
|
|
|
Container = "asf,wmv",
|
|
|
|
Type = DlnaProfileType.Video
|
|
|
|
},
|
|
|
|
|
|
|
|
new DirectPlayProfile
|
|
|
|
{
|
|
|
|
Container = "mpg,mpeg",
|
|
|
|
VideoCodec = "mpeg2video",
|
|
|
|
AudioCodec = "mp3,aac",
|
|
|
|
Type = DlnaProfileType.Video
|
|
|
|
},
|
|
|
|
|
|
|
|
new DirectPlayProfile
|
|
|
|
{
|
|
|
|
Container = "flv",
|
|
|
|
VideoCodec = "h264",
|
|
|
|
AudioCodec = "mp3,aac",
|
|
|
|
Type = DlnaProfileType.Video
|
|
|
|
},
|
|
|
|
|
|
|
|
new DirectPlayProfile
|
|
|
|
{
|
|
|
|
Container = "mp3,wav",
|
|
|
|
Type = DlnaProfileType.Audio
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
SubtitleProfiles = new[]
|
|
|
|
{
|
|
|
|
new SubtitleProfile
|
|
|
|
{
|
|
|
|
Format = "srt",
|
|
|
|
Method = SubtitleDeliveryMethod.Embed
|
|
|
|
},
|
|
|
|
new SubtitleProfile
|
|
|
|
{
|
|
|
|
Format = "srt",
|
|
|
|
Method = SubtitleDeliveryMethod.External
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
ResponseProfiles = new[]
|
|
|
|
{
|
|
|
|
new ResponseProfile
|
|
|
|
{
|
|
|
|
Container = "m4v",
|
|
|
|
Type = DlnaProfileType.Video,
|
|
|
|
MimeType = "video/mp4"
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|