From f2a826bb5d707c2a9c9bd3a2492808cb429ef240 Mon Sep 17 00:00:00 2001 From: "Andriy Kushnir (Orhideous)" Date: Fri, 17 Jun 2022 13:38:43 +0300 Subject: [PATCH] Left old MIME type for backward compatibility --- 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 adbd291663..440bb4c3d0 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/vnd.apple.mpegurl') { + if (contentType === 'application/vnd.apple.mpegurl' || contentType === 'application/x-mpegurl') { resolve(); } else { reject();