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

Recognize MIME for transcoded audio in streams

Fixes: #3663
See: jellyfin/jellyfin#6941
This commit is contained in:
Andriy Kushnir (Orhideous) 2022-06-16 22:16:12 +03:00
parent 0bd774dd45
commit 8d531976a1
No known key found for this signature in database
GPG key ID: 62E078AB621B0D15

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') {
resolve();
} else {
reject();