Пример #1
0
        public object Get(GetHlsPlaylist request)
        {
            var file = request.PlaylistId + Path.GetExtension(Request.PathInfo);

            file = Path.Combine(_appPaths.TranscodingTempPath, file);

            return(ResultFactory.GetStaticFileResult(Request, file, FileShare.ReadWrite));
        }
Пример #2
0
        public object Get(GetHlsPlaylist request)
        {
            var file = request.PlaylistId + Path.GetExtension(Request.PathInfo);

            file = Path.Combine(_appPaths.TranscodingTempPath, file);

            return(GetFileResult(file, file));
        }
Пример #3
0
        public object Get(GetHlsPlaylist request)
        {
            var file = request.PlaylistId + Path.GetExtension(Request.PathInfo);

            file = Path.Combine(_appPaths.TranscodingTempPath, file);

            return ResultFactory.GetStaticFileResult(Request, file, FileShare.ReadWrite);
        }
Пример #4
0
        public object Get(GetHlsPlaylist request)
        {
            OnBeginRequest(request.PlaylistId);

            var file = request.PlaylistId + Path.GetExtension(Request.PathInfo);

            file = Path.Combine(_appPaths.EncodedMediaCachePath, file);

            return ResultFactory.GetStaticFileResult(Request, file, FileShare.ReadWrite);
        }
Пример #5
0
        public object Get(GetHlsPlaylist request)
        {
            OnBeginRequest(request.PlaylistId);

            var file = request.PlaylistId + Path.GetExtension(RequestContext.PathInfo);

            file = Path.Combine(_appPaths.EncodedMediaCachePath, file);

            return(ResultFactory.GetStaticFileResult(RequestContext, file, FileShare.ReadWrite));
        }
Пример #6
0
        public object Get(GetHlsPlaylist request)
        {
            ExtendHlsTimer(request.Id, request.PlaylistId);

            var file = request.PlaylistId + Path.GetExtension(RequestContext.PathInfo);

            file = Path.Combine(ApplicationPaths.EncodedMediaCachePath, file);

            return(ResultFactory.GetStaticFileResult(RequestContext, file));
        }
Пример #7
0
        public object Get(GetHlsPlaylist request)
        {
            var normalizedPlaylistId = request.PlaylistId.Replace("-low", string.Empty);

            foreach (var playlist in Directory.EnumerateFiles(_appPaths.TranscodingTempPath, "*.m3u8")
                     .Where(i => i.IndexOf(normalizedPlaylistId, StringComparison.OrdinalIgnoreCase) != -1)
                     .ToList())
            {
                if (!string.IsNullOrEmpty(playlist))
                {
                    ExtendPlaylistTimer(playlist);
                }
            }

            var file = request.PlaylistId + Path.GetExtension(Request.PathInfo);

            file = Path.Combine(_appPaths.TranscodingTempPath, file);

            return(ResultFactory.GetStaticFileResult(Request, file, FileShare.ReadWrite));
        }
Пример #8
0
        public object Get(GetHlsPlaylist request)
        {
            var normalizedPlaylistId = request.PlaylistId.Replace("-low", string.Empty);

            foreach (var playlist in Directory.EnumerateFiles(_appPaths.TranscodingTempPath, "*.m3u8")
                .Where(i => i.IndexOf(normalizedPlaylistId, StringComparison.OrdinalIgnoreCase) != -1)
                .ToList())
            {
                if (!string.IsNullOrEmpty(playlist))
                {
                    ExtendPlaylistTimer(playlist);
                }
            }

            var file = request.PlaylistId + Path.GetExtension(Request.PathInfo);

            file = Path.Combine(_appPaths.TranscodingTempPath, file);

            return ResultFactory.GetStaticFileResult(Request, file, FileShare.ReadWrite);
        }
Пример #9
0
        public object Get(GetHlsPlaylist request)
        {
            ExtendHlsTimer(request.Id, request.PlaylistId);

            var file = request.PlaylistId + Path.GetExtension(RequestContext.PathInfo);

            file = Path.Combine(ApplicationPaths.EncodedMediaCachePath, file);

            return ResultFactory.GetStaticFileResult(RequestContext, file);
        }