コード例 #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);
        }