< Summary - Jellyfin

Information
Class: Jellyfin.MediaEncoding.Hls.Playlist.CreateMainPlaylistRequest
Assembly: Jellyfin.MediaEncoding.Hls
File(s): /srv/git/jellyfin/src/Jellyfin.MediaEncoding.Hls/Playlist/CreateMainPlaylistRequest.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 63
Line coverage: 0%
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%210%

File(s)

/srv/git/jellyfin/src/Jellyfin.MediaEncoding.Hls/Playlist/CreateMainPlaylistRequest.cs

#LineLine coverage
 1namespace Jellyfin.MediaEncoding.Hls.Playlist;
 2
 3/// <summary>
 4/// Request class for the <see cref="IDynamicHlsPlaylistGenerator.CreateMainPlaylist(CreateMainPlaylistRequest)"/> metho
 5/// </summary>
 6public class CreateMainPlaylistRequest
 7{
 8    /// <summary>
 9    /// Initializes a new instance of the <see cref="CreateMainPlaylistRequest"/> class.
 10    /// </summary>
 11    /// <param name="filePath">The absolute file path to the file.</param>
 12    /// <param name="desiredSegmentLengthMs">The desired segment length in milliseconds.</param>
 13    /// <param name="totalRuntimeTicks">The total duration of the file in ticks.</param>
 14    /// <param name="segmentContainer">The desired segment container eg. "ts".</param>
 15    /// <param name="endpointPrefix">The URI prefix for the relative URL in the playlist.</param>
 16    /// <param name="queryString">The desired query string to append (must start with ?).</param>
 17    /// <param name="isRemuxingVideo">Whether the video is being remuxed.</param>
 18    public CreateMainPlaylistRequest(string filePath, int desiredSegmentLengthMs, long totalRuntimeTicks, string segment
 019    {
 20        FilePath = filePath;
 21        DesiredSegmentLengthMs = desiredSegmentLengthMs;
 22        TotalRuntimeTicks = totalRuntimeTicks;
 23        SegmentContainer = segmentContainer;
 24        EndpointPrefix = endpointPrefix;
 25        QueryString = queryString;
 26        IsRemuxingVideo = isRemuxingVideo;
 027    }
 28
 29    /// <summary>
 30    /// Gets the file path.
 31    /// </summary>
 32    public string FilePath { get; }
 33
 34    /// <summary>
 35    /// Gets the desired segment length in milliseconds.
 36    /// </summary>
 37    public int DesiredSegmentLengthMs { get; }
 38
 39    /// <summary>
 40    /// Gets the total runtime in ticks.
 41    /// </summary>
 42    public long TotalRuntimeTicks { get; }
 43
 44    /// <summary>
 45    /// Gets the segment container.
 46    /// </summary>
 47    public string SegmentContainer { get; }
 48
 49    /// <summary>
 50    /// Gets the endpoint prefix for the URL.
 51    /// </summary>
 52    public string EndpointPrefix { get; }
 53
 54    /// <summary>
 55    /// Gets the query string.
 56    /// </summary>
 57    public string QueryString { get; }
 58
 59    /// <summary>
 60    /// Gets a value indicating whether the video is being remuxed.
 61    /// </summary>
 62    public bool IsRemuxingVideo { get; }
 63}