feat: YouTube provider#16
Merged
Merged
Conversation
Add @karnstack/kino/youtube — kino's glass chrome over the YouTube IFrame Player API. <YouTubePlayer videoId="…" /> plus createYouTubeProvider and a parseYouTubeId helper that accepts a bare id or any watch / youtu.be / embed / shorts URL. No runtime dependency; the API is loaded on demand. Play/pause, seek, speed, volume, fullscreen, keyboard map, and a captions menu (driven by the video's own subtitle tracks, rendered by YouTube inside the embed) all work through kino's controls. Buffering is mapped to "not paused" so a stall doesn't read as a pause. controls:0 plus pointer-events:none on the iframe keep YouTube's hover chrome and second progress bar from showing. Follows YouTube's API terms — plays through the official IFrame API and does not obscure the player, so YouTube's own thumbnail, play button, title, and logo show before playback and while paused. Quality, picture-in-picture, and scrub-preview storyboards are hidden because the IFrame API doesn't expose them. Docs/demo: reframe the README away from "Mux is the first provider" to three shipped providers (Mux, Native, YouTube), add a YouTube section and props, mark YouTube shipped on the providers page, and add a YouTube tab to the live studio. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
kino | 662c59b | Commit Preview URL Branch Preview URL |
Jun 28 2026, 09:57 AM |
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.
What
Adds a YouTube provider —
@karnstack/kino/youtubeputs kino's glass chrome over the YouTube IFrame Player API.createYouTubeProvider,<YouTubePlayer>, and aparseYouTubeIdhelper (bare id or any watch / youtu.be / embed / shorts URL)../youtubeentry + tsdown build.Works through kino's chrome
Play/pause, seek, speed, volume, fullscreen, keyboard map, and a captions menu (driven by the video's own subtitle tracks, rendered by YouTube inside the embed). Buffering is mapped to "not paused" so a stall doesn't read as a pause.
controls:0+pointer-events:noneon the iframe keep YouTube's hover chrome and second progress bar from showing.Follows YouTube's API terms
Plays through the official IFrame API and does not obscure the player — YouTube's own thumbnail, play button, title, and logo show before playback and while paused. Quality, picture-in-picture, and scrub-preview storyboards are hidden because the IFrame API doesn't expose them.
Docs / demo
docs/superpowers/specs/. Changeset: minor.Verification
onReadypoll crash and the buffering-not-paused mapping).typecheck,lint, library build, and demo build all clean.🤖 Generated with Claude Code