| | | 1 | | #pragma warning disable CA1819 // Properties should not return arrays |
| | | 2 | | |
| | | 3 | | using System; |
| | | 4 | | |
| | | 5 | | namespace MediaBrowser.Model.Dlna; |
| | | 6 | | |
| | | 7 | | /// <summary> |
| | | 8 | | /// A <see cref="DeviceProfile" /> represents a set of metadata which determines which content a certain device is able |
| | | 9 | | /// <br/> |
| | | 10 | | /// Specifically, it defines the supported <see cref="ContainerProfiles">containers</see> and |
| | | 11 | | /// <see cref="CodecProfiles">codecs</see> (video and/or audio, including codec profiles and levels) |
| | | 12 | | /// the device is able to direct play (without transcoding or remuxing), |
| | | 13 | | /// as well as which <see cref="TranscodingProfiles">containers/codecs to transcode to</see> in case it isn't. |
| | | 14 | | /// </summary> |
| | | 15 | | public class DeviceProfile |
| | | 16 | | { |
| | | 17 | | /// <summary> |
| | | 18 | | /// Gets or sets the name of this device profile. User profiles must have a unique name. |
| | | 19 | | /// </summary> |
| | | 20 | | public string? Name { get; set; } |
| | | 21 | | |
| | | 22 | | /// <summary> |
| | | 23 | | /// Gets or sets the unique internal identifier. |
| | | 24 | | /// </summary> |
| | | 25 | | public Guid? Id { get; set; } |
| | | 26 | | |
| | | 27 | | /// <summary> |
| | | 28 | | /// Gets or sets the maximum allowed bitrate for all streamed content. |
| | | 29 | | /// </summary> |
| | 283 | 30 | | public int? MaxStreamingBitrate { get; set; } = 8000000; |
| | | 31 | | |
| | | 32 | | /// <summary> |
| | | 33 | | /// Gets or sets the maximum allowed bitrate for statically streamed content (= direct played files). |
| | | 34 | | /// </summary> |
| | 283 | 35 | | public int? MaxStaticBitrate { get; set; } = 8000000; |
| | | 36 | | |
| | | 37 | | /// <summary> |
| | | 38 | | /// Gets or sets the maximum allowed bitrate for transcoded music streams. |
| | | 39 | | /// </summary> |
| | 283 | 40 | | public int? MusicStreamingTranscodingBitrate { get; set; } = 128000; |
| | | 41 | | |
| | | 42 | | /// <summary> |
| | | 43 | | /// Gets or sets the maximum allowed bitrate for statically streamed (= direct played) music files. |
| | | 44 | | /// </summary> |
| | 283 | 45 | | public int? MaxStaticMusicBitrate { get; set; } = 8000000; |
| | | 46 | | |
| | | 47 | | /// <summary> |
| | | 48 | | /// Gets or sets the direct play profiles. |
| | | 49 | | /// </summary> |
| | | 50 | | public DirectPlayProfile[] DirectPlayProfiles { get; set; } = []; |
| | | 51 | | |
| | | 52 | | /// <summary> |
| | | 53 | | /// Gets or sets the transcoding profiles. |
| | | 54 | | /// </summary> |
| | | 55 | | public TranscodingProfile[] TranscodingProfiles { get; set; } = []; |
| | | 56 | | |
| | | 57 | | /// <summary> |
| | | 58 | | /// Gets or sets the container profiles. Failing to meet these optional conditions causes transcoding to occur. |
| | | 59 | | /// </summary> |
| | | 60 | | public ContainerProfile[] ContainerProfiles { get; set; } = []; |
| | | 61 | | |
| | | 62 | | /// <summary> |
| | | 63 | | /// Gets or sets the codec profiles. |
| | | 64 | | /// </summary> |
| | | 65 | | public CodecProfile[] CodecProfiles { get; set; } = []; |
| | | 66 | | |
| | | 67 | | /// <summary> |
| | | 68 | | /// Gets or sets the subtitle profiles. |
| | | 69 | | /// </summary> |
| | | 70 | | public SubtitleProfile[] SubtitleProfiles { get; set; } = []; |
| | | 71 | | } |