@snapcall/stream-ui 1.11.5 → 1.12.1

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
@@ -299,6 +299,7 @@ declare class StreamerClient extends StreamerEventTargetType implements AudioLev
299
299
  device: MediaDeviceInfo | null;
300
300
  facingMode?: string;
301
301
  resolution: VideoResolution;
302
+ framerate?: number;
302
303
  };
303
304
  webcamTrack: MediaStreamTrack | null;
304
305
  webcamZoom: {
@@ -367,7 +368,9 @@ declare class StreamerClient extends StreamerEventTargetType implements AudioLev
367
368
  zoomVideo(): Promise<void>;
368
369
  unzoomVideo(): Promise<void>;
369
370
  disableVideo(): Promise<void>;
370
- enableScreenshare(): Promise<void>;
371
+ enableScreenshare(option?: {
372
+ audioTransportOption: 'mix' | 'none' | 'classic';
373
+ }): Promise<void>;
371
374
  disableScreenshare(): Promise<void>;
372
375
  onConsumerClose({ consumerId }: {
373
376
  consumerId: ConsumerId;
@@ -416,7 +419,7 @@ declare class StreamerClient extends StreamerEventTargetType implements AudioLev
416
419
  device: MediaDeviceInfo | null;
417
420
  resolution: VideoResolution;
418
421
  };
419
- getCurrentMicrophoneId(): string | undefined;
422
+ getCurrentMicrophoneId(): string | MediaTrackSettings | undefined;
420
423
  getCurrentSpeakerId(): string;
421
424
  setWebcamResolution(resolution: VideoResolution): Promise<void>;
422
425
  createAudioRenderer(consumerId: string): AudioRenderer;
@@ -492,7 +495,7 @@ interface ControlSettings {
492
495
  interface StreamUIBaseOptions {
493
496
  recorder?: {
494
497
  enabled: boolean;
495
- defaultState?: 'photo' | 'video';
498
+ defaultState?: 'photo' | 'video' | 'screen';
496
499
  };
497
500
  sharedURL?: string;
498
501
  audioTiles?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snapcall/stream-ui",
3
- "version": "1.11.5",
3
+ "version": "1.12.1",
4
4
  "description": "",
5
5
  "source": "src/index.tsx",
6
6
  "main": "dist/stream-ui.js",