From 083952ccd66fa3c179b5825fd48f634fcfafb604 Mon Sep 17 00:00:00 2001 From: Wesley Luyten Date: Thu, 18 Jun 2026 14:32:12 -0700 Subject: [PATCH] docs(docs): add media chrome migration guide --- internal/migrations/media-chrome.md | 117 ++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100644 internal/migrations/media-chrome.md diff --git a/internal/migrations/media-chrome.md b/internal/migrations/media-chrome.md new file mode 100644 index 00000000..70735254 --- /dev/null +++ b/internal/migrations/media-chrome.md @@ -0,0 +1,117 @@ +# Migrate from Media Chrome + +Video.js v10's HTML player uses the same `media-*` custom-element convention as Media Chrome, so most of the work is **renaming and reshaping**, not rewriting. This guide maps Media Chrome's API to Video.js v10 for both the HTML and React players. + +> Scoped to apps that compose their own player from Media Chrome elements. If you use ``, see the Mux Player guide instead. + +## Before you begin + +Install Video.js and pick a preset/skin (see the installation guide). The fastest path is to start from a preset, then replace its controls with your migrated markup. + +```bash +npm install @videojs/html # or @videojs/react +``` + +## Map the controller + +Media Chrome wraps a slotted `