@vonage/ml-transformers 7.0.2-alpha.1 → 7.0.2

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.
@@ -6,6 +6,7 @@ export declare class BackgroundTransformer {
6
6
  private backgroundOptions?;
7
7
  private reporter;
8
8
  private isEnabled;
9
+ private avoidOriginalTrackLeak?;
9
10
  init(id: string, config: MediaProcessorConfig): Promise<void>;
10
11
  transform?(frame: VideoFrame, controller: TransformStreamDefaultController): Promise<void>;
11
12
  setBackgroundOptions(options: BackgroundOptions): Promise<void>;
@@ -70,6 +70,11 @@ export interface MediaProcessorBaseConfig {
70
70
  * Set of options about obtaining the segmentation from video frames to transform.
71
71
  */
72
72
  segmentationOptions?: SegmentationOptions;
73
+ /**
74
+ * Applying a filter takes a brief moment during which the original track will be
75
+ * bypassed. Activating this option will freeze the frame rather than show it.
76
+ */
77
+ avoidOriginalTrackLeak?: boolean;
73
78
  }
74
79
  export type RenderingOptions = Canvas2dOptions | WebglOptions;
75
80
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vonage/ml-transformers",
3
- "version": "7.0.2-alpha.1",
3
+ "version": "7.0.2",
4
4
  "author": "Vonage <vcp_webrtc@vonage.com>",
5
5
  "keywords": [
6
6
  "vonage",