@snapcall/stream-ui 1.11.3 → 1.11.5

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/types.d.ts CHANGED
@@ -141,6 +141,9 @@ declare class AudioRenderer {
141
141
  getSink(): string | undefined;
142
142
  play(): Promise<void>;
143
143
  }
144
+ interface CaptureVideoOptions {
145
+ addPlayWatermark: boolean;
146
+ }
144
147
  interface MediapipeOptions {
145
148
  type: 'blur' | 'background';
146
149
  fillColor?: string;
@@ -377,8 +380,12 @@ declare class StreamerClient extends StreamerEventTargetType implements AudioLev
377
380
  url: string;
378
381
  assetId: number;
379
382
  }>;
383
+ saveThumbnail(base64Image: string): Promise<{
384
+ url: string;
385
+ assetId: number;
386
+ }>;
380
387
  deleteCapture(assetId: number): Promise<number>;
381
- captureVideo(videoElement?: HTMLVideoElement): Promise<string>;
388
+ captureVideo(videoElement?: HTMLVideoElement, option?: CaptureVideoOptions): Promise<string>;
382
389
  requestLocalVideo(element: HTMLVideoElement): {
383
390
  facingMode: string;
384
391
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snapcall/stream-ui",
3
- "version": "1.11.3",
3
+ "version": "1.11.5",
4
4
  "description": "",
5
5
  "source": "src/index.tsx",
6
6
  "main": "dist/stream-ui.js",