livekit-client 2.0.8 → 2.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,5 @@
1
1
  import type { KeyProviderOptions } from './types';
2
2
  export declare const ENCRYPTION_ALGORITHM = "AES-GCM";
3
- export declare const KEYRING_SIZE = 16;
4
3
  export declare const DECRYPTION_FAILURE_TOLERANCE = 10;
5
4
  export declare const UNENCRYPTED_BYTES: {
6
5
  readonly key: 10;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/e2ee/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,eAAO,MAAM,oBAAoB,YAAY,CAAC;AAK9C,eAAO,MAAM,YAAY,KAAK,CAAC;AAG/B,eAAO,MAAM,4BAA4B,KAAK,CAAC;AAY/C,eAAO,MAAM,iBAAiB;;;;;CAKpB,CAAC;AAIX,eAAO,MAAM,SAAS,KAAK,CAAC;AAG5B,eAAO,MAAM,SAAS,YAAY,CAAC;AAEnC,eAAO,MAAM,IAAI,yBAAyB,CAAC;AAE3C,eAAO,MAAM,qBAAqB,EAAE,kBAK1B,CAAC;AAEX,eAAO,MAAM,aAAa,MAAM,CAAC;AACjC,eAAO,MAAM,gBAAgB,OAAO,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/e2ee/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,eAAO,MAAM,oBAAoB,YAAY,CAAC;AAG9C,eAAO,MAAM,4BAA4B,KAAK,CAAC;AAY/C,eAAO,MAAM,iBAAiB;;;;;CAKpB,CAAC;AAIX,eAAO,MAAM,SAAS,KAAK,CAAC;AAG5B,eAAO,MAAM,SAAS,YAAY,CAAC;AAEnC,eAAO,MAAM,IAAI,yBAAyB,CAAC;AAE3C,eAAO,MAAM,qBAAqB,EAAE,kBAM1B,CAAC;AAEX,eAAO,MAAM,aAAa,MAAM,CAAC;AACjC,eAAO,MAAM,gBAAgB,OAAO,CAAC"}
@@ -103,6 +103,7 @@ export type KeyProviderOptions = {
103
103
  ratchetSalt: string;
104
104
  ratchetWindowSize: number;
105
105
  failureTolerance: number;
106
+ keyringSize: number;
106
107
  };
107
108
  export type KeyInfo = {
108
109
  key: CryptoKey;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/e2ee/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAErD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,WAAY,SAAQ,WAAW;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE;QACJ,kBAAkB,EAAE,kBAAkB,CAAC;QACvC,QAAQ,EAAE,QAAQ,CAAC;KACpB,CAAC;CACH;AAED,MAAM,WAAW,aAAc,SAAQ,WAAW;IAChD,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE;QACJ,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B,WAAW,EAAE,OAAO,CAAC;QACrB,GAAG,EAAE,SAAS,CAAC;QACf,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;CACH;AAED,MAAM,WAAW,kBAAmB,SAAQ,WAAW;IACrD,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,EAAE;QACJ,GAAG,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;QAC7B,mBAAmB,EAAE,MAAM,CAAC;KAC7B,CAAC;CACH;AAED,MAAM,WAAW,iBAAkB,SAAQ,WAAW;IACpD,IAAI,EAAE,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AAO,KAAK,IAAI,CAAC;IACvD,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC"}
@@ -25,10 +25,13 @@ export interface VideoSenderStats extends SenderStats {
25
25
  rid: string;
26
26
  frameWidth: number;
27
27
  frameHeight: number;
28
+ framesPerSecond: number;
28
29
  framesSent: number;
29
- qualityLimitationReason: string;
30
- qualityLimitationResolutionChanges: number;
31
- retransmittedPacketsSent: number;
30
+ qualityLimitationReason?: string;
31
+ qualityLimitationDurations?: Record<string, number>;
32
+ qualityLimitationResolutionChanges?: number;
33
+ retransmittedPacketsSent?: number;
34
+ targetBitrate: number;
32
35
  }
33
36
  interface ReceiverStats {
34
37
  jitterBufferDelay?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../../src/room/stats.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAGrC,UAAU,WAAW;IACnB,6BAA6B;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,oCAAoC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,sCAAsC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,6BAA6B;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACnD,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACnD,IAAI,EAAE,OAAO,CAAC;IAEd,QAAQ,EAAE,MAAM,CAAC;IAEjB,QAAQ,EAAE,MAAM,CAAC;IAEjB,SAAS,EAAE,MAAM,CAAC;IAElB,GAAG,EAAE,MAAM,CAAC;IAEZ,UAAU,EAAE,MAAM,CAAC;IAEnB,W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MAAM,EACd,SAAS,CAAC,EAAE,wBAAwB,EAAE,EACtC,GAAG,CAAC,EAAE,OAAO,GACZ,UAAU,EAAE,CA6Cd"}
@@ -1,6 +1,5 @@
1
1
  import type { KeyProviderOptions } from './types';
2
2
  export declare const ENCRYPTION_ALGORITHM = "AES-GCM";
3
- export declare const KEYRING_SIZE = 16;
4
3
  export declare const DECRYPTION_FAILURE_TOLERANCE = 10;
5
4
  export declare const UNENCRYPTED_BYTES: {
6
5
  readonly key: 10;
@@ -103,6 +103,7 @@ export type KeyProviderOptions = {
103
103
  ratchetSalt: string;
104
104
  ratchetWindowSize: number;
105
105
  failureTolerance: number;
106
+ keyringSize: number;
106
107
  };
107
108
  export type KeyInfo = {
108
109
  key: CryptoKey;
@@ -25,10 +25,13 @@ export interface VideoSenderStats extends SenderStats {
25
25
  rid: string;
26
26
  frameWidth: number;
27
27
  frameHeight: number;
28
+ framesPerSecond: number;
28
29
  framesSent: number;
29
- qualityLimitationReason: string;
30
- qualityLimitationResolutionChanges: number;
31
- retransmittedPacketsSent: number;
30
+ qualityLimitationReason?: string;
31
+ qualityLimitationDurations?: Record<string, number>;
32
+ qualityLimitationResolutionChanges?: number;
33
+ retransmittedPacketsSent?: number;
34
+ targetBitrate: number;
32
35
  }
33
36
  interface ReceiverStats {
34
37
  jitterBufferDelay?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "livekit-client",
3
- "version": "2.0.8",
3
+ "version": "2.0.10",
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",
@@ -2,11 +2,6 @@ import type { KeyProviderOptions } from './types';
2
2
 
3
3
  export const ENCRYPTION_ALGORITHM = 'AES-GCM';
4
4
 
5
- // We use a ringbuffer of keys so we can change them and still decode packets that were
6
- // encrypted with an old key. We use a size of 16 which corresponds to the four bits
7
- // in the frame trailer.
8
- export const KEYRING_SIZE = 16;
9
-
10
5
  // How many consecutive frames can fail decrypting before a particular key gets marked as invalid
11
6
  export const DECRYPTION_FAILURE_TOLERANCE = 10;
12
7
 
@@ -41,6 +36,7 @@ export const KEY_PROVIDER_DEFAULTS: KeyProviderOptions = {
41
36
  ratchetSalt: SALT,
42
37
  ratchetWindowSize: 8,
43
38
  failureTolerance: DECRYPTION_FAILURE_TOLERANCE,
39
+ keyringSize: 16,
44
40
  } as const;
45
41
 
46
42
  export const MAX_SIF_COUNT = 100;
package/src/e2ee/types.ts CHANGED
@@ -128,6 +128,7 @@ export type KeyProviderOptions = {
128
128
  ratchetSalt: string;
129
129
  ratchetWindowSize: number;
130
130
  failureTolerance: number;
131
+ keyringSize: number;
131
132
  };
132
133
 
133
134
  export type KeyInfo = {
@@ -1,7 +1,6 @@
1
1
  import { EventEmitter } from 'events';
2
2
  import type TypedEventEmitter from 'typed-emitter';
3
3
  import { workerLogger } from '../../logger';
4
- import { KEYRING_SIZE } from '../constants';
5
4
  import { KeyHandlerEvent, type ParticipantKeyHandlerCallbacks } from '../events';
6
5
  import type { KeyProviderOptions, KeySet } from '../types';
7
6
  import { deriveKeys, importKey, ratchet } from '../utils';
@@ -39,7 +38,10 @@ export class ParticipantKeyHandler extends (EventEmitter as new () => TypedEvent
39
38
  constructor(participantIdentity: string, keyProviderOptions: KeyProviderOptions) {
40
39
  super();
41
40
  this.currentKeyIndex = 0;
42
- this.cryptoKeyRing = new Array(KEYRING_SIZE).fill(undefined);
41
+ if (keyProviderOptions.keyringSize < 1 || keyProviderOptions.keyringSize > 255) {
42
+ throw new TypeError('Keyring size needs to be between 1 and 256');
43
+ }
44
+ this.cryptoKeyRing = new Array(keyProviderOptions.keyringSize).fill(undefined);
43
45
  this.keyProviderOptions = keyProviderOptions;
44
46
  this.ratchetPromiseMap = new Map();
45
47
  this.participantIdentity = participantIdentity;
@@ -669,12 +669,13 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
669
669
  kind: Track.Kind,
670
670
  videoCodec: VideoCodec,
671
671
  ) {
672
- if (!('getCapabilities' in RTCRtpSender)) {
672
+ if (!('getCapabilities' in RTCRtpReceiver)) {
673
673
  return;
674
674
  }
675
- const cap = RTCRtpSender.getCapabilities(kind);
675
+ // when setting codec preferences, the capabilites need to be read from the RTCRtpReceiver
676
+ const cap = RTCRtpReceiver.getCapabilities(kind);
676
677
  if (!cap) return;
677
- this.log.debug('get sender capabilities', { ...this.logContext, cap });
678
+ this.log.debug('get receiver capabilities', { ...this.logContext, cap });
678
679
  const matched: RTCRtpCodecCapability[] = [];
679
680
  const partialMatched: RTCRtpCodecCapability[] = [];
680
681
  const unmatched: RTCRtpCodecCapability[] = [];
package/src/room/stats.ts CHANGED
@@ -42,14 +42,20 @@ export interface VideoSenderStats extends SenderStats {
42
42
 
43
43
  frameHeight: number;
44
44
 
45
+ framesPerSecond: number;
46
+
45
47
  framesSent: number;
46
48
 
47
49
  // bandwidth, cpu, other, none
48
- qualityLimitationReason: string;
50
+ qualityLimitationReason?: string;
51
+
52
+ qualityLimitationDurations?: Record<string, number>;
53
+
54
+ qualityLimitationResolutionChanges?: number;
49
55
 
50
- qualityLimitationResolutionChanges: number;
56
+ retransmittedPacketsSent?: number;
51
57
 
52
- retransmittedPacketsSent: number;
58
+ targetBitrate: number;
53
59
  }
54
60
 
55
61
  interface ReceiverStats {
@@ -448,6 +448,10 @@ export default abstract class LocalTrack<
448
448
  const unlock = await this.processorLock.lock();
449
449
  try {
450
450
  this.log.debug('setting up processor', this.logContext);
451
+
452
+ this.processorElement =
453
+ this.processorElement ?? (document.createElement(this.kind) as HTMLMediaElement);
454
+
451
455
  const processorOptions = {
452
456
  kind: this.kind,
453
457
  track: this._mediaStreamTrack,
@@ -461,8 +465,6 @@ export default abstract class LocalTrack<
461
465
  if (this.kind === 'unknown') {
462
466
  throw TypeError('cannot set processor on track of unknown kind');
463
467
  }
464
- this.processorElement =
465
- this.processorElement ?? (document.createElement(this.kind) as HTMLMediaElement);
466
468
 
467
469
  attachToElement(this._mediaStreamTrack, this.processorElement);
468
470
  this.processorElement.muted = true;
@@ -180,17 +180,20 @@ export default class LocalVideoTrack extends LocalTrack<Track.Kind.Video> {
180
180
  streamId: v.id,
181
181
  frameHeight: v.frameHeight,
182
182
  frameWidth: v.frameWidth,
183
+ framesPerSecond: v.framesPerSecond,
184
+ framesSent: v.framesSent,
183
185
  firCount: v.firCount,
184
186
  pliCount: v.pliCount,
185
187
  nackCount: v.nackCount,
186
188
  packetsSent: v.packetsSent,
187
189
  bytesSent: v.bytesSent,
188
- framesSent: v.framesSent,
189
- timestamp: v.timestamp,
190
- rid: v.rid ?? v.id,
191
- retransmittedPacketsSent: v.retransmittedPacketsSent,
192
190
  qualityLimitationReason: v.qualityLimitationReason,
191
+ qualityLimitationDurations: v.qualityLimitationDurations,
193
192
  qualityLimitationResolutionChanges: v.qualityLimitationResolutionChanges,
193
+ rid: v.rid ?? v.id,
194
+ retransmittedPacketsSent: v.retransmittedPacketsSent,
195
+ targetBitrate: v.targetBitrate,
196
+ timestamp: v.timestamp,
194
197
  };
195
198
 
196
199
  // locate the appropriate remote-inbound-rtp item
@@ -205,6 +208,8 @@ export default class LocalVideoTrack extends LocalTrack<Track.Kind.Video> {
205
208
  }
206
209
  });
207
210
 
211
+ // make sure highest res layer is always first
212
+ items.sort((a, b) => (b.frameWidth ?? 0) - (a.frameWidth ?? 0));
208
213
  return items;
209
214
  }
210
215