diff options
| author | LukePulverenti <luke.pulverenti@gmail.com> | 2013-03-08 21:34:54 -0500 |
|---|---|---|
| committer | LukePulverenti <luke.pulverenti@gmail.com> | 2013-03-08 21:34:54 -0500 |
| commit | ea1b57a4d84940af1b928907953cda040ea87093 (patch) | |
| tree | 8394806210f1d7651cf433a7c8ce5f4473399011 /MediaBrowser.Api/Playback/Progressive/VideoService.cs | |
| parent | 1c1f09c46fa29bf65c24ab7d6be9fc5dc4de5e09 (diff) | |
fixed installer root suffix
Diffstat (limited to 'MediaBrowser.Api/Playback/Progressive/VideoService.cs')
| -rw-r--r-- | MediaBrowser.Api/Playback/Progressive/VideoService.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/MediaBrowser.Api/Playback/Progressive/VideoService.cs b/MediaBrowser.Api/Playback/Progressive/VideoService.cs index 7849e60ab4..d8ffa61fdc 100644 --- a/MediaBrowser.Api/Playback/Progressive/VideoService.cs +++ b/MediaBrowser.Api/Playback/Progressive/VideoService.cs @@ -21,7 +21,8 @@ namespace MediaBrowser.Api.Playback.Progressive [Route("/Videos/{Id}/stream.mpeg", "GET")] [Route("/Videos/{Id}/stream.avi", "GET")] [Route("/Videos/{Id}/stream", "GET")] - public class GetVideoStream : StreamRequest + [ServiceStack.ServiceHost.Api(Description = "Gets a video stream")] + public class GetVideoStream : VideoStreamRequest { } @@ -59,7 +60,7 @@ namespace MediaBrowser.Api.Playback.Progressive var probeSize = Kernel.Instance.FFMpegManager.GetProbeSizeArgument(video.VideoType, video.IsoType); // Get the output codec name - var videoCodec = GetVideoCodec(state.Request); + var videoCodec = GetVideoCodec(state.VideoRequest); var graphicalSubtitleParam = string.Empty; @@ -103,7 +104,7 @@ namespace MediaBrowser.Api.Playback.Progressive { var args = "-vcodec " + videoCodec; - var request = state.Request; + var request = state.VideoRequest; // If we're encoding video, add additional params if (!videoCodec.Equals("copy", StringComparison.OrdinalIgnoreCase)) @@ -186,7 +187,7 @@ namespace MediaBrowser.Api.Playback.Progressive /// <param name="request">The request.</param> /// <param name="videoCodec">The video codec.</param> /// <returns>System.String.</returns> - private string GetVideoQualityParam(StreamRequest request, string videoCodec) + private string GetVideoQualityParam(VideoStreamRequest request, string videoCodec) { var args = string.Empty; |
