1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #3716 from Orhideous/fix/mimetype

Recognize MIME for transcoded audio in streams

(cherry picked from commit 721bc54dbd)
Signed-off-by: Bill Thornton <billt2006@gmail.com>
This commit is contained in:
Bill Thornton 2022-06-17 10:05:22 -04:00 committed by Bill Thornton
parent 372291e937
commit 8d46c7bddc

View file

@ -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();