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

Merge pull request #4240 from dmitrylyzo/fix-audiotracks

Fix detection of SecondaryAudio support
This commit is contained in:
Bill Thornton 2023-01-05 11:19:08 -05:00 committed by GitHub
commit 96234eafb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -744,7 +744,13 @@ import browser from './browser';
profile.CodecProfiles = []; 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 = []; const aacCodecProfileConditions = [];