@shotstack/shotstack-studio 2.26.2 → 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/dist/index.d.ts +6 -1
- package/dist/internal.d.ts +6 -1
- package/dist/internal.es.js +3260 -3233
- package/dist/internal.umd.js +42 -31
- package/dist/shotstack-studio.es.js +3695 -3668
- package/dist/shotstack-studio.umd.js +118 -107
- package/package.json +1 -1
- package/readme.md +8 -0
package/package.json
CHANGED
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:
|