diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-06-19 01:25:01 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-06-19 01:25:01 -0400 |
| commit | 73718608715be53d3bb383ea3e4dd9553a6fdaf6 (patch) | |
| tree | f6e8563feb87641f1110cf28ebe820ed4f8b8eb0 | |
| parent | 9fc6bc3385596f0c2b7c6217d434cfc34ae192ae (diff) | |
hls playlist fix
| -rw-r--r-- | MediaBrowser.Api/Playback/Hls/VideoHlsService.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/MediaBrowser.Api/Playback/Hls/VideoHlsService.cs b/MediaBrowser.Api/Playback/Hls/VideoHlsService.cs index 19c7d6e05..df74d3688 100644 --- a/MediaBrowser.Api/Playback/Hls/VideoHlsService.cs +++ b/MediaBrowser.Api/Playback/Hls/VideoHlsService.cs @@ -1,4 +1,5 @@ using System.IO; +using System.Linq; using MediaBrowser.Common.IO; using MediaBrowser.Common.MediaInfo; using MediaBrowser.Controller; @@ -63,6 +64,11 @@ namespace MediaBrowser.Api.Playback.Hls /// <returns>System.Object.</returns> public object Get(GetHlsVideoSegment request) { + foreach (var playlist in Directory.EnumerateFiles(ApplicationPaths.EncodedMediaCachePath, "*.m3u8").ToList()) + { + ApiEntryPoint.Instance.OnTranscodeBeginRequest(playlist, TranscodingJobType.Hls); + } + var file = SegmentFilePrefix + request.SegmentId + Path.GetExtension(RequestContext.PathInfo); file = Path.Combine(ApplicationPaths.EncodedMediaCachePath, file); |
