unify encodng param creation

This commit is contained in:
Luke Pulverenti
2017-03-19 14:59:05 -04:00
parent 59ac045c6b
commit 38e05b11e2
13 changed files with 180 additions and 295 deletions

View File

@@ -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; }
@@ -214,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;
}
}
}