From 8d46c7bddce28f7f64527e6e6aa94eb95004ebd9 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Fri, 17 Jun 2022 10:05:22 -0400 Subject: [PATCH] Merge pull request #3716 from Orhideous/fix/mimetype Recognize MIME for transcoded audio in streams (cherry picked from commit 721bc54dbd75fbc21a10f53c447d4be3b53821a6) Signed-off-by: Bill Thornton --- src/plugins/htmlAudioPlayer/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/htmlAudioPlayer/plugin.js b/src/plugins/htmlAudioPlayer/plugin.js index baa396dbb..440bb4c3d 100644 --- a/src/plugins/htmlAudioPlayer/plugin.js +++ b/src/plugins/htmlAudioPlayer/plugin.js @@ -74,7 +74,7 @@ function enableHlsPlayer(url, item, mediaSource, mediaType) { type: 'HEAD' }).then(function (response) { const contentType = (response.headers.get('Content-Type') || '').toLowerCase(); - if (contentType === 'application/x-mpegurl') { + if (contentType === 'application/vnd.apple.mpegurl' || contentType === 'application/x-mpegurl') { resolve(); } else { reject();