1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- using MediaBrowser.Controller.Dlna;
- using System.Xml.Serialization;
- namespace MediaBrowser.Dlna.Profiles
- {
- [XmlRoot("Profile")]
- public class DefaultProfile : DeviceProfile
- {
- public DefaultProfile()
- {
- Name = "Generic Device";
- ProtocolInfo = "DLNA";
- FriendlyName = "Media Browser";
- Manufacturer = "Media Browser";
- ModelDescription = "Media Browser";
- ModelName = "Media Browser";
- ModelNumber = "Media Browser";
- ModelUrl = "http://mediabrowser3.com/";
- ManufacturerUrl = "http://mediabrowser3.com/";
- TranscodingProfiles = new[]
- {
- new TranscodingProfile
- {
- Container = "mp3",
- AudioCodec = "mp3",
- Type = DlnaProfileType.Audio
- },
- new TranscodingProfile
- {
- Container = "ts",
- Type = DlnaProfileType.Video,
- AudioCodec = "aac",
- VideoCodec = "h264",
- Settings = new []
- {
- new TranscodingSetting {Name = TranscodingSettingType.VideoProfile, Value = "baseline"}
- }
- }
- };
- DirectPlayProfiles = new[]
- {
- new DirectPlayProfile
- {
- Container = "mp3,wma",
- Type = DlnaProfileType.Audio
- },
- new DirectPlayProfile
- {
- Container = "avi,mp4",
- Type = DlnaProfileType.Video
- }
- };
- CodecProfiles = new[]
- {
- new CodecProfile
- {
- Type = CodecType.VideoCodec,
- Conditions = new []
- {
- new ProfileCondition
- {
- Condition = ProfileConditionType.LessThanEqual,
- Property = ProfileConditionValue.VideoLevel,
- Value = "3",
- IsRequired = false
- }
- }
- }
- };
- }
- }
- }
|