Files
jellyfin-jellyfin-1/MediaBrowser.Api/Playback/StreamState.cs

86 lines
2.2 KiB
C#
Raw Normal View History

using MediaBrowser.Common.Net;
using MediaBrowser.Model.Entities;
2013-08-09 21:16:31 -04:00
using MediaBrowser.Model.IO;
2013-12-19 16:51:32 -05:00
using System.Collections.Generic;
using System.IO;
2014-01-12 16:32:13 -05:00
using System.Threading;
2013-02-26 23:19:05 -05:00
namespace MediaBrowser.Api.Playback
{
public class StreamState
{
2013-12-19 16:51:32 -05:00
public string RequestedUrl { get; set; }
2013-02-26 23:19:05 -05:00
public StreamRequest Request { get; set; }
2013-03-08 21:34:54 -05:00
public VideoStreamRequest VideoRequest
{
2014-01-22 12:05:32 -05:00
get { return Request as VideoStreamRequest; }
2013-03-08 21:34:54 -05:00
}
2013-02-26 23:19:05 -05:00
/// <summary>
/// Gets or sets the log file stream.
/// </summary>
/// <value>The log file stream.</value>
public Stream LogFileStream { get; set; }
public MediaStream AudioStream { get; set; }
public MediaStream VideoStream { get; set; }
public MediaStream SubtitleStream { get; set; }
/// <summary>
/// Gets or sets the iso mount.
/// </summary>
/// <value>The iso mount.</value>
public IIsoMount IsoMount { get; set; }
2013-12-19 16:51:32 -05:00
public string MediaPath { get; set; }
public bool IsRemote { get; set; }
public bool IsInputVideo { get; set; }
public VideoType VideoType { get; set; }
public IsoType? IsoType { get; set; }
public List<string> PlayableStreamFileNames { get; set; }
2013-12-21 13:37:34 -05:00
public bool HasMediaStreams { get; set; }
2014-01-02 23:58:22 -05:00
public bool SendInputOverStandardInput { get; set; }
public CancellationTokenSource StandardInputCancellationTokenSource { get; set; }
2014-01-05 01:50:48 -05:00
public string LiveTvStreamId { get; set; }
2014-01-12 16:32:13 -05:00
public int SegmentLength = 10;
2014-03-03 23:58:19 -05:00
public int HlsListSize;
2014-01-12 16:32:13 -05:00
public long? RunTimeTicks;
2014-01-15 00:05:19 -05:00
2014-01-24 13:09:50 -05:00
public string AudioSync = "1";
public string VideoSync = "vfr";
2014-01-20 10:04:50 -05:00
2014-03-21 00:52:28 -04:00
public string InputAudioSync { get; set; }
public string InputVideoSync { get; set; }
2014-01-20 10:04:50 -05:00
public bool DeInterlace { get; set; }
2014-01-21 20:37:01 -05:00
public bool ReadInputAtNativeFramerate { get; set; }
public string InputFormat { get; set; }
public string InputVideoCodec { get; set; }
public string InputAudioCodec { get; set; }
public string GetMimeType(string outputPath)
{
return MimeTypes.GetMimeType(outputPath);
}
2013-02-26 23:19:05 -05:00
}
}