Repository navigation
Conversation
<mux-video> loads its storyboard as a <track> from image.mux.com, which browsers only load from a CORS-enabled media element. Generated Mux video snippets had no crossorigin, so timeline hover previews never appeared. Add crossorigin="anonymous" (crossOrigin in React) to every generated Mux video element, through a renderer catalog flag.
This was referenced Oct 12, 2026
@videojs/cdn
@videojs/cli
@videojs/core
@videojs/element
@videojs/html
@videojs/media
@videojs/react
@videojs/spf
@videojs/store
@videojs/utils
@videojs/cloudflare-video
@videojs/dash-video
@videojs/hlsjs-video
@videojs/mux-audio
@videojs/mux-video
@videojs/native-hls-video
@videojs/playerjs-video
@videojs/shaka-video
@videojs/spotify-audio
@videojs/tiktok-video
@videojs/twitch-video
@videojs/vimeo-video
@videojs/wistia-video
@videojs/youtube-video
@videojs/google-cast
@videojs/mux-data
commit: |
Contributor
📦 Bundle Size Report🎨 @videojs/html — no changesPresets (7)
Media (19)
Players (5)
Skins (53)
UI Components (62)
⚛️ @videojs/react — no changesPresets (7)
Media (23)
Extensions (2)
Players (5)
Skins (34)
UI Components (39)
🧩 @videojs/core — no changesEntries (76)
🏷️ @videojs/element — no changesEntries (2)
📦 @videojs/store — no changesEntries (3)
🔧 @videojs/utils — no changesEntries (13)
📦 @videojs/cdn — no changes📦 @videojs/cloudflare-video — no changes📦 @videojs/dash-video — no changes📦 @videojs/google-cast — no changes📦 @videojs/hlsjs-video — no changes📦 @videojs/media — no changesEntries (3)
📦 @videojs/mux — no changes📦 @videojs/mux-audio — no changesEntries (2)
📦 @videojs/mux-data — no changes📦 @videojs/mux-video — no changesEntries (2)
📦 @videojs/native-hls-video — no changes📦 @videojs/playerjs-video — no changes📦 @videojs/shaka-video — no changes📦 @videojs/spf — no changesEntries (7)
📦 @videojs/spotify-audio — no changes📦 @videojs/tiktok-video — no changes📦 @videojs/twitch-video — no changes📦 @videojs/other — no changesEntries (3)
📦 @videojs/vimeo-video — no changes📦 @videojs/wistia-video — no changesEntries (2)
📦 @videojs/youtube-video — no changesℹ️ How to interpretEach entry is independently bundled, minified, and brotli-compressed. Initial size includes its static import graph; lazy dynamic chunks are reported separately. Entries are not additive because their dependency graphs overlap. Preset rows represent realistic combined bundles. Changes of 300 B or less across initial, lazy, and total size are collapsed, not discarded. Run |
✅ Deploy Preview for vjs10-site ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for vjs-registry ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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.
Fixes #9413
Summary
<mux-video>andMuxVideoadd their storyboard as a<track>fromimage.mux.com, and browsers only load a cross-origin track on a CORS-enabled media element. Generated Mux video snippets had nocrossorigin, so timeline hover previews never loaded. Firefox logs a security error for it. Every generated Mux video element now setscrossorigin="anonymous"(crossOrigin="anonymous"in React).Changes
agents initplans and the installation guides addcrossoriginto Mux video media in every output: React and HTML, packaged, CDN, and Shadcn source, plus Vue, Svelte, and Astro usage.mux-audioandmux-background-video, which add no storyboard track. AcrossOriginflag in the renderer catalog marks which media need it, next toplaysInline.crossOriginand explains why previews need it, matching the Mux video reference page.Why not default CORS in the adapter
The Mux video reference page documents
crossOriginas the user's responsibility, and the media elements don't set it by default. Changing that default would change runtime behavior for every user, so this PR only fixes the generated snippets.Testing
pnpm -F @videojs/installation test, with new cases for each generated output and for media that must not get the attribute.agents init --framework react --template next --media mux-videorepro, plus an HTML CDN variant, against the built package. Both now emitcrossOrigin/crossorigin.Stacked on #9470.
🤖 Generated with Claude Code
Moved from videojs/v10#3104.