@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.
@@ -11,7 +11,7 @@ import "pixi.js/text-html";
11
11
  import "pixi.js/sprite-tiling";
12
12
  import "pixi.js/filters";
13
13
  import "pixi.js/mesh";
14
- const e8 = "2.27.2", i8 = {
14
+ const e8 = "2.28.0", i8 = {
15
15
  version: e8
16
16
  };
17
17
  function Rv(e, t, i) {
@@ -38951,15 +38951,19 @@ ${t.stack}` : t), this.recordLoadError(t), this.emitCaptureFailed(t, "static-pla
38951
38951
  }), s = this.captureFps, a = this.renderedWidth, o = this.renderedHeight;
38952
38952
  this.captureFramesTotal = r, this.captureFramesDone = 0;
38953
38953
  const l = [];
38954
- for (let u = 0; u < r; u += h2) {
38954
+ let u = "", c = null;
38955
+ for (let d = 0; d < r; d += h2) {
38955
38956
  if (await yg(), i()) return null;
38956
- const c = [];
38957
- for (let f = u; f < Math.min(u + h2, r); f += 1)
38958
- this.seekHarness(f / s), p2(this.iframe.contentDocument.body), c.push(g2(this.captureIframeAsForeignObjectSvg(a, o), a, o));
38959
- const d = await Promise.all(c);
38957
+ const f = [];
38958
+ for (let p = d; p < Math.min(d + h2, r); p += 1) {
38959
+ this.seekHarness(p / s), p2(this.iframe.contentDocument.body);
38960
+ const g = this.captureIframeAsForeignObjectSvg(a, o);
38961
+ (!c || g !== u) && (u = g, c = g2(g, a, o).then((y) => new Blob([y], { type: "image/webp" }))), f.push(c);
38962
+ }
38963
+ const h = await Promise.all(f);
38960
38964
  if (i()) return null;
38961
- for (const f of d)
38962
- this.captureFramesDone += 1, l.push(new Blob([f], { type: "image/webp" }));
38965
+ for (const p of h)
38966
+ this.captureFramesDone += 1, l.push(p);
38963
38967
  }
38964
38968
  return this.capturedFrames = l, this.capturedHash = t, this.emitCaptureCompleted(r), PY(t, {
38965
38969
  pngs: l,
@@ -38968,7 +38972,7 @@ ${t.stack}` : t), this.recordLoadError(t), this.emitCaptureFailed(t, "static-pla
38968
38972
  width: this.renderedWidth,
38969
38973
  height: this.renderedHeight,
38970
38974
  createdAt: Date.now()
38971
- }).catch((u) => console.warn("[Html5Player] cache put failed:", u)), l;
38975
+ }).catch((d) => console.warn("[Html5Player] cache put failed:", d)), l;
38972
38976
  }
38973
38977
  async loadFreshPage(t, i) {
38974
38978
  const n = Xd(this.asset).length > 0 ? await this.composeWithIngestFiles(this.asset) : gd(this.asset);