fixed audio in hls
This commit is contained in:
parent
a96ec4f169
commit
de755c4b93
|
@ -650,10 +650,8 @@ namespace MediaBrowser.Api.Playback
|
|||
state.VideoStream = GetMediaStream(media.MediaStreams, videoRequest.VideoStreamIndex, MediaStreamType.Video, true);
|
||||
state.SubtitleStream = GetMediaStream(media.MediaStreams, videoRequest.SubtitleStreamIndex, MediaStreamType.Subtitle, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
state.AudioStream = GetMediaStream(media.MediaStreams, null, MediaStreamType.Audio, true);
|
||||
}
|
||||
|
||||
return state;
|
||||
}
|
||||
|
|
|
@ -35,7 +35,6 @@ namespace MediaBrowser.Api.Playback.Hls
|
|||
var file = SegmentFilePrefix + request.SegmentId + Path.GetExtension(Request.PathInfo);
|
||||
|
||||
file = Path.Combine(ApplicationPaths.EncodedMediaCachePath, file);
|
||||
Logger.Info(file);
|
||||
|
||||
return ToStaticFileResult(file);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user