2014-03-23 09:42:02 -07:00
|
|
|
|
using MediaBrowser.Controller.Dlna;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Dlna.Profiles
|
|
|
|
|
{
|
|
|
|
|
public class DefaultProfile : DeviceProfile
|
|
|
|
|
{
|
|
|
|
|
public DefaultProfile()
|
|
|
|
|
{
|
2014-03-24 22:25:03 -07:00
|
|
|
|
Name = "Generic Device";
|
|
|
|
|
|
2014-03-23 10:18:24 -07:00
|
|
|
|
ProtocolInfo = "DLNA";
|
|
|
|
|
|
|
|
|
|
Manufacturer = "Media Browser";
|
|
|
|
|
ModelDescription = "Media Browser";
|
|
|
|
|
ModelName = "Media Browser";
|
|
|
|
|
ModelNumber = "Media Browser";
|
|
|
|
|
ModelUrl = "http://mediabrowser3.com/";
|
|
|
|
|
ManufacturerUrl = "http://mediabrowser3.com/";
|
|
|
|
|
|
2014-03-23 09:42:02 -07:00
|
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
};
|
2014-03-24 10:54:45 -07:00
|
|
|
|
|
|
|
|
|
CodecProfiles = new[]
|
|
|
|
|
{
|
|
|
|
|
new CodecProfile
|
|
|
|
|
{
|
|
|
|
|
Type = CodecType.VideoCodec,
|
|
|
|
|
Conditions = new []
|
|
|
|
|
{
|
|
|
|
|
new ProfileCondition
|
|
|
|
|
{
|
|
|
|
|
Condition = ProfileConditionType.LessThanEqual,
|
|
|
|
|
Property = ProfileConditionValue.VideoLevel,
|
|
|
|
|
Value = "3",
|
|
|
|
|
IsRequired = false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
2014-03-23 09:42:02 -07:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|