< Summary - Jellyfin

Information
Class: MediaBrowser.Model.Dlna.TranscodingProfile
Assembly: MediaBrowser.Model
File(s): /srv/git/jellyfin/MediaBrowser.Model/Dlna/TranscodingProfile.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 130
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/TranscodingProfile.cs

#LineLine coverage
 1using System.ComponentModel;
 2using System.Xml.Serialization;
 3using Jellyfin.Data.Enums;
 4
 5namespace MediaBrowser.Model.Dlna;
 6
 7/// <summary>
 8/// A class for transcoding profile information.
 9/// </summary>
 10public class TranscodingProfile
 11{
 12    /// <summary>
 13    /// Initializes a new instance of the <see cref="TranscodingProfile" /> class.
 14    /// </summary>
 15    public TranscodingProfile()
 16    {
 202317        Conditions = [];
 202318    }
 19
 20    /// <summary>
 21    /// Gets or sets the container.
 22    /// </summary>
 23    [XmlAttribute("container")]
 24    public string Container { get; set; } = string.Empty;
 25
 26    /// <summary>
 27    /// Gets or sets the DLNA profile type.
 28    /// </summary>
 29    [XmlAttribute("type")]
 30    public DlnaProfileType Type { get; set; }
 31
 32    /// <summary>
 33    /// Gets or sets the video codec.
 34    /// </summary>
 35    [XmlAttribute("videoCodec")]
 36    public string VideoCodec { get; set; } = string.Empty;
 37
 38    /// <summary>
 39    /// Gets or sets the audio codec.
 40    /// </summary>
 41    [XmlAttribute("audioCodec")]
 42    public string AudioCodec { get; set; } = string.Empty;
 43
 44    /// <summary>
 45    /// Gets or sets the protocol.
 46    /// </summary>
 47    [XmlAttribute("protocol")]
 48    public MediaStreamProtocol Protocol { get; set; } = MediaStreamProtocol.http;
 49
 50    /// <summary>
 51    /// Gets or sets a value indicating whether the content length should be estimated.
 52    /// </summary>
 53    [DefaultValue(false)]
 54    [XmlAttribute("estimateContentLength")]
 55    public bool EstimateContentLength { get; set; }
 56
 57    /// <summary>
 58    /// Gets or sets a value indicating whether M2TS mode is enabled.
 59    /// </summary>
 60    [DefaultValue(false)]
 61    [XmlAttribute("enableMpegtsM2TsMode")]
 62    public bool EnableMpegtsM2TsMode { get; set; }
 63
 64    /// <summary>
 65    /// Gets or sets the transcoding seek info mode.
 66    /// </summary>
 67    [DefaultValue(TranscodeSeekInfo.Auto)]
 68    [XmlAttribute("transcodeSeekInfo")]
 69    public TranscodeSeekInfo TranscodeSeekInfo { get; set; }
 70
 71    /// <summary>
 72    /// Gets or sets a value indicating whether timestamps should be copied.
 73    /// </summary>
 74    [DefaultValue(false)]
 75    [XmlAttribute("copyTimestamps")]
 76    public bool CopyTimestamps { get; set; }
 77
 78    /// <summary>
 79    /// Gets or sets the encoding context.
 80    /// </summary>
 81    [DefaultValue(EncodingContext.Streaming)]
 82    [XmlAttribute("context")]
 83    public EncodingContext Context { get; set; }
 84
 85    /// <summary>
 86    /// Gets or sets a value indicating whether subtitles are allowed in the manifest.
 87    /// </summary>
 88    [DefaultValue(false)]
 89    [XmlAttribute("enableSubtitlesInManifest")]
 90    public bool EnableSubtitlesInManifest { get; set; }
 91
 92    /// <summary>
 93    /// Gets or sets the maximum audio channels.
 94    /// </summary>
 95    [XmlAttribute("maxAudioChannels")]
 96    public string? MaxAudioChannels { get; set; }
 97
 98    /// <summary>
 99    /// Gets or sets the minimum amount of segments.
 100    /// </summary>
 101    [DefaultValue(0)]
 102    [XmlAttribute("minSegments")]
 103    public int MinSegments { get; set; }
 104
 105    /// <summary>
 106    /// Gets or sets the segment length.
 107    /// </summary>
 108    [DefaultValue(0)]
 109    [XmlAttribute("segmentLength")]
 110    public int SegmentLength { get; set; }
 111
 112    /// <summary>
 113    /// Gets or sets a value indicating whether breaking the video stream on non-keyframes is supported.
 114    /// </summary>
 115    [DefaultValue(false)]
 116    [XmlAttribute("breakOnNonKeyFrames")]
 117    public bool BreakOnNonKeyFrames { get; set; }
 118
 119    /// <summary>
 120    /// Gets or sets the profile conditions.
 121    /// </summary>
 122    public ProfileCondition[] Conditions { get; set; }
 123
 124    /// <summary>
 125    /// Gets or sets a value indicating whether variable bitrate encoding is supported.
 126    /// </summary>
 127    [DefaultValue(true)]
 128    [XmlAttribute("enableAudioVbrEncoding")]
 129    public bool EnableAudioVbrEncoding { get; set; } = true;
 130}

Methods/Properties

.ctor()