mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-17 10:58:58 -07:00
98 lines
2.5 KiB
C#
98 lines
2.5 KiB
C#
|
using MediaBrowser.Model.Dlna;
|
|||
|
using System.Xml.Serialization;
|
|||
|
|
|||
|
namespace MediaBrowser.Dlna.Profiles
|
|||
|
{
|
|||
|
[XmlRoot("Profile")]
|
|||
|
public class KodiProfile : DefaultProfile
|
|||
|
{
|
|||
|
public KodiProfile()
|
|||
|
{
|
|||
|
Name = "Kodi";
|
|||
|
|
|||
|
MaxStreamingBitrate = 100000000;
|
|||
|
MaxStaticBitrate = 100000000;
|
|||
|
MusicStreamingTranscodingBitrate = 1280000;
|
|||
|
MusicSyncBitrate = 1280000;
|
|||
|
|
|||
|
TimelineOffsetSeconds = 5;
|
|||
|
|
|||
|
Identification = new DeviceIdentification
|
|||
|
{
|
|||
|
ModelName = "Kodi",
|
|||
|
|
|||
|
Headers = new[]
|
|||
|
{
|
|||
|
new HttpHeaderInfo {Name = "User-Agent", Value = "Kodi", Match = HeaderMatchType.Substring}
|
|||
|
}
|
|||
|
};
|
|||
|
|
|||
|
TranscodingProfiles = new[]
|
|||
|
{
|
|||
|
new TranscodingProfile
|
|||
|
{
|
|||
|
Container = "mp3",
|
|||
|
AudioCodec = "mp3",
|
|||
|
Type = DlnaProfileType.Audio
|
|||
|
},
|
|||
|
|
|||
|
new TranscodingProfile
|
|||
|
{
|
|||
|
Container = "ts",
|
|||
|
Type = DlnaProfileType.Video,
|
|||
|
AudioCodec = "aac",
|
|||
|
VideoCodec = "h264"
|
|||
|
},
|
|||
|
|
|||
|
new TranscodingProfile
|
|||
|
{
|
|||
|
Container = "jpeg",
|
|||
|
Type = DlnaProfileType.Photo
|
|||
|
}
|
|||
|
};
|
|||
|
|
|||
|
DirectPlayProfiles = new[]
|
|||
|
{
|
|||
|
new DirectPlayProfile
|
|||
|
{
|
|||
|
Container = "",
|
|||
|
Type = DlnaProfileType.Video
|
|||
|
},
|
|||
|
|
|||
|
new DirectPlayProfile
|
|||
|
{
|
|||
|
Container = "",
|
|||
|
Type = DlnaProfileType.Audio
|
|||
|
},
|
|||
|
|
|||
|
new DirectPlayProfile
|
|||
|
{
|
|||
|
Container = "",
|
|||
|
Type = DlnaProfileType.Photo,
|
|||
|
}
|
|||
|
};
|
|||
|
|
|||
|
ResponseProfiles = new ResponseProfile[] { };
|
|||
|
|
|||
|
ContainerProfiles = new ContainerProfile[] { };
|
|||
|
|
|||
|
CodecProfiles = new CodecProfile[] { };
|
|||
|
|
|||
|
SubtitleProfiles = new[]
|
|||
|
{
|
|||
|
new SubtitleProfile
|
|||
|
{
|
|||
|
Format = "srt",
|
|||
|
Method = SubtitleDeliveryMethod.External,
|
|||
|
},
|
|||
|
|
|||
|
new SubtitleProfile
|
|||
|
{
|
|||
|
Format = "sub",
|
|||
|
Method = SubtitleDeliveryMethod.External,
|
|||
|
}
|
|||
|
};
|
|||
|
}
|
|||
|
}
|
|||
|
}
|