mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 20:08:59 +02:00
50 lines
1.4 KiB
C#
50 lines
1.4 KiB
C#
|
using MediaBrowser.Controller.Dlna;
|
|||
|
|
|||
|
namespace MediaBrowser.Dlna.Profiles
|
|||
|
{
|
|||
|
public class DefaultProfile : DeviceProfile
|
|||
|
{
|
|||
|
public DefaultProfile()
|
|||
|
{
|
|||
|
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.VideoLevel, Value = "3"},
|
|||
|
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
|
|||
|
}
|
|||
|
};
|
|||
|
}
|
|||
|
}
|
|||
|
}
|