aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/MediaEncoding/EncodingJobOptions.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2017-03-19 14:59:46 -0400
committerGitHub <noreply@github.com>2017-03-19 14:59:46 -0400
commit22f8b2122d93c158b11fa56dce35e7c584d36789 (patch)
tree70cd8a375ebd2465f59968a1505508ab045c860d /MediaBrowser.Controller/MediaEncoding/EncodingJobOptions.cs
parent796096976f4af5b96b76812457faa2be5e657e18 (diff)
parent5b3b18b51dec8421d3ffc8c00874e22b026586b6 (diff)
Merge pull request #2534 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Controller/MediaEncoding/EncodingJobOptions.cs')
-rw-r--r--MediaBrowser.Controller/MediaEncoding/EncodingJobOptions.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/MediaEncoding/EncodingJobOptions.cs b/MediaBrowser.Controller/MediaEncoding/EncodingJobOptions.cs
index 6baf87a04..73be78dc9 100644
--- a/MediaBrowser.Controller/MediaEncoding/EncodingJobOptions.cs
+++ b/MediaBrowser.Controller/MediaEncoding/EncodingJobOptions.cs
@@ -14,7 +14,6 @@ namespace MediaBrowser.Controller.MediaEncoding
public string AudioCodec { get; set; }
public DeviceProfile DeviceProfile { get; set; }
- public EncodingContext Context { get; set; }
public bool ReadInputAtNativeFramerate { get; set; }
@@ -198,6 +197,8 @@ namespace MediaBrowser.Controller.MediaEncoding
[ApiMember(Name = "VideoCodec", Description = "Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h264, mpeg4, theora, vpx, wmv.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
public string VideoCodec { get; set; }
+ public string SubtitleCodec { get; set; }
+
/// <summary>
/// Gets or sets the index of the audio stream.
/// </summary>
@@ -212,9 +213,12 @@ namespace MediaBrowser.Controller.MediaEncoding
[ApiMember(Name = "VideoStreamIndex", Description = "Optional. The index of the video stream to use. If omitted the first video stream will be used.", IsRequired = false, DataType = "int", ParameterType = "query", Verb = "GET")]
public int? VideoStreamIndex { get; set; }
+ public EncodingContext Context { get; set; }
+
public BaseEncodingJobOptions()
{
EnableAutoStreamCopy = true;
+ Context = EncodingContext.Streaming;
}
}
}