mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
relax the mp3 compatability check for mp3 in hls-ts
This commit is contained in:
parent
adf6530650
commit
13b5c071b8
1 changed files with 4 additions and 5 deletions
|
@ -123,8 +123,8 @@ function supportsAc3InHls(videoTestElement) {
|
|||
|
||||
function supportsMp3InHls(videoTestElement) {
|
||||
if (videoTestElement.canPlayType) {
|
||||
return videoTestElement.canPlayType('application/x-mpegurl; codecs="avc1.42E01E, mp4a.40.34"').replace(/no/, '')
|
||||
|| videoTestElement.canPlayType('application/vnd.apple.mpegURL; codecs="avc1.42E01E, mp4a.40.34"').replace(/no/, '');
|
||||
return videoTestElement.canPlayType('application/x-mpegurl; codecs="avc1.64001E, mp4a.40.34"').replace(/no/, '')
|
||||
|| videoTestElement.canPlayType('application/vnd.apple.mpegURL; codecs="avc1.64001E, mp4a.40.34"').replace(/no/, '');
|
||||
}
|
||||
|
||||
return false;
|
||||
|
@ -486,9 +486,8 @@ export default function (options) {
|
|||
videoAudioCodecs.push('mp3');
|
||||
}
|
||||
|
||||
// Safari is the only browser that supports mp3 with HLS, but only in mpegts container.
|
||||
// The detect function will return false on Safari, which reflects the fmp4 support, so we have to hard-code it here.
|
||||
if (browser.safari || canPlayMp3VideoAudioInHls || options.supportsMp3InTs) {
|
||||
// Safari supports mp3 with HLS, but only in mpegts container, and the supportsMp3VideoAudio will return false.
|
||||
if (browser.safari || supportsMp3VideoAudio) {
|
||||
hlsInTsVideoAudioCodecs.push('mp3');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue