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));
        }
        public object Get(GetHlsPlaylist request)
        {
            var file = request.PlaylistId + Path.GetExtension(Request.PathInfo);

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

            return(GetFileResult(file, file));
        }
        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);
        }
        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);
        }
Beispiel #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));
        }
        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));
        }
        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));
        }
        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);
        }
        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);
        }