livekit-client 0.17.4 → 0.17.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/src/room/Room.ts CHANGED
@@ -93,6 +93,14 @@ class Room extends (EventEmitter as new () => TypedEmitter<RoomEventCallbacks>)
93
93
  this.participants = new Map();
94
94
  this.options = options || {};
95
95
 
96
+ switch (this.options?.publishDefaults?.videoCodec) {
97
+ case 'av1':
98
+ case 'vp9':
99
+ this.options.publishDefaults.simulcast = undefined;
100
+ break;
101
+ default:
102
+ }
103
+
96
104
  this.options.audioCaptureDefaults = {
97
105
  ...audioDefaults,
98
106
  ...options?.audioCaptureDefaults,
@@ -198,7 +198,7 @@ export interface AudioPreset {
198
198
  maxBitrate: number;
199
199
  }
200
200
 
201
- export type VideoCodec = 'vp8' | 'h264';
201
+ export type VideoCodec = 'vp8' | 'h264' | 'av1' | 'vp9';
202
202
 
203
203
  export namespace AudioPresets {
204
204
  export const telephone: AudioPreset = {
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
- export const version = '0.17.4';
1
+ export const version = '0.17.5';
2
2
  export const protocolVersion = 7;