aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Playback/StreamState.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Api/Playback/StreamState.cs')
-rw-r--r--MediaBrowser.Api/Playback/StreamState.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/MediaBrowser.Api/Playback/StreamState.cs b/MediaBrowser.Api/Playback/StreamState.cs
index dd5065e530..de803037df 100644
--- a/MediaBrowser.Api/Playback/StreamState.cs
+++ b/MediaBrowser.Api/Playback/StreamState.cs
@@ -64,7 +64,11 @@ namespace MediaBrowser.Api.Playback
public string LiveTvStreamId { get; set; }
public int SegmentLength = 10;
- public int HlsListSize;
+
+ public int HlsListSize
+ {
+ get { return ReadInputAtNativeFramerate ? 100 : 1440; }
+ }
public long? RunTimeTicks;
@@ -90,7 +94,11 @@ namespace MediaBrowser.Api.Playback
public string InputVideoSync { get; set; }
public bool DeInterlace { get; set; }
- public bool ReadInputAtNativeFramerate { get; set; }
+
+ public bool ReadInputAtNativeFramerate
+ {
+ get { return InputProtocol == MediaProtocol.Rtmp || string.Equals(InputContainer, "wtv", StringComparison.OrdinalIgnoreCase); }
+ }
public TransportStreamTimestamp InputTimestamp { get; set; }