Skip to content

feat(site): replace home page tech preview player with real player#580

Merged
decepulis merged 3 commits intomainfrom
feat/home-page-real-player
Mar 4, 2026
Merged

feat(site): replace home page tech preview player with real player#580
decepulis merged 3 commits intomainfrom
feat/home-page-real-player

Conversation

@decepulis
Copy link
Copy Markdown
Collaborator

@decepulis decepulis commented Feb 19, 2026

Summary

  • Replace @videojs/react-preview and @videojs/html-preview with the real @videojs/react player on the home page
  • HeroVideo now uses createPlayer, VideoSkin/MinimalVideoSkin, Video, and Poster
  • BaseDemo code snippets show the real API for both React and HTML (CDN)
  • Remove preview package dependencies from the site

Test plan

  • pnpm dev — visit home page, confirm hero player renders with frosted skin
  • Toggle to minimal skin — player re-renders correctly
  • Toggle to HTML — code snippet shows CDN imports + markup
  • Toggle back to React — code snippet shows real @videojs/react API
  • Player plays video (mp4)

Closes #578

🤖 Generated with Claude Code

Replace `@videojs/react-preview` and `@videojs/html-preview` with the
real `@videojs/react` player on the home page. Update HeroVideo to use
`createPlayer`, `VideoSkin`/`MinimalVideoSkin`, and `Poster`. Update
BaseDemo code snippets to show the real API for both React and HTML
(CDN). Remove preview package dependencies from the site.

Closes #578

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Feb 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
vjs-10-demo-react Ignored Ignored Feb 19, 2026 8:29pm

Request Review

@netlify
Copy link
Copy Markdown

netlify bot commented Feb 19, 2026

Deploy Preview for vjs10-site ready!

Name Link
🔨 Latest commit 3b85cff
🔍 Latest deploy log https://app.netlify.com/projects/vjs10-site/deploys/69a84d03b99ae300089cbd30
😎 Deploy Preview https://deploy-preview-580--vjs10-site.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 19, 2026

📦 Bundle Size Report

Package Size Diff %
@videojs/core 10.41 kB 0 B ░░░░░░░░ 0%
@videojs/element 1.60 kB 0 B ░░░░░░░░ 0%
@videojs/html 26.98 kB 0 B ░░░░░░░░ 0%
@videojs/icons 7.49 kB 0 B ░░░░░░░░ 0%
@videojs/react 15.08 kB 0 B ░░░░░░░░ 0%
@videojs/store 1.96 kB 0 B ░░░░░░░░ 0%
@videojs/utils 2.81 kB 0 B ░░░░░░░░ 0%

Total: 66.33 kB · 0 B · 0%


Entry Breakdown

Subpath sizes are the additional bytes on top of the root entry point, measured by bundling root + subpath together and subtracting the root-only size.

@videojs/core
Entry Base PR Diff %
. 4.39 kB 4.39 kB 0 B 0%
./dom 6.03 kB 6.03 kB 0 B 0%
total 10.41 kB 10.41 kB 0 B 0%
@videojs/element
Entry Base PR Diff %
. 817 B 817 B 0 B 0%
./context 823 B 823 B 0 B 0%
total 1.60 kB 1.60 kB 0 B 0%
@videojs/html
Entry Base PR Diff %
. 15.45 kB 15.45 kB 0 B 0%
./video 9.44 kB 9.44 kB 0 B 0%
./audio 1.06 kB 1.06 kB 0 B 0%
./background 1.02 kB 1.02 kB 0 B 0%
total 26.98 kB 26.98 kB 0 B 0%
@videojs/icons
Entry Base PR Diff %
./react 2.27 kB 2.27 kB 0 B 0%
./html 1.52 kB 1.52 kB 0 B 0%
./render 1.59 kB 1.59 kB 0 B 0%
./element 2.11 kB 2.11 kB 0 B 0%
total 7.49 kB 7.49 kB 0 B 0%
@videojs/store
Entry Base PR Diff %
. 1.31 kB 1.31 kB 0 B 0%
./html 472 B 472 B 0 B 0%
./react 199 B 199 B 0 B 0%
total 1.96 kB 1.96 kB 0 B 0%
@videojs/utils
Entry Base PR Diff %
./array 104 B 104 B 0 B 0%
./dom 928 B 928 B 0 B 0%
./events 227 B 227 B 0 B 0%
./function 261 B 261 B 0 B 0%
./object 119 B 119 B 0 B 0%
./predicate 265 B 265 B 0 B 0%
./string 148 B 148 B 0 B 0%
./style 185 B 185 B 0 B 0%
./time 478 B 478 B 0 B 0%
./number 158 B 158 B 0 B 0%
total 2.81 kB 2.81 kB 0 B 0%

ℹ️ How to interpret

Sizes are minified + brotli, measured with esbuild.
Package totals are computed as root size + marginal subpath costs.
Subpath marginal cost = (root + subpath bundled together) − root alone.

Icon Meaning
No change
🔺 Increased ≤ 10%
🔴 Increased > 10%
🔽 Decreased
🆕 New (no baseline)

Run pnpm size locally to check current sizes.

@decepulis decepulis changed the title feat(site): replace home page preview player with real @videojs/react feat(site): replace home page tech preview player with real player Feb 19, 2026
const Player = createPlayer({ features: [...features.video] });

export default function HeroVideo({ className, poster }: { className?: string; poster: string }) {
const $skin = useStore(skin);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm getting jQuery vibes with the $ 😄

decepulis and others added 2 commits March 4, 2026 09:13
The PR used `features.video` which doesn't exist in the current API.
The correct export is `videoFeatures` from `@videojs/react/video`.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@decepulis decepulis marked this pull request as ready for review March 4, 2026 15:34
@decepulis decepulis merged commit f623e67 into main Mar 4, 2026
19 checks passed
@decepulis decepulis deleted the feat/home-page-real-player branch March 4, 2026 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace home page hero tech preview player with beta player

2 participants