@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.
package/dist/internal.es.js
CHANGED
|
@@ -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
|
-
|
|
38902
|
+
let l = "", c = null;
|
|
38903
|
+
for (let h = 0; h < i; h += S1) {
|
|
38903
38904
|
if (await Z0(), r()) return null;
|
|
38904
|
-
const
|
|
38905
|
-
for (let
|
|
38906
|
-
this.seekHarness(
|
|
38907
|
-
|
|
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
|
|
38910
|
-
this.captureFramesDone += 1, u.push(
|
|
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((
|
|
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);
|