diff --git a/lib/player.js b/lib/player.js index 6558945dbc..aa141b8f98 100644 --- a/lib/player.js +++ b/lib/player.js @@ -4282,6 +4282,19 @@ shaka.Player = class extends shaka.util.FakeEventTarget { firstVariantWithLabel.language, '', 0, label); this.chooseVariantAndSwitch_(); + } else if (this.video_ && this.video_.audioTracks) { + const audioTracks = Array.from(this.video_.audioTracks); + + let trackMatch = null; + + for (const audioTrack of audioTracks) { + if (audioTrack.label == label) { + trackMatch = audioTrack; + } + } + if (trackMatch) { + this.switchHtml5Track_(trackMatch); + } } }