aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/UniversalAudioController.cs
diff options
context:
space:
mode:
authorgnattu <gnattuoc@me.com>2024-05-05 11:21:10 +0800
committergnattu <gnattuoc@me.com>2024-07-17 13:35:59 +0800
commitf840d9b60f886ce618e88efb5526532b620054bb (patch)
tree4ab212691e35bc3f74c7eb91948db93a7bbd42b8 /Jellyfin.Api/Controllers/UniversalAudioController.cs
parenta16d3d488704be5a2e8b528c446f06588831246d (diff)
Fix direct play
The SupportsDirectStream is a little bit misleading as it actually means "Supports Direct Play" Signed-off-by: gnattu <gnattuoc@me.com>
Diffstat (limited to 'Jellyfin.Api/Controllers/UniversalAudioController.cs')
-rw-r--r--Jellyfin.Api/Controllers/UniversalAudioController.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/Jellyfin.Api/Controllers/UniversalAudioController.cs b/Jellyfin.Api/Controllers/UniversalAudioController.cs
index 1305d1417..3286105e3 100644
--- a/Jellyfin.Api/Controllers/UniversalAudioController.cs
+++ b/Jellyfin.Api/Controllers/UniversalAudioController.cs
@@ -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