@tradalab/mediakit 2.9.1 → 2.10.0

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/index.d.ts CHANGED
@@ -440,6 +440,7 @@ declare class VideoPipeline {
440
440
  private transport;
441
441
  private abort;
442
442
  private worker;
443
+ private unserveWorker;
443
444
  private workerStats;
444
445
  /** The background path the worker already holds; see backgroundForWorker. */
445
446
  private workerBackgroundPath;
@@ -545,12 +546,10 @@ interface PreloadProgress {
545
546
  done: number;
546
547
  files: number;
547
548
  }
548
- /**
549
- * Warm the HTTP cache with the MediaPipe runtime and the chosen models, at low priority, so the
550
- * first recipe that needs them builds without waiting on the network. Never rejects.
551
- */
552
549
  declare function preloadDetectors(parts?: PreloadParts, onProgress?: (p: PreloadProgress) => void): Promise<void>;
553
550
 
551
+ declare function clearCachedAssets(): Promise<void>;
552
+
554
553
  /**
555
554
  * Layers several sources onto one output, OBS style: cameras (each with its own mediakit
556
555
  * recipe, `cutout` included), screen shares, video files, images, text and any canvas.
@@ -696,4 +695,4 @@ declare function renderText(text: string, style?: TextStyle): HTMLCanvasElement;
696
695
  /** Where each of the face landmarker's first 468 landmarks lies on the canonical face texture. */
697
696
  declare const FACE_UV: Float32Array<ArrayBuffer>;
698
697
 
699
- export { BgFilter, Color, DebugView, Effects, Engine, type EngineCanvas, type EngineGuard, FACE_UV, type FrameStats, GpuLostError, type GpuRecord, type IssueCode, type LossPhase, NO_PARTS, NO_PART_ERRORS, type Part, type PartErrors, type PartState, type PartStates, type PipelineHealth, type PipelineIssue, type PipelineOptions, type PreloadParts, type PreloadProgress, Scene, SceneLayer, type SceneOptions, type SceneSource, type SceneStats, type SupportReason, type SupportReport, type TextStyle, TransitionKind, type Transport, VideoPipeline, checkSupport, forgetGpuFailures, gpuRecord, mediakitSupported, preloadDetectors, renderText };
698
+ export { BgFilter, Color, DebugView, Effects, Engine, type EngineCanvas, type EngineGuard, FACE_UV, type FrameStats, GpuLostError, type GpuRecord, type IssueCode, type LossPhase, NO_PARTS, NO_PART_ERRORS, type Part, type PartErrors, type PartState, type PartStates, type PipelineHealth, type PipelineIssue, type PipelineOptions, type PreloadParts, type PreloadProgress, Scene, SceneLayer, type SceneOptions, type SceneSource, type SceneStats, type SupportReason, type SupportReport, type TextStyle, TransitionKind, type Transport, VideoPipeline, checkSupport, clearCachedAssets, forgetGpuFailures, gpuRecord, mediakitSupported, preloadDetectors, renderText };