Commit a7443ec
Iris
Phase 1.1: also expose wasm TICKS_PER_SECOND + mediaTimeFromSeconds/roundMediaTime
MCP callers speak seconds; TimelineElement expects MediaTime (integer ticks).
Expose the wasm helpers so callers don't need to import the wasm module.
Ticks per second happens to be 120000 at runtime — fine granularity for split
math, and matches the internal MediaTime(i64) invariant enforced by
requireMediaTime() (see wasm/media-time.ts).
opencut-mcp now converts all time arguments (startTime, duration, trimStart,
trimEnd, sourceDuration, split time, move newStartTime) via mediaTimeFromSeconds
before crossing into the editor.1 parent eca7304 commit a7443ec
1 file changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| 42 | + | |
| 43 | + | |
41 | 44 | | |
42 | | - | |
43 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
44 | 56 | | |
45 | 57 | | |
46 | 58 | | |
| |||
0 commit comments