Backport pull request #4240 from jellyfin/release-10.8.z
Fix detection of SecondaryAudio support Original-merge: 96234eafb7fa3c4fce70c1777bba79d895e3b8f7 Merged-by: Bill Thornton <thornbill@users.noreply.github.com> Backported-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
parent
813845d54b
commit
7f30d82d17
1 changed files with 7 additions and 1 deletions
|
@ -742,7 +742,13 @@ import browser from './browser';
|
|||
|
||||
profile.CodecProfiles = [];
|
||||
|
||||
const supportsSecondaryAudio = browser.tizen || videoTestElement.audioTracks;
|
||||
// We rely on HTMLMediaElement.audioTracks
|
||||
// It works in Chrome 79+ with "Experimental Web Platform features" enabled
|
||||
// It doesn't work in Firefox 108 even with "media.track.enabled" enabled (it only sees the first audio track)
|
||||
// It seems to work on Tizen 5.5+ (Chrome 69+). See https://developer.tizen.org/forums/web-application-development/video-tag-not-work-audiotracks
|
||||
const supportsSecondaryAudio = !!videoTestElement.audioTracks
|
||||
&& !browser.firefox
|
||||
&& (browser.tizenVersion >= 5.5 || !browser.tizen);
|
||||
|
||||
const aacCodecProfileConditions = [];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue