You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jellyfin/MediaBrowser.Model/Dlna/DeviceProfile.cs

75 lines
2.8 KiB

4 years ago
#pragma warning disable CA1819 // Properties should not return arrays
using System;
6 years ago
using System.Xml.Serialization;
namespace MediaBrowser.Model.Dlna
{
4 years ago
/// <summary>
/// A <see cref="DeviceProfile" /> represents a set of metadata which determines which content a certain device is able to play.
/// <br/>
/// Specifically, it defines the supported <see cref="ContainerProfiles">containers</see> and
/// <see cref="CodecProfiles">codecs</see> (video and/or audio, including codec profiles and levels)
/// the device is able to direct play (without transcoding or remuxing),
/// as well as which <see cref="TranscodingProfiles">containers/codecs to transcode to</see> in case it isn't.
4 years ago
/// </summary>
6 years ago
public class DeviceProfile
{
4 years ago
/// <summary>
/// Gets or sets the name of this device profile.
6 years ago
/// </summary>
public string? Name { get; set; }
6 years ago
4 years ago
/// <summary>
/// Gets or sets the Id.
/// </summary>
6 years ago
[XmlIgnore]
public string? Id { get; set; }
6 years ago
4 years ago
/// <summary>
/// Gets or sets the maximum allowed bitrate for all streamed content.
4 years ago
/// </summary>
public int? MaxStreamingBitrate { get; set; } = 8000000;
4 years ago
/// <summary>
/// Gets or sets the maximum allowed bitrate for statically streamed content (= direct played files).
4 years ago
/// </summary>
public int? MaxStaticBitrate { get; set; } = 8000000;
6 years ago
4 years ago
/// <summary>
/// Gets or sets the maximum allowed bitrate for transcoded music streams.
4 years ago
/// </summary>
public int? MusicStreamingTranscodingBitrate { get; set; } = 128000;
4 years ago
/// <summary>
/// Gets or sets the maximum allowed bitrate for statically streamed (= direct played) music files.
4 years ago
/// </summary>
public int? MaxStaticMusicBitrate { get; set; } = 8000000;
6 years ago
/// <summary>
/// Gets or sets the direct play profiles.
/// </summary>
public DirectPlayProfile[] DirectPlayProfiles { get; set; } = Array.Empty<DirectPlayProfile>();
6 years ago
/// <summary>
/// Gets or sets the transcoding profiles.
/// </summary>
public TranscodingProfile[] TranscodingProfiles { get; set; } = Array.Empty<TranscodingProfile>();
6 years ago
4 years ago
/// <summary>
/// Gets or sets the container profiles.
4 years ago
/// </summary>
public ContainerProfile[] ContainerProfiles { get; set; } = Array.Empty<ContainerProfile>();
6 years ago
4 years ago
/// <summary>
/// Gets or sets the codec profiles.
4 years ago
/// </summary>
public CodecProfile[] CodecProfiles { get; set; } = Array.Empty<CodecProfile>();
4 years ago
/// <summary>
/// Gets or sets the subtitle profiles.
4 years ago
/// </summary>
public SubtitleProfile[] SubtitleProfiles { get; set; } = Array.Empty<SubtitleProfile>();
6 years ago
}
}