@tradalab/mediakit 2.9.0 → 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/README.md +31 -1
- package/dist/detect-worker.js +1140 -14
- package/dist/detect-worker.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +198 -140
- package/dist/index.js.map +1 -1
- package/dist/worker.js +1200 -67
- package/dist/worker.js.map +1 -1
- package/package.json +4 -1
package/dist/index.d.ts
CHANGED
|
@@ -424,6 +424,7 @@ declare class VideoPipeline {
|
|
|
424
424
|
private watchdog;
|
|
425
425
|
private movedOff;
|
|
426
426
|
private raised;
|
|
427
|
+
private effectOff;
|
|
427
428
|
private slowTicks;
|
|
428
429
|
private gpuRecoveries;
|
|
429
430
|
private gpu;
|
|
@@ -439,6 +440,7 @@ declare class VideoPipeline {
|
|
|
439
440
|
private transport;
|
|
440
441
|
private abort;
|
|
441
442
|
private worker;
|
|
443
|
+
private unserveWorker;
|
|
442
444
|
private workerStats;
|
|
443
445
|
/** The background path the worker already holds; see backgroundForWorker. */
|
|
444
446
|
private workerBackgroundPath;
|
|
@@ -544,12 +546,10 @@ interface PreloadProgress {
|
|
|
544
546
|
done: number;
|
|
545
547
|
files: number;
|
|
546
548
|
}
|
|
547
|
-
/**
|
|
548
|
-
* Warm the HTTP cache with the MediaPipe runtime and the chosen models, at low priority, so the
|
|
549
|
-
* first recipe that needs them builds without waiting on the network. Never rejects.
|
|
550
|
-
*/
|
|
551
549
|
declare function preloadDetectors(parts?: PreloadParts, onProgress?: (p: PreloadProgress) => void): Promise<void>;
|
|
552
550
|
|
|
551
|
+
declare function clearCachedAssets(): Promise<void>;
|
|
552
|
+
|
|
553
553
|
/**
|
|
554
554
|
* Layers several sources onto one output, OBS style: cameras (each with its own mediakit
|
|
555
555
|
* recipe, `cutout` included), screen shares, video files, images, text and any canvas.
|
|
@@ -695,4 +695,4 @@ declare function renderText(text: string, style?: TextStyle): HTMLCanvasElement;
|
|
|
695
695
|
/** Where each of the face landmarker's first 468 landmarks lies on the canonical face texture. */
|
|
696
696
|
declare const FACE_UV: Float32Array<ArrayBuffer>;
|
|
697
697
|
|
|
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, 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 };
|