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
This commit is contained in:
commit
721bc54dbd
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ function enableHlsPlayer(url, item, mediaSource, mediaType) {
|
||||||
type: 'HEAD'
|
type: 'HEAD'
|
||||||
}).then(function (response) {
|
}).then(function (response) {
|
||||||
const contentType = (response.headers.get('Content-Type') || '').toLowerCase();
|
const contentType = (response.headers.get('Content-Type') || '').toLowerCase();
|
||||||
if (contentType === 'application/x-mpegurl') {
|
if (contentType === 'application/vnd.apple.mpegurl' || contentType === 'application/x-mpegurl') {
|
||||||
resolve();
|
resolve();
|
||||||
} else {
|
} else {
|
||||||
reject();
|
reject();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue