docs(docs): add media chrome migration guide#1706
Draft
luwes wants to merge 1 commit into
Draft
Conversation
✅ Deploy Preview for vjs10-site ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📦 Bundle Size Report🎨 @videojs/html — no changesPresets (7)
Media (10)
Players (5)
Skins (30)
UI Components (38)
Sizes are marginal over the root entry point. ⚛️ @videojs/react — no changesPresets (7)
Media (9)
Skins (27)
UI Components (32)
Sizes are marginal over the root entry point. 🧩 @videojs/core — no changesEntries (67)
🏷️ @videojs/element — no changesEntries (2)
📦 @videojs/store — no changesEntries (3)
🔧 @videojs/utils — no changesEntries (10)
📦 @videojs/spf — no changesEntries (4)
ℹ️ How to interpretAll sizes are standalone totals (minified + brotli).
Run |
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.
Refs #1408
Summary
Adds a concise draft migration guide for users moving from Media Chrome to Video.js v10. Lives in
internal/migrations/as a draft pending verification and porting to the docs site.Changes
media-*custom-element conventionmedia-time-range→media-time-slider,media-loading-indicator→media-buffering-indicator, menus → radio groups, etc.)media-controller+slot="media"→video-player+media-container) and the React story (media-chrome/reactwrappers → native@videojs/reactcomponents with therenderprop)media*attributes →data-*) and themes → skins/presetsTesting
Docs-only draft; no tests. Examples are grounded in existing demo sources and confirmed element/component exports.
Follow-ups before publishing
media-seek-buttondirection andmedia-timedisplay attribute namessite/src/content/docs/how-to/migrate-from-media-chrome.mdxwith sidebar entry and MDX components (DocsLink,Aside, framework cases)Note
Low Risk
Documentation-only addition under
internal/migrations/with no runtime or API changes.Overview
Adds a draft migration guide at
internal/migrations/media-chrome.mdfor apps that compose players from Media Chrome elements (not<mux-player>).The doc positions v10 as mostly rename-and-reshape: controller split (
media-controller+ slotted video →video-player+media-container), a table of non-obvious element renames (sliders, time display, menus → radio groups, seek buttons), CSS state selectors (media*attributes →data-*), and themes → skins/presets. It includes HTML before/after, a React example usingcreatePlayerand therenderprop, and known gaps with links to #1160 and #1163.Reviewed by Cursor Bugbot for commit 083952c. Bugbot is set up for automated code reviews on this repo. Configure here.