@shotstack/shotstack-studio 2.26.1 → 2.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "dazzatron",
7
7
  "kratos2k7"
8
8
  ],
9
- "version": "2.26.1",
9
+ "version": "2.27.0",
10
10
  "description": "A video editing library for creating and editing videos with Shotstack",
11
11
  "type": "module",
12
12
  "main": "dist/shotstack-studio.umd.js",
package/readme.md CHANGED
@@ -179,6 +179,14 @@ const snapshot = edit.getEdit();
179
179
  const durationSeconds = edit.totalDuration;
180
180
  ```
181
181
 
182
+ Each `html5` clip pre-renders all its frames when it loads, for smooth playback and so the canvas can draw it among the other clips. An edit that is only captured with `edit.captureFrame()` can wait until it plays instead:
183
+
184
+ ```typescript
185
+ const edit = new Edit(templateJson, { html5Prerender: "on-play" });
186
+ ```
187
+
188
+ Captured frames are the same either way. Until the edit plays, though, the canvas shows `html5` clips as live pages on top of the other clips, without effects, so keep the default, `"on-load"`, for an edit that someone watches.
189
+
182
190
  #### Events
183
191
 
184
192
  Listen using string event names: