@shotstack/shotstack-studio 2.28.0 → 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.
@@ -38899,15 +38899,19 @@ ${e.stack}` : e), this.recordLoadError(e), this.emitCaptureFailed(e, "static-pla
38899
38899
  }), a = this.captureFps, s = this.renderedWidth, o = this.renderedHeight;
38900
38900
  this.captureFramesTotal = i, this.captureFramesDone = 0;
38901
38901
  const u = [];
38902
- for (let l = 0; l < i; l += S1) {
38902
+ let l = "", c = null;
38903
+ for (let h = 0; h < i; h += S1) {
38903
38904
  if (await Z0(), r()) return null;
38904
- const c = [];
38905
- for (let d = l; d < Math.min(l + S1, i); d += 1)
38906
- this.seekHarness(d / a), F1(this.iframe.contentDocument.body), c.push(P1(this.captureIframeAsForeignObjectSvg(s, o), s, o));
38907
- const h = await Promise.all(c);
38905
+ const d = [];
38906
+ for (let y = h; y < Math.min(h + S1, i); y += 1) {
38907
+ this.seekHarness(y / a), F1(this.iframe.contentDocument.body);
38908
+ const v = this.captureIframeAsForeignObjectSvg(s, o);
38909
+ (!c || v !== l) && (l = v, c = P1(v, s, o).then((b) => new Blob([b], { type: "image/webp" }))), d.push(c);
38910
+ }
38911
+ const m = await Promise.all(d);
38908
38912
  if (r()) return null;
38909
- for (const d of h)
38910
- this.captureFramesDone += 1, u.push(new Blob([d], { type: "image/webp" }));
38913
+ for (const y of m)
38914
+ this.captureFramesDone += 1, u.push(y);
38911
38915
  }
38912
38916
  return this.capturedFrames = u, this.capturedHash = e, this.emitCaptureCompleted(i), bL(e, {
38913
38917
  pngs: u,
@@ -38916,7 +38920,7 @@ ${e.stack}` : e), this.recordLoadError(e), this.emitCaptureFailed(e, "static-pla
38916
38920
  width: this.renderedWidth,
38917
38921
  height: this.renderedHeight,
38918
38922
  createdAt: Date.now()
38919
- }).catch((l) => console.warn("[Html5Player] cache put failed:", l)), u;
38923
+ }).catch((h) => console.warn("[Html5Player] cache put failed:", h)), u;
38920
38924
  }
38921
38925
  async loadFreshPage(e, r) {
38922
38926
  const n = Mu(this.asset).length > 0 ? await this.composeWithIngestFiles(this.asset) : hu(this.asset);