namespace Jellyfin.MediaEncoding.Hls.Playlist
{
///
/// Request class for the method.
///
public class CreateMainPlaylistRequest
{
///
/// Initializes a new instance of the class.
///
/// The absolute file path to the file.
/// The desired segment length in milliseconds.
/// The total duration of the file in ticks.
/// The desired segment container eg. "ts".
/// The URI prefix for the relative URL in the playlist.
/// The desired query string to append (must start with ?).
public CreateMainPlaylistRequest(string filePath, int desiredSegmentLengthMs, long totalRuntimeTicks, string segmentContainer, string endpointPrefix, string queryString)
{
FilePath = filePath;
DesiredSegmentLengthMs = desiredSegmentLengthMs;
TotalRuntimeTicks = totalRuntimeTicks;
SegmentContainer = segmentContainer;
EndpointPrefix = endpointPrefix;
QueryString = queryString;
}
///
/// Gets the file path.
///
public string FilePath { get; }
///
/// Gets the desired segment length in milliseconds.
///
public int DesiredSegmentLengthMs { get; }
///
/// Gets the total runtime in ticks.
///
public long TotalRuntimeTicks { get; }
///
/// Gets the segment container.
///
public string SegmentContainer { get; }
///
/// Gets the endpoint prefix for the URL.
///
public string EndpointPrefix { get; }
///
/// Gets the query string.
///
public string QueryString { get; }
}
}