@shotstack/shotstack-studio 2.27.2 → 2.28.1
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/internal.es.js +2715 -2692
- package/dist/internal.umd.js +37 -37
- package/dist/shotstack-studio.es.js +2879 -2856
- package/dist/shotstack-studio.umd.js +91 -91
- package/package.json +1 -1
- package/readme.md +2 -2
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -179,13 +179,13 @@ 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
|
|
182
|
+
Each `html5` clip pre-renders all its frames when it loads, for smooth playback. An edit that is only captured with `edit.captureFrame()` can wait until it plays instead:
|
|
183
183
|
|
|
184
184
|
```typescript
|
|
185
185
|
const edit = new Edit(templateJson, { html5Prerender: "on-play" });
|
|
186
186
|
```
|
|
187
187
|
|
|
188
|
-
Captured frames are the same either way. Until the edit plays,
|
|
188
|
+
Captured frames are the same either way. Until the edit plays, the canvas shows each `html5` clip as a still of its frame at the playhead, in its layer and with its effects. Playback stays choppy until the frames are ready, so keep the default, `"on-load"`, for an edit that someone watches.
|
|
189
189
|
|
|
190
190
|
#### Events
|
|
191
191
|
|