@livedigital/client 3.20.2 → 3.20.3

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@livedigital/client",
3
3
  "author": "vlprojects",
4
4
  "license": "MIT",
5
- "version": "3.20.2",
5
+ "version": "3.20.3",
6
6
  "private": false,
7
7
  "bugs": {
8
8
  "url": "https://github.com/vlprojects/livedigital-sdk/issues"
@@ -69,8 +69,8 @@
69
69
  "@types/chai-subset": "^1.3.3",
70
70
  "@types/emscripten": "^1.39.6",
71
71
  "@types/faker": "^5.5.9",
72
- "@types/hash-sum": "^1.0.2",
73
72
  "@types/jsonwebtoken": "^9.0.2",
73
+ "@types/hash-sum": "^1.0.2",
74
74
  "@types/mocha": "^10.0.1",
75
75
  "@types/node": "^14.18.36",
76
76
  "@types/pixi.js": "^5.0.0",
@@ -24,7 +24,6 @@ export interface Effects {
24
24
  type: LowerThirdTypes;
25
25
  options?: LtOptions;
26
26
  },
27
- sharpness?: number;
28
27
  }
29
28
 
30
29
  interface VideoTrackProcessorParams {
@@ -85,7 +84,6 @@ export default class EffectsSDKTrackProcessor {
85
84
 
86
85
  const config = {
87
86
  preset: 'balanced', // you can specify default segmentation preset (quality, balanced, speed, lightning)
88
- provider: 'wasm',
89
87
  };
90
88
 
91
89
  this.#tsvb.config(config);
@@ -291,9 +289,7 @@ export default class EffectsSDKTrackProcessor {
291
289
  this.#tsvb.setLayout('center');
292
290
  }
293
291
 
294
- if (this.#effects?.colorFilter
295
- && this.#effects?.colorFilter.power
296
- && this.#effects?.colorFilter.url) {
292
+ if (this.#effects?.colorFilter) {
297
293
  this.#tsvb.setColorFilterConfig({
298
294
  lut: this.#effects.colorFilter.url,
299
295
  power: this.#effects.colorFilter.power,
@@ -319,13 +315,6 @@ export default class EffectsSDKTrackProcessor {
319
315
  this.#tsvb.components?.lowerThird?.hideLowerThird?.();
320
316
  }
321
317
 
322
- if (this.#effects?.sharpness) {
323
- this.#tsvb.setSharpnessEffectConfig(this.#effects.sharpness);
324
- enabledFiltersCount += 1;
325
- } else {
326
- this.#tsvb.disableSharpnessEffect();
327
- }
328
-
329
318
  if (enabledFiltersCount > 2) {
330
319
  this.#tsvb.enableFrameSkipping();
331
320
  } else {
@@ -23,6 +23,16 @@ type ResizeSettings = {
23
23
 
24
24
  // eslint-disable-next-line import/prefer-default-export, @typescript-eslint/naming-convention
25
25
  export declare class tsvb {
26
+ static WIDTH: number;
27
+
28
+ static HEIGHT: number;
29
+
30
+ static OUTPUT_WIDTH: number;
31
+
32
+ static OUTPUT_HEIGHT: number;
33
+
34
+ static IS_LANDSCAPE: boolean;
35
+
26
36
  private callbackStore;
27
37
 
28
38
  private streamProcessor;
@@ -37,8 +47,6 @@ export declare class tsvb {
37
47
 
38
48
  private colorFilterEffect;
39
49
 
40
- private customResolutionEffect;
41
-
42
50
  private virtualBackgroundEffect;
43
51
 
44
52
  private smartZoomEffect;
@@ -51,20 +59,13 @@ export declare class tsvb {
51
59
 
52
60
  recorder: IRecorder;
53
61
 
54
- sdkOptions: sdkOptions;
55
-
56
62
  customer_id: string;
57
63
 
58
64
  constructor(customer_id: string, inference?: any);
59
-
60
- private onOptionsUpdate;
61
-
62
65
  cache(clear?: boolean): Promise<void>;
63
66
  preload(): Promise<void>;
64
67
  config(config: any): void;
65
-
66
68
  private init;
67
-
68
69
  getCustomerId(): string;
69
70
  useStream(stream: MediaStream, resize?: ResizeSettings): void;
70
71
  setSegmentationPreset(preset: string): Promise<boolean>;
@@ -104,7 +105,6 @@ export declare class tsvb {
104
105
  switchDrawFaceSquare(isOn: boolean): boolean;
105
106
  switchDrawPreFaceSquare(isOn: boolean): boolean;
106
107
  enableSmartZoom(): boolean;
107
- enableSharpnessEffect(): boolean;
108
108
  disableSmartZoom(): boolean;
109
109
  enableColorCorrector(): boolean;
110
110
  disableColorCorrector(): boolean;
@@ -136,8 +136,7 @@ export declare class tsvb {
136
136
  lowerthird_5: typeof LtTwoSlideRects;
137
137
  stickers: typeof Stickers;
138
138
  }[K];
139
- setOutputResolution(size: ResizeSettings): void;
140
- clearOutputResolution(): void;
139
+ setOutputResolution(size: Partial<ResizeSettings>): void;
141
140
  setOutputFrameFormat(format: FrameFormat): void;
142
141
  set onReady(f: Function);
143
142
  onError(f: (e: ErrorObject) => void): void;
@@ -146,8 +145,6 @@ export declare class tsvb {
146
145
  onAuthRequest(f?: (url: string, payload: Object) => Promise<string>): void;
147
146
  onColorFilterSuccess(f?: (id: string) => void): void;
148
147
  onLowLightSuccess(f?: () => void): void;
149
- setSharpnessEffectConfig(value: number): boolean;
150
- disableSharpnessEffect(): boolean;
151
148
  }
152
149
  declare const componentsMap: {
153
150
  overlay_screen: typeof OverlayScreen;