Repository navigation
feat(player): play guides like narrated videos - #5
Merged
Merged
Conversation
A guide now reads like a screen recording with a voice over: - frame="browser" puts the video in a macOS browser window, with the address of the page in its title bar, and the screen gets room around it (--il-screen-padding). - One antialiased cut rounds the stage. Chrome clipped composited layers with the outer curve of the window, over its border, and a dark page poked out of the corners. - A step can zoom toward its click (zoom), and the camera frames each step: action low on screen, under the captions and the controls, is lifted toward the middle, within the screenshot. - A story line can carry its voice (audio), played in step with the guide, and its words with their timing, shown over the screen as captions lit as they are said, above the controls or near the edge when they fade. - The arrow, the markers and the click ripple shrink with a narrow player and keep their place on the screenshot.
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.
The player can now show a guide like a narrated screen recording.
What changes
frame="browser"shows the video in a macOS browser window, with the page address of each step in its title bar. The screen gets 12 px of room (--il-screen-padding).clip-pathplus a plain mask) rounds the whole stage. Chrome clipped the composited screenshot with the outer curve of the window, over its border, so a dark page poked out of the corners at a 1.5 pixel ratio.zoom(1 to 4) closes in on its click while the cursor gets there, holds, then goes back before the markers appear.audio. It plays in step with the guide (pause, seek, speed), behind a speaker button;mutedstarts without it.wordswith their timing. They show over the screen a few at a time, white with a dark outline, each lit when it is said, above the controls or near the edge when the controls fade. The story under the screen then gives way to them (screen readers keep it).The protocol keeps
zoom,audioandwords, with tests. The changeset bumps the player and the recorder (minor).Checks
vitest: protocol and player tests pass;tsc --noEmitpasses for both.🤖 Generated with Claude Code