Skip to content

feat:: Add centered chrome with animated play button in YT theme #195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ronalduQualabs
Copy link
Contributor

@ronalduQualabs ronalduQualabs commented Jul 23, 2025

This PR solves Issue 136 watch video

The Issue:

  • On Mobile, tapping does not toggle playback, only shows controls and in the YT theme the play button it's really small for touch screen.

Proposed Solution:

  • Add a centered-chrome in the theme.
  • Include a media-play-button that covers 50% of the video element (red rectangle on the video sample)
  • YouTube-style animation for play/pause event on centered-chrome

All this logic is for Mobile on desktop it keeps toggles playback on click anywhere.

Note: The 50% coverage (red rectangle) it's meant to prevent play/pause trying to improve UX when user want the controls appear on tap on mobile.

Plus:

  • Correct bug by making the shadow with filter instead of stroke and grouping parts of the icons play/pause

Copy link

vercel bot commented Jul 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
player-style ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 1, 2025 7:37pm
player-style-remix ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 1, 2025 7:37pm

Copy link

vercel bot commented Jul 23, 2025

@ronalduQualabs is attempting to deploy a commit to the Mux Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant