@viji-dev/core 0.3.7 → 0.3.9

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.
@@ -586,7 +586,7 @@ class IFrameManager {
586
586
  }
587
587
  function WorkerWrapper(options) {
588
588
  return new Worker(
589
- "" + new URL("assets/viji.worker-CariIqqP.js", import.meta.url).href,
589
+ "" + new URL("assets/viji.worker-Dq0mIiTV.js", import.meta.url).href,
590
590
  {
591
591
  type: "module",
592
592
  name: options?.name
@@ -1935,7 +1935,7 @@ class EssentiaOnsetDetection {
1935
1935
  this.initPromise = (async () => {
1936
1936
  try {
1937
1937
  const essentiaModule = await import("./essentia.js-core.es-DnrJE0uR.js");
1938
- const wasmModule = await import("./essentia-wasm.web-xDp5ZeCx.js").then((n) => n.e);
1938
+ const wasmModule = await import("./essentia-wasm.web-Cx2LFPy-.js").then((n) => n.e);
1939
1939
  const EssentiaClass = essentiaModule.Essentia || essentiaModule.default?.Essentia || essentiaModule.default;
1940
1940
  let WASMModule = wasmModule.default || wasmModule.EssentiaWASM || wasmModule.default?.EssentiaWASM;
1941
1941
  if (!WASMModule) {
@@ -14277,6 +14277,10 @@ class VideoCoordinator {
14277
14277
  }
14278
14278
  this.ctx.drawImage(this.videoElement, 0, 0, this.canvas.width, this.canvas.height);
14279
14279
  const imageBitmap = await createImageBitmap(this.canvas);
14280
+ if (!this.isTransferRunning) {
14281
+ imageBitmap.close();
14282
+ return;
14283
+ }
14280
14284
  if (Math.random() < 0.01) {
14281
14285
  this.debugLog("✅ Frame captured and ImageBitmap created:", {
14282
14286
  videoDimensions: `${this.videoElement.videoWidth}x${this.videoElement.videoHeight}`,
@@ -16268,4 +16272,4 @@ export {
16268
16272
  VijiCoreError as b,
16269
16273
  getDefaultExportFromCjs as g
16270
16274
  };
16271
- //# sourceMappingURL=index-DMMhcGU1.js.map
16275
+ //# sourceMappingURL=index-BVo5-V-R.js.map