feat(packages): add audio tracks menu#1714
Merged
Merged
Conversation
❌ Deploy Preview for vjs10-site failed. Why did it fail? →
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📦 Bundle Size Report🎨 @videojs/html
Presets (7)
Media (10)
Players (5)
Skins (30)
UI Components (39)
Sizes are marginal over the root entry point. ⚛️ @videojs/react
Presets (7)
Media (9)
Skins (27)
UI Components (33)
Sizes are marginal over the root entry point. 🧩 @videojs/core — no changesEntries (14)
🏷️ @videojs/element — no changesEntries (2)
📦 @videojs/store — no changesEntries (3)
🔧 @videojs/utils — no changesEntries (10)
📦 @videojs/spf — no changesEntries (4)
ℹ️ How to interpretJS sizes are initial static graph totals (minified + brotli). Lazy dynamic chunks are shown separately when present.
Run |
luwes
approved these changes
Jun 23, 2026
Collaborator
Author
Yeah, totally agree. I just didn't want to make this PR huge so I did that in another PR (which it looks like you've already seen!) 👍🏼 |
835b16c to
7cb93df
Compare
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Closes #1421
Screenshots
Default
Minimal
Note
Medium Risk
Touches playback media track APIs and video feature presets; selection mutates native
audioTracks.enabled, but pattern matches existing quality/caption menus with solid test coverage.Overview
Adds multi-audio track selection end-to-end: player store state, UI primitives, and settings-menu integration across HTML and React video skins.
Core / DOM: New
MediaAudioTrackState,isMediaAudioTrackCapable, and anaudioTrackplayer feature that mirrorsmedia.audioTracks(includingloadstart/addtrack/change) and applies exclusive selection viaselectAudioTrack.videoFeaturesandselectAudioTrackexport the capability;AudioTrackRadioGroupCoredrives track list, labels, availability (only when >1 track), and selection.HTML / React:
media-audio-track-radio-groupcustom element,useAudioTrackOptions, and menu wiring (audio-tracksetting type, hint labels). Default and minimal skins gain an Audio submenu (speech icon) between Quality and Speed. Docs addfeature-audio-trackreference.No standalone audio-only skin or dedicated toolbar button in this PR—settings submenu only.
Reviewed by Cursor Bugbot for commit 7cb93df. Bugbot is set up for automated code reviews on this repo. Configure here.