mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 03:48:06 +02:00
65 lines
1.7 KiB
C#
65 lines
1.7 KiB
C#
using MediaBrowser.Model.Dlna;
|
|
using System.Xml.Serialization;
|
|
|
|
namespace MediaBrowser.Dlna.Profiles
|
|
{
|
|
[XmlRoot("Profile")]
|
|
public class DefaultProfile : DeviceProfile
|
|
{
|
|
public DefaultProfile()
|
|
{
|
|
Name = "Generic Device";
|
|
|
|
ProtocolInfo = "DLNA";
|
|
|
|
XDlnaDoc = "DMS-1.50";
|
|
|
|
FriendlyName = "Media Browser";
|
|
Manufacturer = "Media Browser";
|
|
ModelDescription = "Media Browser";
|
|
ModelName = "Media Browser";
|
|
ModelNumber = "Media Browser";
|
|
ModelUrl = "http://mediabrowser.tv/";
|
|
ManufacturerUrl = "http://mediabrowser.tv/";
|
|
|
|
AlbumArtPn = "JPEG_SM";
|
|
|
|
MaxAlbumArtHeight = 512;
|
|
MaxAlbumArtWidth = 512;
|
|
|
|
TranscodingProfiles = new[]
|
|
{
|
|
new TranscodingProfile
|
|
{
|
|
Container = "mp3",
|
|
AudioCodec = "mp3",
|
|
Type = DlnaProfileType.Audio
|
|
},
|
|
|
|
new TranscodingProfile
|
|
{
|
|
Container = "ts",
|
|
Type = DlnaProfileType.Video,
|
|
AudioCodec = "aac",
|
|
VideoCodec = "h264",
|
|
VideoProfile= "baseline"
|
|
}
|
|
};
|
|
|
|
DirectPlayProfiles = new[]
|
|
{
|
|
new DirectPlayProfile
|
|
{
|
|
Container = "mp3,wma",
|
|
Type = DlnaProfileType.Audio
|
|
},
|
|
|
|
new DirectPlayProfile
|
|
{
|
|
Container = "avi,mp4",
|
|
Type = DlnaProfileType.Video
|
|
}
|
|
};
|
|
}
|
|
}
|
|
}
|