Skip to content

Commit 210a34d

Browse files
committed
docs(skills): tracks-and-clips says image duration is optional, and a test pins the 3
1 parent bbe6043 commit 210a34d

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎scripts/creator-editing-recipes.test.mjs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ test("the add-media recipe uses Studio's default durations", async () => {
9999
assert.match(section, /`data-start` is enough/);
100100
assert.doesNotMatch(section, /ffprobe/);
101101
assert.match(section, /root composition's `data-duration` is at least/);
102+
assert.match(section, new RegExp(`${imageSecs} for an image unless you set another`));
102103
assert.doesNotMatch(image, /data-duration/);
103104
});
104105

‎skills-manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"files": 11
3535
},
3636
"hyperframes-core": {
37-
"hash": "cea1f2632dd66290",
37+
"hash": "99a07539f407ca0d",
3838
"files": 11
3939
},
4040
"hyperframes-creative": {

‎skills/hyperframes-core/references/tracks-and-clips.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ A clip is any DOM element with `data-start` and, where required, `data-duration`
1010
- **Sub-composition hosts** — `<div>` with `data-composition-src`. Always require `data-duration`.
1111
- **Video clips** — `<video>` with `muted` and `playsinline`. Duration can default to media length.
1212
- **Audio clips** — `<audio>`. Duration can default to media length.
13-
- **Image clips** — `<img>`. Always require `data-duration`.
13+
- **Image clips** — `<img>`. `data-duration` is optional and defaults to 3 seconds; write it only for another length.
1414

1515
Add `class="clip"` to authored visual clips. The runtime does not read it, but the scaffold's shared `.clip { position: absolute; inset: 0 }` rule is what gives a scene its full-frame box, Studio treats it as an edit hint, and `lint` warns without it.
1616

0 commit comments

Comments
 (0)