mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 19:37:55 +02:00
150 lines
4.6 KiB
C#
150 lines
4.6 KiB
C#
using MediaBrowser.Model.Dlna;
|
|
using System.Xml.Serialization;
|
|
|
|
namespace MediaBrowser.Dlna.Profiles
|
|
{
|
|
[XmlRoot("Profile")]
|
|
public class Windows81Profile : DefaultProfile
|
|
{
|
|
public Windows81Profile()
|
|
{
|
|
Name = "Windows 8/RT";
|
|
|
|
Identification = new DeviceIdentification
|
|
{
|
|
Manufacturer = "Microsoft SDK Customer"
|
|
};
|
|
|
|
TranscodingProfiles = new[]
|
|
{
|
|
new TranscodingProfile
|
|
{
|
|
Container = "mp3",
|
|
AudioCodec = "mp3",
|
|
Type = DlnaProfileType.Audio
|
|
},
|
|
new TranscodingProfile
|
|
{
|
|
Protocol = "hls",
|
|
Container = "ts",
|
|
VideoCodec = "h264",
|
|
AudioCodec = "aac",
|
|
Type = DlnaProfileType.Video,
|
|
VideoProfile = "Baseline"
|
|
},
|
|
new TranscodingProfile
|
|
{
|
|
Container = "ts",
|
|
VideoCodec = "h264",
|
|
AudioCodec = "aac",
|
|
Type = DlnaProfileType.Video,
|
|
VideoProfile = "Baseline"
|
|
}
|
|
};
|
|
|
|
DirectPlayProfiles = new[]
|
|
{
|
|
new DirectPlayProfile
|
|
{
|
|
Container = "mp4,mov",
|
|
VideoCodec = "h264,mpeg4",
|
|
AudioCodec = "aac,ac3,eac3,mp3,pcm",
|
|
Type = DlnaProfileType.Video
|
|
},
|
|
|
|
new DirectPlayProfile
|
|
{
|
|
Container = "ts",
|
|
VideoCodec = "h264",
|
|
AudioCodec = "aac,ac3,eac3,mp3,mp2,pcm",
|
|
Type = DlnaProfileType.Video
|
|
},
|
|
|
|
new DirectPlayProfile
|
|
{
|
|
Container = "asf",
|
|
VideoCodec = "wmv2,wmv3,vc1",
|
|
AudioCodec = "wmav2,wmapro,wmavoice",
|
|
Type = DlnaProfileType.Video
|
|
},
|
|
|
|
new DirectPlayProfile
|
|
{
|
|
Container = "avi",
|
|
VideoCodec = "mpeg4,msmpeg4,mjpeg",
|
|
AudioCodec = "mp3,ac3,eac3,mp2,pcm",
|
|
Type = DlnaProfileType.Video
|
|
},
|
|
|
|
new DirectPlayProfile
|
|
{
|
|
Container = "mp4",
|
|
AudioCodec = "aac",
|
|
Type = DlnaProfileType.Audio
|
|
},
|
|
|
|
new DirectPlayProfile
|
|
{
|
|
Container = "mp3",
|
|
AudioCodec = "mp3",
|
|
Type = DlnaProfileType.Audio
|
|
},
|
|
|
|
new DirectPlayProfile
|
|
{
|
|
Container = "jpeg",
|
|
Type = DlnaProfileType.Photo
|
|
}
|
|
};
|
|
|
|
CodecProfiles = new[]
|
|
{
|
|
new CodecProfile
|
|
{
|
|
Type = CodecType.Video,
|
|
Conditions = new []
|
|
{
|
|
new ProfileCondition
|
|
{
|
|
Condition = ProfileConditionType.LessThanEqual,
|
|
Property = ProfileConditionValue.VideoBitDepth,
|
|
Value = "8",
|
|
IsRequired = false
|
|
}
|
|
}
|
|
},
|
|
|
|
new CodecProfile
|
|
{
|
|
Type = CodecType.VideoAudio,
|
|
Codec = "aac,eac3",
|
|
Conditions = new []
|
|
{
|
|
new ProfileCondition
|
|
{
|
|
Condition = ProfileConditionType.LessThanEqual,
|
|
Property = ProfileConditionValue.AudioChannels,
|
|
Value = "8"
|
|
}
|
|
}
|
|
},
|
|
|
|
new CodecProfile
|
|
{
|
|
Type = CodecType.VideoAudio,
|
|
Codec = "ac3",
|
|
Conditions = new []
|
|
{
|
|
new ProfileCondition
|
|
{
|
|
Condition = ProfileConditionType.LessThanEqual,
|
|
Property = ProfileConditionValue.AudioChannels,
|
|
Value = "6"
|
|
}
|
|
}
|
|
}
|
|
};
|
|
|
|
}
|
|
}
|
|
}
|