feat(packages): add poster placeholder blur-up pattern#1632
Open
ronald-urbina wants to merge 4 commits into
Open
feat(packages): add poster placeholder blur-up pattern#1632ronald-urbina wants to merge 4 commits into
ronald-urbina wants to merge 4 commits into
Conversation
👷 Deploy request for vjs10-site pending review.Visit the deploys page to approve it
|
|
@ronald-urbina is attempting to deploy a commit to the Mux Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 3 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4baad83. Configure here.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Collaborator
|
I checked out the preview and used network simulation as Slow 4G but it looks like it's just waiting and pulling down the full size image? |
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.

Add the poster placeholder blur-up pattern. Displays a low-resolution image behind the poster with a blur effect while the full poster loads matching the API established by Media Chrome (placeholdersrc) and Mux Player (placeholder).
both default and minimal skins render the placeholder via ::before with filter: blur(). The React variant fades in via an opacity transition keyed on data-visible; the HTML variant applies blur directly on media-poster::before.
Accepts a URL or data URI (inline blurhash output).
Closes #1438
Note
Low Risk
Optional presentation-only UI and CSS; no playback, auth, or data-path changes beyond new public props/attributes.
Overview
Adds blur-up poster placeholders so a low-res image can show behind the full poster while it loads, aligned with Media Chrome
placeholdersrcand Mux Playerplaceholder.React exposes an optional
placeholderprop onPoster,BaseVideoSkinProps, and all default/minimal video and live skins (CSS + Tailwind). When set, skins apply--media-poster-placeholderon the container; default/minimal skins draw a blurred::beforelayer that fades in only when the poster<img>hasdata-visible(avoids flashing blur after playback starts).Postercan also set the same variable on the image when used standalone.HTML adds
placeholdersrconPosterElementandSkinElement, mapping attribute changes to--media-poster-placeholder. Skins usemedia-poster::beforefor the HTML path.Sandbox adds
getPlaceholderSrc(Mux thumbnail with?width=20) andusePlaceholderfor demo wiring. An internal design note documents behavior, CSS variables, and accessibility (decorative only).Reviewed by Cursor Bugbot for commit fe81cae. Bugbot is set up for automated code reviews on this repo. Configure here.