@layercode/js-sdk 2.8.4 → 2.8.6

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.
@@ -32,7 +32,9 @@ export type LayercodeAudioInputDevice = (MediaDeviceInfo & {
32
32
  }) & {
33
33
  label: string;
34
34
  };
35
- export declare const listAudioInputDevices: () => Promise<LayercodeAudioInputDevice[]>;
35
+ export declare const listAudioInputDevices: (options?: {
36
+ requestPermission?: boolean;
37
+ }) => Promise<LayercodeAudioInputDevice[]>;
36
38
  export declare const watchAudioInputDevices: (callback: (devices: LayercodeAudioInputDevice[]) => void) => (() => void);
37
39
  /**
38
40
  * Interface for LayercodeClient public methods
@@ -47,7 +49,9 @@ interface ILayercodeClient {
47
49
  setPreferredInputDevice(deviceId: string | null): Promise<void>;
48
50
  setAudioInput(state: boolean): Promise<void>;
49
51
  setAudioOutput(state: boolean): Promise<void>;
50
- listDevices(): Promise<Array<MediaDeviceInfo & {
52
+ listDevices(options?: {
53
+ requestPermission?: boolean;
54
+ }): Promise<Array<MediaDeviceInfo & {
51
55
  default: boolean;
52
56
  }>>;
53
57
  onDeviceSwitched?: (deviceId: string) => void;
@@ -271,7 +275,9 @@ declare class LayercodeClient implements ILayercodeClient {
271
275
  * List all available audio input devices
272
276
  * @returns {Promise<Array<MediaDeviceInfo & {default: boolean}>>}
273
277
  */
274
- listDevices(): Promise<Array<MediaDeviceInfo & {
278
+ listDevices(options?: {
279
+ requestPermission?: boolean;
280
+ }): Promise<Array<MediaDeviceInfo & {
275
281
  default: boolean;
276
282
  }>>;
277
283
  /**
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "author": "Layercode",
3
3
  "license": "MIT",
4
4
  "name": "@layercode/js-sdk",
5
- "version": "2.8.4",
5
+ "version": "2.8.6",
6
6
  "description": "Layercode JavaScript SDK for browser usage",
7
7
  "type": "module",
8
8
  "main": "dist/layercode-js-sdk.esm.js",