aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Playback/StreamState.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-03-25 01:25:03 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-03-25 01:25:03 -0400
commitf245fffad10bde5bf559e67ab5342df8dd2d0aa9 (patch)
treeea5e86df8e96db6b6a42c69dd240ea9b8c6a1638 /MediaBrowser.Api/Playback/StreamState.cs
parent1644d45dac4b465fa9615554f1ef02406e0d9d39 (diff)
implement dlna headers
Diffstat (limited to 'MediaBrowser.Api/Playback/StreamState.cs')
-rw-r--r--MediaBrowser.Api/Playback/StreamState.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/MediaBrowser.Api/Playback/StreamState.cs b/MediaBrowser.Api/Playback/StreamState.cs
index ecc5c93ef..504d7d921 100644
--- a/MediaBrowser.Api/Playback/StreamState.cs
+++ b/MediaBrowser.Api/Playback/StreamState.cs
@@ -1,4 +1,5 @@
using MediaBrowser.Common.Net;
+using MediaBrowser.Controller.Dlna;
using MediaBrowser.Model.Entities;
using MediaBrowser.Model.IO;
using System.Collections.Generic;
@@ -77,8 +78,21 @@ namespace MediaBrowser.Api.Playback
public string InputAudioCodec { get; set; }
+ public string MimeType { get; set; }
+ public string OrgPn { get; set; }
+
+ // DLNA Settings
+ public bool EstimateContentLength { get; set; }
+ public bool EnableMpegtsM2TsMode { get; set; }
+ public TranscodeSeekInfo TranscodeSeekInfo { get; set; }
+
public string GetMimeType(string outputPath)
{
+ if (!string.IsNullOrEmpty(MimeType))
+ {
+ return MimeType;
+ }
+
return MimeTypes.GetMimeType(outputPath);
}
}