Conversation
Add an HTMLMediaElement-compatible <gumlet-video> custom element backed by Gumlet Player.js, with React wrapper, Next.js demo, and release-please registration.
feat: add gumlet-video-element
Feat/gumlet video element
|
@mudit2108 is attempting to deploy a commit to the Mux Team on Vercel. A member of the Team first needs to authorize it. |
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 4 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 8d942f8. Configure here.
fix: SSR ready handshake, play state, and Gumlet chrome
There was a problem hiding this comment.
Pin zora to 6.0.0 version to avoid CORS error on tests run.
{
"zora": "https://cdn.jsdelivr.net/npm/zora@6.0.0/dist/index.js"
}

Add an HTMLMediaElement-compatible custom element backed by Gumlet Player.js, with React wrapper, Next.js demo, and release-please registration.
Note
Low Risk
Additive new package following existing embed-element patterns; risk is mainly third-party Player.js/CDN and iframe playback edge cases, covered by targeted tests.
Overview
Introduces
gumlet-video-element(<gumlet-video>), a new embed player package that mirrors the repo’s other video custom elements: Gumlet embed URLs (play.gumlet.io/embed/...), an HTMLMediaElement-style API, and Player.js loaded from jsDelivr to drive an iframe in shadow DOM.Notable behavior in the new implementation includes a
configobject (DRM, ads,start_high_res, etc.) merged into the embed URL,disable_player_controlswhencontrolsis absent (for Media Chrome), SSR hydration viadata-configon the iframe and a src refresh so Player.js can handshake, and lifecycle handling for reconnect, invalidsrc, andloadCompletepromises.Also wires the package into release-please at
0.1.0, documents it in the root README, adds a Next.js demo page/nav entry, and includes TypeScript types, a demoindex.html, and zora tests.Reviewed by Cursor Bugbot for commit 053aa6e. Bugbot is set up for automated code reviews on this repo. Configure here.