diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-12-22 13:58:51 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-12-22 13:58:51 -0500 |
| commit | 4c2623d540465088ce8f316eae21541ae807cd84 (patch) | |
| tree | 6c88291c7610a289896ec27465a608c2a20c232f /MediaBrowser.Api/BaseApiService.cs | |
| parent | cac101cc21b5420160a53a64d0950344ee3cd637 (diff) | |
support streaming of tv recordings
Diffstat (limited to 'MediaBrowser.Api/BaseApiService.cs')
| -rw-r--r-- | MediaBrowser.Api/BaseApiService.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/MediaBrowser.Api/BaseApiService.cs b/MediaBrowser.Api/BaseApiService.cs index ddce1ddcd1..62fcbd280e 100644 --- a/MediaBrowser.Api/BaseApiService.cs +++ b/MediaBrowser.Api/BaseApiService.cs @@ -1,4 +1,5 @@ -using MediaBrowser.Controller.Entities; +using System.IO; +using MediaBrowser.Controller.Entities; using MediaBrowser.Controller.Entities.Audio; using MediaBrowser.Controller.Library; using MediaBrowser.Controller.Net; @@ -51,6 +52,11 @@ namespace MediaBrowser.Api return ResultFactory.GetOptimizedResult(Request, result); } + protected object ToStreamResult(Stream stream, string contentType) + { + return ResultFactory.GetResult(stream, contentType); + } + /// <summary> /// To the optimized result using cache. /// </summary> |
