mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-05-24 02:02:29 -04:00
Fix direct play
The SupportsDirectStream is a little bit misleading as it actually means "Supports Direct Play" Signed-off-by: gnattu <gnattuoc@me.com>
This commit is contained in:
parent
a16d3d4887
commit
f840d9b60f
@ -174,11 +174,10 @@ public class UniversalAudioController : BaseJellyfinApiController
|
||||
return Redirect(mediaSource.Path);
|
||||
}
|
||||
|
||||
// This one is currently very misleading as the SupportsDirectStream is always false
|
||||
// This one is currently very misleading as the SupportsDirectStream actually means "can direct play"
|
||||
// The definition of DirectStream also seems changed during development
|
||||
// It used to mean HTTP direct streaming, but now HLS is used even for DirectStream
|
||||
var isStatic = mediaSource.SupportsDirectStream;
|
||||
if (mediaSource.TranscodingSubProtocol == MediaStreamProtocol.hls)
|
||||
if (!isStatic && mediaSource.TranscodingSubProtocol == MediaStreamProtocol.hls)
|
||||
{
|
||||
// hls segment container can only be mpegts or fmp4 per ffmpeg documentation
|
||||
// ffmpeg option -> file extension
|
||||
|
Loading…
x
Reference in New Issue
Block a user