mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Chrome and Firefox support MPEG-1 Layer II
This commit is contained in:
parent
fa08d36220
commit
240d3972ec
1 changed files with 11 additions and 2 deletions
|
@ -370,8 +370,15 @@ import browser from './browser';
|
|||
|| videoTestElement.canPlayType('video/mp4; codecs="avc1.640029, mp4a.6B"').replace(/no/, '')
|
||||
|| videoTestElement.canPlayType('video/mp4; codecs="avc1.640029, mp3"').replace(/no/, '');
|
||||
|
||||
// Not sure how to test for this
|
||||
const supportsMp2VideoAudio = browser.edgeUwp || browser.tizen || browser.web0s;
|
||||
let supportsMp2VideoAudio = options.supportsMp2VideoAudio;
|
||||
if (supportsMp2VideoAudio == null) {
|
||||
supportsMp2VideoAudio = browser.edgeUwp || browser.tizen || browser.web0s;
|
||||
|
||||
// If the browser supports MP3, it presumably supports MP2 as well
|
||||
if (supportsMp3VideoAudio && (browser.chrome || browser.edgeChromium || (browser.firefox && browser.versionMajor >= 83))) {
|
||||
supportsMp2VideoAudio = true;
|
||||
}
|
||||
}
|
||||
|
||||
/* eslint-disable compat/compat */
|
||||
let maxVideoWidth = browser.xboxOne ?
|
||||
|
@ -428,6 +435,8 @@ import browser from './browser';
|
|||
|
||||
if (supportsMp2VideoAudio) {
|
||||
videoAudioCodecs.push('mp2');
|
||||
hlsInTsVideoAudioCodecs.push('mp2');
|
||||
hlsInFmp4VideoAudioCodecs.push('mp2');
|
||||
}
|
||||
|
||||
let supportsDts = options.supportsDts;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue