< Summary - Jellyfin

Information
Class: MediaBrowser.Model.Dlna.DeviceProfile
Assembly: MediaBrowser.Model
File(s): /srv/git/jellyfin/MediaBrowser.Model/Dlna/DeviceProfile.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 71
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Coverage history

Coverage history 0 25 50 75 100

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor()100%11100%

File(s)

/srv/git/jellyfin/MediaBrowser.Model/Dlna/DeviceProfile.cs

#LineLine coverage
 1#pragma warning disable CA1819 // Properties should not return arrays
 2
 3using System;
 4
 5namespace 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>
 15public 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>
 26530    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>
 26535    public int? MaxStaticBitrate { get; set; } = 8000000;
 36
 37    /// <summary>
 38    /// Gets or sets the maximum allowed bitrate for transcoded music streams.
 39    /// </summary>
 26540    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>
 26545    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}

Methods/Properties

.ctor()