mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-23 17:24:46 +03:00
support audio sync transcoding
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using MediaBrowser.Controller;
|
||||
using MediaBrowser.Model.Dlna;
|
||||
using ServiceStack;
|
||||
using System;
|
||||
using System.IO;
|
||||
@@ -65,7 +66,7 @@ namespace MediaBrowser.Api.Playback.Hls
|
||||
{
|
||||
var file = request.PlaylistId + Path.GetExtension(Request.PathInfo);
|
||||
|
||||
file = Path.Combine(_appPaths.TranscodingTempPath, file);
|
||||
file = Path.Combine(_appPaths.TranscodingTempPath, EncodingContext.Streaming.ToString().ToLower(), file);
|
||||
|
||||
return ResultFactory.GetStaticFileResult(Request, file, FileShare.ReadWrite);
|
||||
}
|
||||
@@ -84,7 +85,7 @@ namespace MediaBrowser.Api.Playback.Hls
|
||||
{
|
||||
var file = request.SegmentId + Path.GetExtension(Request.PathInfo);
|
||||
|
||||
file = Path.Combine(_appPaths.TranscodingTempPath, file);
|
||||
file = Path.Combine(_appPaths.TranscodingTempPath, EncodingContext.Streaming.ToString().ToLower(), file);
|
||||
|
||||
return ResultFactory.GetStaticFileResult(Request, file, FileShare.ReadWrite);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user