livekit-client 1.6.8 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -136,7 +136,7 @@ declare class Room extends Room_base {
136
136
  * `audiooutput` to set speaker for all incoming audio tracks
137
137
  * @param deviceId
138
138
  */
139
- switchActiveDevice(kind: MediaDeviceKind, deviceId: string): Promise<void>;
139
+ switchActiveDevice(kind: MediaDeviceKind, deviceId: string, exact?: boolean): Promise<void>;
140
140
  private setupLocalParticipantEvents;
141
141
  private recreateEngine;
142
142
  private onTrackAdded;
@@ -1 +1 @@
1
- {"version":3,"file":"Room.d.ts","sourceRoot":"","sources":["../../../src/room/Room.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAG9C,OAAO,KAAK,EAEV,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACZ,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,eAAe,EACf,gBAAgB,EAGhB,qBAAqB,EAQtB,MAAM,yBAAyB,CAAC;AAkBjC,OAAO,gBAAgB,MAAM,gCAAgC,CAAC;AAC9D,OAAO,KAAK,WAAW,MAAM,2BAA2B,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,iBAAiB,MAAM,iCAAiC,CAAC;AAChE,OAAO,SAAS,MAAM,aAAa,CAAC;AAGpC,OAAO,qBAAqB,MAAM,+BAA+B,CAAC;AAElE,OAAO,KAAK,WAAW,MAAM,qBAAqB,CAAC;AACnD,OAAO,sBAAsB,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAGjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAWjD,oBAAY,eAAe;IACzB,YAAY,iBAAiB;IAC7B,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,YAAY,iBAAiB;CAC9B;AAED,oE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AC7B,eAAe,EAAE,qBAAqB,GAAG,SAAS,EAClD,WAAW,EAAE,iBAAiB,GAAG,gBAAgB,KAC9C,IAAI,CAAC;IACV,qBAAqB,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAC9D,mBAAmB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,YAAY,EAAE,CACZ,OAAO,EAAE,UAAU,EACnB,WAAW,CAAC,EAAE,iBAAiB,EAC/B,IAAI,CAAC,EAAE,eAAe,EACtB,KAAK,CAAC,EAAE,MAAM,KACX,IAAI,CAAC;IACV,wBAAwB,EAAE,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,WAAW,KAAK,IAAI,CAAC;IACzF,iBAAiB,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAC1C,uBAAuB,EAAE,CACvB,WAAW,EAAE,sBAAsB,EACnC,WAAW,EAAE,KAAK,CAAC,WAAW,EAC9B,WAAW,EAAE,iBAAiB,KAC3B,IAAI,CAAC;IACV,kCAAkC,EAAE,CAClC,WAAW,EAAE,sBAAsB,EACnC,MAAM,EAAE,gBAAgB,CAAC,gBAAgB,EACzC,WAAW,EAAE,iBAAiB,KAC3B,IAAI,CAAC;IACV,8BAA8B,EAAE,CAC9B,WAAW,EAAE,sBAAsB,EACnC,MAAM,EAAE,gBAAgB,CAAC,kBAAkB,EAC3C,WAAW,EAAE,iBAAiB,KAC3B,IAAI,CAAC;IACV,oBAAoB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,sBAAsB,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;CACtD,CAAC"}
@@ -38,6 +38,7 @@ export default class LocalParticipant extends Participant {
38
38
  setupEngine(engine: RTCEngine): void;
39
39
  private handleReconnecting;
40
40
  private handleReconnected;
41
+ private handleDisconnected;
41
42
  /**
42
43
  * Enable or disable a participant's camera track.
43
44
  *
@@ -1 +1 @@
1
- {"version":3,"file":"LocalParticipant.d.ts","sourceRoot":"","sources":["../../../../src/room/participant/LocalParticipant.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAc,eAAe,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC1F,OAAO,EAEL,eAAe,EAGf,sBAAsB,EAEvB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,KAAK,SAAS,MAAM,cAAc,CAAC;AAE1C,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,qBAAqB,MAAM,gCAAgC,CAAC;AAEnE,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,wBAAwB,EAExB,yBAAyB,EAEzB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,0BAA0B,EAA0B,MAAM,8BAA8B,CAAC;AAMlG,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AAEpD,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,WAAW;IACvD,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;IAEhD,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;IAEhD,+CAA+C;IAC/C,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;IAE3C,gBAAgB;IAChB,MAAM,EAAE,SAAS,CAAC;IAElB,OAAO,CAAC,iBAAiB,CAA2B;IAEpD,OAAO,CAAC,sBAAsB,CAA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EAAE,mBAAmB;IAoBtD;;;;;;;;;;OAUG;IACG,WAAW,CACf,IAAI,EAAE,UAAU,EAChB,IAAI,EAAE,eAAe,EACrB,cAAc,CAAC,EAAE,kBAAkB,GAClC,OAAO,CAAC,IAAI,CAAC;IAChB;;;;;;;;;;OAUG;IACG,WAAW,CACf,IAAI,EAAE,UAAU,EAChB,IAAI,EAAE,eAAe,EACrB,WAAW,CAAC,EAAE,iBAAiB,EAAE,GAAG,MAAM,EAAE,GAC3C,OAAO,CAAC,IAAI,CAAC;IAwChB;;;;;;;;;;;;;;;;OAgBG;IACH,+BAA+B,CAC7B,sBAAsB,EAAE,OAAO,EAC/B,2BAA2B,GAAE,0BAA0B,EAAO;IAShE,gBAAgB;IAChB,UAAU,CAAC,IAAI,EAAE,eAAe;IA2BhC,OAAO,CAAC,kCAAkC,CASxC;IAEF,gBAAgB;IAChB,OAAO,CAAC,cAAc,CAEpB;IAGF,gBAAgB;IAChB,OAAO,CAAC,YAAY,CAWlB;IAEF,OAAO,CAAC,qBAAqB,CAG3B;IAEF,OAAO,CAAC,sBAAsB,CAG5B;IAEF,OAAO,CAAC,6BAA6B,CA0BnC;IAEF,OAAO,CAAC,2BAA2B,CAUjC;IAEF,OAAO,CAAC,gBAAgB,CA+CtB;IAEF,OAAO,CAAC,sBAAsB;IAwB9B,gBAAgB;IAChB,mBAAmB,IAAI,sBAAsB,EAAE;IAa/C,gBAAgB;IAChB,gBAAgB,IAAI,eAAe,EAAE;CAoBtC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Participant.d.ts","sourceRoot":"","sources":["../../../../src/room/participant/Participant.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAE9C,OAAO,EACL,iBAAiB,IAAI,YAAY,EACjC,eAAe,EACf,eAAe,EACf,qBAAqB,EACtB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,qBAAqB,MAAM,gCAAgC,CAAC;AACxE,OAAO,KAAK,WAAW,MA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,mBAAmB,EAAE,CAAC,WAAW,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAClE,qBAAqB,EAAE,CAAC,WAAW,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACpE,0BAA0B,EAAE,CAAC,YAAY,EAAE,MAAM,GAAG,SAAS,EAAE,WAAW,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAC1F,YAAY,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IACnE,iBAAiB,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/C,wBAAwB,EAAE,CAAC,iBAAiB,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACzE,uBAAuB,EAAE,CACvB,WAAW,EAAE,sBAAsB,EACnC,WAAW,EAAE,KAAK,CAAC,WAAW,KAC3B,IAAI,CAAC;IACV,kCAAkC,EAAE,CAClC,WAAW,EAAE,sBAAsB,EACnC,MAAM,EAAE,gBAAgB,CAAC,gBAAgB,KACtC,IAAI,CAAC;IACV,iBAAiB,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAC1C,6BAA6B,EAAE,CAAC,eAAe,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACjF,8BAA8B,EAAE,CAC9B,WAAW,EAAE,sBAAsB,EACnC,MAAM,EAAE,gBAAgB,CAAC,kBAAkB,KACxC,IAAI,CAAC;CACX,CAAC"}
@@ -12,7 +12,7 @@ export default class LocalAudioTrack extends LocalTrack {
12
12
  * @param userProvidedTrack Signals to the SDK whether or not the mediaTrack should be managed (i.e. released and reacquired) internally by the SDK
13
13
  */
14
14
  constructor(mediaTrack: MediaStreamTrack, constraints?: MediaTrackConstraints, userProvidedTrack?: boolean);
15
- setDeviceId(deviceId: string): Promise<void>;
15
+ setDeviceId(deviceId: ConstrainDOMString): Promise<void>;
16
16
  mute(): Promise<LocalAudioTrack>;
17
17
  unmute(): Promise<LocalAudioTrack>;
18
18
  restartTrack(options?: AudioCaptureOptions): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"LocalAudioTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/LocalAudioTrack.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAoC,MAAM,UAAU,CAAC;AAE9E,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAIrD,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,UAAU;IACrD,gBAAgB;IAChB,UAAU,EAAE,OAAO,CAAS;IAE5B,OAAO,CAAC,SAAS,CAAC,CAAmB;IAErC;;;;;OAKG;gBAED,UAAU,EAAE,gBAAgB,EAC5B,WAAW,CAAC,EAAE,qBAAqB,EACnC,iBAAiB,UAAO;IAMpB,WAAW,CAAC,QAAQ,EAAE,MAAM;IAU5B,IAAI,IAAI,OAAO,CAAC,eAAe,CAAC;IAahC,MAAM,IAAI,OAAO,CAAC,eAAe,CAAC;IAelC,YAAY,CAAC,OAAO,CAAC,EAAE,mBAAmB;cAWhC,OAAO,CAAC,WAAW,CAAC,EAAE,qBAAqB,GAAG,OAAO,CAAC,UAAU,CAAC;IAOjF,YAAY;IAYZ,SAAS,CAAC,aAAa,sBAmBrB;IAEI,cAAc,IAAI,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC;IAyBvD,eAAe;CAStB"}
1
+ {"version":3,"file":"LocalAudioTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/LocalAudioTrack.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAoC,MAAM,UAAU,CAAC;AAE9E,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAIrD,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,UAAU;IACrD,gBAAgB;IAChB,UAAU,EAAE,OAAO,CAAS;IAE5B,OAAO,CAAC,SAAS,CAAC,CAAmB;IAErC;;;;;OAKG;gBAED,UAAU,EAAE,gBAAgB,EAC5B,WAAW,CAAC,EAAE,qBAAqB,EACnC,iBAAiB,UAAO;IAMpB,WAAW,CAAC,QAAQ,EAAE,kBAAkB;IAUxC,IAAI,IAAI,OAAO,CAAC,eAAe,CAAC;IAahC,MAAM,IAAI,OAAO,CAAC,eAAe,CAAC;IAelC,YAAY,CAAC,OAAO,CAAC,EAAE,mBAAmB;cAWhC,OAAO,CAAC,WAAW,CAAC,EAAE,qBAAqB,GAAG,OAAO,CAAC,UAAU,CAAC;IAOjF,YAAY;IAYZ,SAAS,CAAC,aAAa,sBAmBrB;IAEI,cAAc,IAAI,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC;IAyBvD,eAAe;CAStB"}
@@ -32,7 +32,7 @@ export default class LocalVideoTrack extends LocalTrack {
32
32
  unmute(): Promise<LocalVideoTrack>;
33
33
  getSenderStats(): Promise<VideoSenderStats[]>;
34
34
  setPublishingQuality(maxQuality: VideoQuality): void;
35
- setDeviceId(deviceId: string): Promise<void>;
35
+ setDeviceId(deviceId: ConstrainDOMString): Promise<void>;
36
36
  restartTrack(options?: VideoCaptureOptions): Promise<void>;
37
37
  addSimulcastTrack(codec: VideoCodec, encodings?: RTCRtpEncodingParameters[]): SimulcastTrackInfo;
38
38
  setSimulcastTrackSender(codec: VideoCodec, sender: RTCRtpSender): void;
@@ -1 +1 @@
1
- {"version":3,"file":"LocalVideoTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/LocalVideoTrack.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAClF,OAAO,EAAoC,gBAAgB,EAAE,MAAM,UAA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
- * custom video simulcast layers for camera tracks, defaults to h180, h360, h540
51
+ * custom video simulcast layers for camera tracks, defaults to h180, h360
52
52
  * You can specify up to two custom layers that will be used instead of
53
53
  * the LiveKit default layers.
54
54
  * Note: the layers need to be ordered from lowest to highest quality
@@ -136,7 +136,7 @@ declare class Room extends Room_base {
136
136
  * `audiooutput` to set speaker for all incoming audio tracks
137
137
  * @param deviceId
138
138
  */
139
- switchActiveDevice(kind: MediaDeviceKind, deviceId: string): Promise<void>;
139
+ switchActiveDevice(kind: MediaDeviceKind, deviceId: string, exact?: boolean): Promise<void>;
140
140
  private setupLocalParticipantEvents;
141
141
  private recreateEngine;
142
142
  private onTrackAdded;
@@ -38,6 +38,7 @@ export default class LocalParticipant extends Participant {
38
38
  setupEngine(engine: RTCEngine): void;
39
39
  private handleReconnecting;
40
40
  private handleReconnected;
41
+ private handleDisconnected;
41
42
  /**
42
43
  * Enable or disable a participant's camera track.
43
44
  *
@@ -12,7 +12,7 @@ export default class LocalAudioTrack extends LocalTrack {
12
12
  * @param userProvidedTrack Signals to the SDK whether or not the mediaTrack should be managed (i.e. released and reacquired) internally by the SDK
13
13
  */
14
14
  constructor(mediaTrack: MediaStreamTrack, constraints?: MediaTrackConstraints, userProvidedTrack?: boolean);
15
- setDeviceId(deviceId: string): Promise<void>;
15
+ setDeviceId(deviceId: ConstrainDOMString): Promise<void>;
16
16
  mute(): Promise<LocalAudioTrack>;
17
17
  unmute(): Promise<LocalAudioTrack>;
18
18
  restartTrack(options?: AudioCaptureOptions): Promise<void>;
@@ -32,7 +32,7 @@ export default class LocalVideoTrack extends LocalTrack {
32
32
  unmute(): Promise<LocalVideoTrack>;
33
33
  getSenderStats(): Promise<VideoSenderStats[]>;
34
34
  setPublishingQuality(maxQuality: VideoQuality): void;
35
- setDeviceId(deviceId: string): Promise<void>;
35
+ setDeviceId(deviceId: ConstrainDOMString): Promise<void>;
36
36
  restartTrack(options?: VideoCaptureOptions): Promise<void>;
37
37
  addSimulcastTrack(codec: VideoCodec, encodings?: RTCRtpEncodingParameters[]): SimulcastTrackInfo;
38
38
  setSimulcastTrackSender(codec: VideoCodec, sender: RTCRtpSender): void;
@@ -48,7 +48,7 @@ export interface TrackPublishDefaults {
48
48
  */
49
49
  scalabilityMode?: ScalabilityMode;
50
50
  /**
51
- * custom video simulcast layers for camera tracks, defaults to h180, h360, h540
51
+ * custom video simulcast layers for camera tracks, defaults to h180, h360
52
52
  * You can specify up to two custom layers that will be used instead of
53
53
  * the LiveKit default layers.
54
54
  * Note: the layers need to be ordered from lowest to highest quality
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "livekit-client",
3
- "version": "1.6.8",
3
+ "version": "1.7.0",
4
4
  "description": "JavaScript/TypeScript client SDK for LiveKit",
5
5
  "main": "./dist/livekit-client.umd.js",
6
6
  "unpkg": "./dist/livekit-client.umd.js",
package/src/room/Room.ts CHANGED
@@ -616,27 +616,28 @@ class Room extends (EventEmitter as new () => TypedEmitter<RoomEventCallbacks>)
616
616
  * `audiooutput` to set speaker for all incoming audio tracks
617
617
  * @param deviceId
618
618
  */
619
- async switchActiveDevice(kind: MediaDeviceKind, deviceId: string) {
619
+ async switchActiveDevice(kind: MediaDeviceKind, deviceId: string, exact: boolean = false) {
620
+ const deviceConstraint = exact ? { exact: deviceId } : deviceId;
620
621
  if (kind === 'audioinput') {
621
622
  const prevDeviceId = this.options.audioCaptureDefaults!.deviceId;
622
- this.options.audioCaptureDefaults!.deviceId = deviceId;
623
+ this.options.audioCaptureDefaults!.deviceId = deviceConstraint;
623
624
  const tracks = Array.from(this.localParticipant.audioTracks.values()).filter(
624
625
  (track) => track.source === Track.Source.Microphone,
625
626
  );
626
627
  try {
627
- await Promise.all(tracks.map((t) => t.audioTrack?.setDeviceId(deviceId)));
628
+ await Promise.all(tracks.map((t) => t.audioTrack?.setDeviceId(deviceConstraint)));
628
629
  } catch (e) {
629
630
  this.options.audioCaptureDefaults!.deviceId = prevDeviceId;
630
631
  throw e;
631
632
  }
632
633
  } else if (kind === 'videoinput') {
633
634
  const prevDeviceId = this.options.videoCaptureDefaults!.deviceId;
634
- this.options.videoCaptureDefaults!.deviceId = deviceId;
635
+ this.options.videoCaptureDefaults!.deviceId = deviceConstraint;
635
636
  const tracks = Array.from(this.localParticipant.videoTracks.values()).filter(
636
637
  (track) => track.source === Track.Source.Camera,
637
638
  );
638
639
  try {
639
- await Promise.all(tracks.map((t) => t.videoTrack?.setDeviceId(deviceId)));
640
+ await Promise.all(tracks.map((t) => t.videoTrack?.setDeviceId(deviceConstraint)));
640
641
  } catch (e) {
641
642
  this.options.videoCaptureDefaults!.deviceId = prevDeviceId;
642
643
  throw e;
@@ -127,7 +127,8 @@ export default class LocalParticipant extends Participant {
127
127
  .on(EngineEvent.Restarted, this.handleReconnected)
128
128
  .on(EngineEvent.Resumed, this.handleReconnected)
129
129
  .on(EngineEvent.Restarting, this.handleReconnecting)
130
- .on(EngineEvent.Resuming, this.handleReconnecting);
130
+ .on(EngineEvent.Resuming, this.handleReconnecting)
131
+ .on(EngineEvent.Disconnected, this.handleDisconnected);
131
132
  }
132
133
 
133
134
  private handleReconnecting = () => {
@@ -142,6 +143,11 @@ export default class LocalParticipant extends Participant {
142
143
  this.updateTrackSubscriptionPermissions();
143
144
  };
144
145
 
146
+ private handleDisconnected = () => {
147
+ this.reconnectFuture?.reject?.('Got disconnected during publishing attempt');
148
+ this.reconnectFuture = undefined;
149
+ };
150
+
145
151
  /**
146
152
  * Enable or disable a participant's camera track.
147
153
  *
@@ -92,9 +92,6 @@ export default class Participant extends (EventEmitter as new () => TypedEmitter
92
92
  * @returns
93
93
  */
94
94
  getTrack(source: Track.Source): TrackPublication | undefined {
95
- if (source === Track.Source.Unknown) {
96
- return;
97
- }
98
95
  for (const [, pub] of this.tracks) {
99
96
  if (pub.source === source) {
100
97
  return pub;
@@ -28,7 +28,7 @@ export default class LocalAudioTrack extends LocalTrack {
28
28
  this.checkForSilence();
29
29
  }
30
30
 
31
- async setDeviceId(deviceId: string) {
31
+ async setDeviceId(deviceId: ConstrainDOMString) {
32
32
  if (this.constraints.deviceId === deviceId) {
33
33
  return;
34
34
  }
@@ -174,7 +174,7 @@ export default class LocalVideoTrack extends LocalTrack {
174
174
  this.setPublishingLayers(qualities);
175
175
  }
176
176
 
177
- async setDeviceId(deviceId: string) {
177
+ async setDeviceId(deviceId: ConstrainDOMString) {
178
178
  if (this.constraints.deviceId === deviceId) {
179
179
  return;
180
180
  }
@@ -1,6 +1,7 @@
1
1
  import { EventEmitter } from 'events';
2
2
  import type TypedEventEmitter from 'typed-emitter';
3
3
  import type { SignalClient } from '../../api/SignalClient';
4
+ import log from '../../logger';
4
5
  import { TrackSource, TrackType } from '../../proto/livekit_models';
5
6
  import { StreamState as ProtoStreamState } from '../../proto/livekit_rtc';
6
7
  import { TrackEvent } from '../events';
@@ -132,7 +133,11 @@ export abstract class Track extends (EventEmitter as new () => TypedEventEmitter
132
133
  this.emit(TrackEvent.AudioPlaybackStarted);
133
134
  })
134
135
  .catch((e) => {
135
- this.emit(TrackEvent.AudioPlaybackFailed, e);
136
+ if (e.name === 'NotAllowedError') {
137
+ this.emit(TrackEvent.AudioPlaybackFailed, e);
138
+ } else {
139
+ log.warn('could not playback audio', e);
140
+ }
136
141
  // If audio playback isn't allowed make sure we still play back the video
137
142
  if (
138
143
  element &&
@@ -56,7 +56,7 @@ export interface TrackPublishDefaults {
56
56
  scalabilityMode?: ScalabilityMode;
57
57
 
58
58
  /**
59
- * custom video simulcast layers for camera tracks, defaults to h180, h360, h540
59
+ * custom video simulcast layers for camera tracks, defaults to h180, h360
60
60
  * You can specify up to two custom layers that will be used instead of
61
61
  * the LiveKit default layers.
62
62
  * Note: the layers need to be ordered from lowest to highest quality