You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 09aadd8
Browse filesBrowse the repository at this point in the historyBrowse files
feat(core): video, audio and image length come from one shared resolver (#4166)
A new resolver in @hyperframes/parsers decides how long a video, audio or image
occupies the timeline. The core runtime start resolver, clip manifest and clip
tree now read length through it. An image with data-start and no data-duration
gets the dropped-image default of 3 seconds; a bare image stays a static layer.
Video and audio take their length from the file until an authored duration trims it.
The playback rate bound (0.1 to 10) now lives in parsers, and core re-exports it.
A rate lane keeps its own arithmetic in core.
The lint rule that asked images for data-duration is removed, and the docs no
longer say an image requires it.
Copy file name to clipboardExpand all lines: docs/reference/html-schema.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,7 +96,7 @@ unbounded animation, and timeline-free compositions need an explicit duration.
96
96
| --- | --- | --- |
97
97
|`id`| Yes | Stable identifier for timing, editing, and animation |
98
98
|`data-start`| Yes | Start in seconds or a relative timing expression |
99
-
|`data-duration`| Yes for DOM, image, and nested-composition clips | Visible slot length in seconds |
99
+
|`data-duration`| Yes for DOMand nested-composition clips; optional for image (3 s default), video and audio (source length)| Visible slot length in seconds |
100
100
|`data-track-index`| No | Studio timeline lane, display only. The render never reads it and it does not prevent overlap |
101
101
|`class="clip"`| Recommended for authored timed DOM and image elements | Layout and tooling convention. Visibility is keyed off `data-start`, but the shared `.clip` rule supplies the full-frame box |
Copy file name to clipboardExpand all lines: packages/core/docs/core.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -183,7 +183,7 @@ A clip is any discrete block on the timeline. We represent clips as HTML element
183
183
184
184
-`id` — Unique identifier (e.g., "el-1")
185
185
-`data-start` — Start time in seconds, or a clip `id` reference. See [Relative Timing](#relative-timing).
186
-
-`data-duration` — Duration in seconds. Required for `<img>`clips. Optional for `<video>` and `<audio>` (defaults to the source media's full duration). Not used on compositions.
186
+
-`data-duration` — Duration in seconds. Optional for `<img>`(defaults to 3 seconds), `<video>` and `<audio>` (default to the source media's length, less any playback offset, over the playback rate; an authored value trims). Not used on compositions.
187
187
-`data-track-index` — Timeline track number. Tracks serve two purposes: they determine visual layering (higher tracks render in front) and they group clips into rows on the timeline. Clips on the same track **cannot overlap in time**.
0 commit comments