livekit-client 2.0.7 → 2.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. package/dist/livekit-client.e2ee.worker.js +1 -1
  2. package/dist/livekit-client.e2ee.worker.js.map +1 -1
  3. package/dist/livekit-client.e2ee.worker.mjs +33 -9
  4. package/dist/livekit-client.e2ee.worker.mjs.map +1 -1
  5. package/dist/livekit-client.esm.mjs +70 -41
  6. package/dist/livekit-client.esm.mjs.map +1 -1
  7. package/dist/livekit-client.umd.js +1 -1
  8. package/dist/livekit-client.umd.js.map +1 -1
  9. package/dist/src/e2ee/constants.d.ts +0 -1
  10. package/dist/src/e2ee/constants.d.ts.map +1 -1
  11. package/dist/src/e2ee/types.d.ts +1 -0
  12. package/dist/src/e2ee/types.d.ts.map +1 -1
  13. package/dist/src/e2ee/worker/FrameCryptor.d.ts.map +1 -1
  14. package/dist/src/e2ee/worker/ParticipantKeyHandler.d.ts.map +1 -1
  15. package/dist/src/index.d.ts +7 -6
  16. package/dist/src/index.d.ts.map +1 -1
  17. package/dist/src/room/PCTransport.d.ts.map +1 -1
  18. package/dist/src/room/RTCEngine.d.ts.map +1 -1
  19. package/dist/src/room/participant/LocalParticipant.d.ts.map +1 -1
  20. package/dist/src/room/participant/publishUtils.d.ts.map +1 -1
  21. package/dist/src/room/track/LocalTrack.d.ts.map +1 -1
  22. package/dist/ts4.2/src/e2ee/constants.d.ts +0 -1
  23. package/dist/ts4.2/src/e2ee/types.d.ts +1 -0
  24. package/dist/ts4.2/src/index.d.ts +7 -6
  25. package/package.json +1 -1
  26. package/src/e2ee/constants.ts +1 -5
  27. package/src/e2ee/types.ts +1 -0
  28. package/src/e2ee/worker/FrameCryptor.ts +12 -0
  29. package/src/e2ee/worker/ParticipantKeyHandler.ts +4 -2
  30. package/src/e2ee/worker/e2ee.worker.ts +24 -3
  31. package/src/index.ts +32 -29
  32. package/src/room/PCTransport.ts +6 -18
  33. package/src/room/RTCEngine.ts +4 -3
  34. package/src/room/participant/LocalParticipant.ts +21 -6
  35. package/src/room/participant/publishUtils.ts +38 -11
  36. package/src/room/track/LocalTrack.ts +11 -9
@@ -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;IACp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,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,gBAAgB,UAAQ;IAQ9D,kBAAkB,CAAC,KAAK,EAAE,MAAM;IAKtC,kBAAkB;IAIlB;;;;OAIG;IACH,SAAS,CAAC,QAAQ,CAAC,EAAE,MAAM;CAG5B"}
@@ -1,4 +1,4 @@
1
- import { DataPacket_Kind, DisconnectReason } from '@livekit/protocol';
1
+ import { DataPacket_Kind, DisconnectReason, SubscriptionError } from '@livekit/protocol';
2
2
  import { LogLevel, LoggerNames, getLogger, setLogExtension, setLogLevel } from './logger';
3
3
  import DefaultReconnectPolicy from './room/DefaultReconnectPolicy';
4
4
  import Room, { ConnectionState } from './room/Room';
@@ -20,19 +20,20 @@ import { TrackPublication } from './room/track/TrackPublication';
20
20
  import type { LiveKitReactNativeInfo } from './room/types';
21
21
  import type { AudioAnalyserOptions } from './room/utils';
22
22
  import { createAudioAnalyser, getEmptyAudioStreamTrack, getEmptyVideoStreamTrack, isBrowserSupported, supportsAV1, supportsAdaptiveStream, supportsDynacast, supportsVP9 } from './room/utils';
23
+ import { getBrowser } from './utils/browserParser';
23
24
  export * from './connectionHelper/ConnectionCheck';
25
+ export * from './e2ee';
24
26
  export * from './options';
25
27
  export * from './room/errors';
26
28
  export * from './room/events';
27
29
  export * from './room/track/Track';
28
30
  export * from './room/track/create';
29
- export * from './room/track/options';
30
31
  export { facingModeFromDeviceLabel, facingModeFromLocalTrack } from './room/track/facingMode';
32
+ export * from './room/track/options';
33
+ export * from './room/track/processor/types';
31
34
  export * from './room/track/types';
32
35
  export type { DataPublishOptions, SimulationScenario } from './room/types';
33
36
  export * from './version';
34
- export * from './e2ee';
35
- export * from './room/track/processor/types';
36
- export { setLogLevel, setLogExtension, getEmptyAudioStreamTrack, getEmptyVideoStreamTrack, isBrowserSupported, supportsAdaptiveStream, supportsDynacast, supportsAV1, supportsVP9, createAudioAnalyser, LogLevel, LoggerNames, getLogger, Room, ConnectionState, DataPacket_Kind, DisconnectReason, Participant, RemoteParticipant, LocalParticipant, LocalAudioTrack, LocalVideoTrack, LocalTrack, LocalTrackPublication, RemoteTrack, RemoteAudioTrack, RemoteVideoTrack, RemoteTrackPublication, TrackPublication, ConnectionQuality, DefaultReconnectPolicy, CriticalTimers, };
37
- export type { ElementInfo, ParticipantTrackPermission, AudioAnalyserOptions, LiveKitReactNativeInfo, };
37
+ export { ConnectionQuality, ConnectionState, CriticalTimers, DataPacket_Kind, DefaultReconnectPolicy, DisconnectReason, LocalAudioTrack, LocalParticipant, LocalTrack, LocalTrackPublication, LocalVideoTrack, LogLevel, LoggerNames, Participant, RemoteAudioTrack, RemoteParticipant, RemoteTrack, RemoteTrackPublication, RemoteVideoTrack, Room, SubscriptionError, TrackPublication, createAudioAnalyser, getBrowser, getEmptyAudioStreamTrack, getEmptyVideoStreamTrack, getLogger, isBrowserSupported, setLogExtension, setLogLevel, supportsAV1, supportsAdaptiveStream, supportsDynacast, supportsVP9, };
38
+ export type { AudioAnalyserOptions, ElementInfo, LiveKitReactNativeInfo, ParticipantTrackPermission, };
38
39
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC1F,OAAO,sBAAsB,MAAM,+BAA+B,CAAC;AACnE,OAAO,IAAI,EAAE,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,gBAAgB,MAAM,qCAAqC,CAAC;AACnE,OAAO,WAAW,EAAE,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAChF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAChG,OAAO,iBAAiB,MAAM,sCAAsC,CAAC;AAC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,CAAC;IAQ9D;;;;;;;;;OASG;IACG,YAAY,CAAC,SAAS,EAAE,cAAc,CAAC,SAAS,CAAC,EAAE,0BAA0B,UAAO;IA6C1F,YAAY;IAIZ;;;;;;OAMG;IACG,aAAa;IAgBnB,SAAS,CAAC,QAAQ,CAAC,aAAa,IAAI,IAAI;CACzC"}
@@ -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;
@@ -1,4 +1,4 @@
1
- import { DataPacket_Kind, DisconnectReason } from '@livekit/protocol';
1
+ import { DataPacket_Kind, DisconnectReason, SubscriptionError } from '@livekit/protocol';
2
2
  import { LogLevel, LoggerNames, getLogger, setLogExtension, setLogLevel } from './logger';
3
3
  import DefaultReconnectPolicy from './room/DefaultReconnectPolicy';
4
4
  import Room, { ConnectionState } from './room/Room';
@@ -20,19 +20,20 @@ import { TrackPublication } from './room/track/TrackPublication';
20
20
  import type { LiveKitReactNativeInfo } from './room/types';
21
21
  import type { AudioAnalyserOptions } from './room/utils';
22
22
  import { createAudioAnalyser, getEmptyAudioStreamTrack, getEmptyVideoStreamTrack, isBrowserSupported, supportsAV1, supportsAdaptiveStream, supportsDynacast, supportsVP9 } from './room/utils';
23
+ import { getBrowser } from './utils/browserParser';
23
24
  export * from './connectionHelper/ConnectionCheck';
25
+ export * from './e2ee';
24
26
  export * from './options';
25
27
  export * from './room/errors';
26
28
  export * from './room/events';
27
29
  export * from './room/track/Track';
28
30
  export * from './room/track/create';
29
- export * from './room/track/options';
30
31
  export { facingModeFromDeviceLabel, facingModeFromLocalTrack } from './room/track/facingMode';
32
+ export * from './room/track/options';
33
+ export * from './room/track/processor/types';
31
34
  export * from './room/track/types';
32
35
  export type { DataPublishOptions, SimulationScenario } from './room/types';
33
36
  export * from './version';
34
- export * from './e2ee';
35
- export * from './room/track/processor/types';
36
- export { setLogLevel, setLogExtension, getEmptyAudioStreamTrack, getEmptyVideoStreamTrack, isBrowserSupported, supportsAdaptiveStream, supportsDynacast, supportsAV1, supportsVP9, createAudioAnalyser, LogLevel, LoggerNames, getLogger, Room, ConnectionState, DataPacket_Kind, DisconnectReason, Participant, RemoteParticipant, LocalParticipant, LocalAudioTrack, LocalVideoTrack, LocalTrack, LocalTrackPublication, RemoteTrack, RemoteAudioTrack, RemoteVideoTrack, RemoteTrackPublication, TrackPublication, ConnectionQuality, DefaultReconnectPolicy, CriticalTimers, };
37
- export type { ElementInfo, ParticipantTrackPermission, AudioAnalyserOptions, LiveKitReactNativeInfo, };
37
+ export { ConnectionQuality, ConnectionState, CriticalTimers, DataPacket_Kind, DefaultReconnectPolicy, DisconnectReason, LocalAudioTrack, LocalParticipant, LocalTrack, LocalTrackPublication, LocalVideoTrack, LogLevel, LoggerNames, Participant, RemoteAudioTrack, RemoteParticipant, RemoteTrack, RemoteTrackPublication, RemoteVideoTrack, Room, SubscriptionError, TrackPublication, createAudioAnalyser, getBrowser, getEmptyAudioStreamTrack, getEmptyVideoStreamTrack, getLogger, isBrowserSupported, setLogExtension, setLogLevel, supportsAV1, supportsAdaptiveStream, supportsDynacast, supportsVP9, };
38
+ export type { AudioAnalyserOptions, ElementInfo, LiveKitReactNativeInfo, ParticipantTrackPermission, };
38
39
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "livekit-client",
3
- "version": "2.0.7",
3
+ "version": "2.0.9",
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 = {
@@ -100,6 +100,18 @@ export class FrameCryptor extends BaseFrameCryptor {
100
100
  * @param keys
101
101
  */
102
102
  setParticipant(id: string, keys: ParticipantKeyHandler) {
103
+ workerLogger.debug('setting new participant on cryptor', {
104
+ ...this.logContext,
105
+ participant: id,
106
+ });
107
+ if (this.participantIdentity) {
108
+ workerLogger.error(
109
+ 'cryptor has already a participant set, participant should have been unset before',
110
+ {
111
+ ...this.logContext,
112
+ },
113
+ );
114
+ }
103
115
  this.participantIdentity = id;
104
116
  this.keys = keys;
105
117
  this.sifGuard.reset();
@@ -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;
@@ -45,7 +45,9 @@ onmessage = (ev) => {
45
45
  break;
46
46
  case 'enable':
47
47
  setEncryptionEnabled(data.enabled, data.participantIdentity);
48
- workerLogger.info('updated e2ee enabled status');
48
+ workerLogger.info(
49
+ `updated e2ee enabled status for ${data.participantIdentity} to ${data.enabled}`,
50
+ );
49
51
  // acknowledge enable call successful
50
52
  postMessage(ev.data);
51
53
  break;
@@ -123,7 +125,19 @@ async function handleRatchetRequest(data: RatchetRequestMessage['data']) {
123
125
  }
124
126
 
125
127
  function getTrackCryptor(participantIdentity: string, trackId: string) {
126
- let cryptor = participantCryptors.find((c) => c.getTrackId() === trackId);
128
+ let cryptors = participantCryptors.filter((c) => c.getTrackId() === trackId);
129
+ if (cryptors.length > 1) {
130
+ const debugInfo = cryptors
131
+ .map((c) => {
132
+ return { participant: c.getParticipantIdentity() };
133
+ })
134
+ .join(',');
135
+ workerLogger.error(
136
+ `Found multiple cryptors for the same trackID ${trackId}. target participant: ${participantIdentity} `,
137
+ { participants: debugInfo },
138
+ );
139
+ }
140
+ let cryptor = cryptors[0];
127
141
  if (!cryptor) {
128
142
  workerLogger.info('creating new cryptor for', { participantIdentity });
129
143
  if (!keyProviderOptions) {
@@ -168,9 +182,16 @@ function getSharedKeyHandler() {
168
182
  }
169
183
 
170
184
  function unsetCryptorParticipant(trackId: string, participantIdentity: string) {
171
- const cryptor = participantCryptors.find(
185
+ const cryptors = participantCryptors.filter(
172
186
  (c) => c.getParticipantIdentity() === participantIdentity && c.getTrackId() === trackId,
173
187
  );
188
+ if (cryptors.length > 1) {
189
+ workerLogger.error('Found multiple cryptors for the same participant and trackID combination', {
190
+ trackId,
191
+ participantIdentity,
192
+ });
193
+ }
194
+ const cryptor = cryptors[0];
174
195
  if (!cryptor) {
175
196
  workerLogger.warn('Could not unset participant on cryptor', { trackId, participantIdentity });
176
197
  } else {
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { DataPacket_Kind, DisconnectReason } from '@livekit/protocol';
1
+ import { DataPacket_Kind, DisconnectReason, SubscriptionError } from '@livekit/protocol';
2
2
  import { LogLevel, LoggerNames, getLogger, setLogExtension, setLogLevel } from './logger';
3
3
  import DefaultReconnectPolicy from './room/DefaultReconnectPolicy';
4
4
  import Room, { ConnectionState } from './room/Room';
@@ -29,57 +29,60 @@ import {
29
29
  supportsDynacast,
30
30
  supportsVP9,
31
31
  } from './room/utils';
32
+ import { getBrowser } from './utils/browserParser';
32
33
 
33
34
  export * from './connectionHelper/ConnectionCheck';
35
+ export * from './e2ee';
34
36
  export * from './options';
35
37
  export * from './room/errors';
36
38
  export * from './room/events';
37
39
  export * from './room/track/Track';
38
40
  export * from './room/track/create';
39
- export * from './room/track/options';
40
41
  export { facingModeFromDeviceLabel, facingModeFromLocalTrack } from './room/track/facingMode';
42
+ export * from './room/track/options';
43
+ export * from './room/track/processor/types';
41
44
  export * from './room/track/types';
42
45
  export type { DataPublishOptions, SimulationScenario } from './room/types';
43
46
  export * from './version';
44
- export * from './e2ee';
45
- export * from './room/track/processor/types';
46
47
  export {
47
- setLogLevel,
48
- setLogExtension,
49
- getEmptyAudioStreamTrack,
50
- getEmptyVideoStreamTrack,
51
- isBrowserSupported,
52
- supportsAdaptiveStream,
53
- supportsDynacast,
54
- supportsAV1,
55
- supportsVP9,
56
- createAudioAnalyser,
57
- LogLevel,
58
- LoggerNames,
59
- getLogger,
60
- Room,
48
+ ConnectionQuality,
61
49
  ConnectionState,
50
+ CriticalTimers,
62
51
  DataPacket_Kind,
52
+ DefaultReconnectPolicy,
63
53
  DisconnectReason,
64
- Participant,
65
- RemoteParticipant,
66
- LocalParticipant,
67
54
  LocalAudioTrack,
68
- LocalVideoTrack,
55
+ LocalParticipant,
69
56
  LocalTrack,
70
57
  LocalTrackPublication,
71
- RemoteTrack,
58
+ LocalVideoTrack,
59
+ LogLevel,
60
+ LoggerNames,
61
+ Participant,
72
62
  RemoteAudioTrack,
73
- RemoteVideoTrack,
63
+ RemoteParticipant,
64
+ RemoteTrack,
74
65
  RemoteTrackPublication,
66
+ RemoteVideoTrack,
67
+ Room,
68
+ SubscriptionError,
75
69
  TrackPublication,
76
- ConnectionQuality,
77
- DefaultReconnectPolicy,
78
- CriticalTimers,
70
+ createAudioAnalyser,
71
+ getBrowser,
72
+ getEmptyAudioStreamTrack,
73
+ getEmptyVideoStreamTrack,
74
+ getLogger,
75
+ isBrowserSupported,
76
+ setLogExtension,
77
+ setLogLevel,
78
+ supportsAV1,
79
+ supportsAdaptiveStream,
80
+ supportsDynacast,
81
+ supportsVP9,
79
82
  };
80
83
  export type {
81
- ElementInfo,
82
- ParticipantTrackPermission,
83
84
  AudioAnalyserOptions,
85
+ ElementInfo,
84
86
  LiveKitReactNativeInfo,
87
+ ParticipantTrackPermission,
85
88
  };
@@ -286,31 +286,19 @@ export default class PCTransport extends EventEmitter {
286
286
  return true;
287
287
  }
288
288
 
289
- let fmtpFound = false;
289
+ const startBitrate = Math.round(trackbr.maxbr * startBitrateForSVC);
290
+
290
291
  for (const fmtp of media.fmtp) {
291
292
  if (fmtp.payload === codecPayload) {
293
+ // if another track's fmtp already is set, we cannot override the bitrate
294
+ // this has the unfortunate consequence of being forced to use the
295
+ // initial track's bitrate for all tracks
292
296
  if (!fmtp.config.includes('x-google-start-bitrate')) {
293
- fmtp.config += `;x-google-start-bitrate=${Math.round(
294
- trackbr.maxbr * startBitrateForSVC,
295
- )}`;
296
- }
297
- if (!fmtp.config.includes('x-google-max-bitrate')) {
298
- fmtp.config += `;x-google-max-bitrate=${trackbr.maxbr}`;
297
+ fmtp.config += `;x-google-start-bitrate=${startBitrate}`;
299
298
  }
300
- fmtpFound = true;
301
299
  break;
302
300
  }
303
301
  }
304
-
305
- if (!fmtpFound) {
306
- media.fmtp.push({
307
- payload: codecPayload,
308
- config: `x-google-start-bitrate=${Math.round(
309
- trackbr.maxbr * startBitrateForSVC,
310
- )};x-google-max-bitrate=${trackbr.maxbr}`,
311
- });
312
- }
313
-
314
302
  return true;
315
303
  });
316
304
  }
@@ -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[] = [];
@@ -732,8 +732,10 @@ export default class LocalParticipant extends Participant {
732
732
  // for svc codecs, disable simulcast and use vp8 for backup codec
733
733
  if (track instanceof LocalVideoTrack) {
734
734
  if (isSVCCodec(videoCodec)) {
735
- // vp9 svc with screenshare has problem to encode, always use L1T3 here
736
- if (track.source === Track.Source.ScreenShare && videoCodec === 'vp9') {
735
+ if (track.source === Track.Source.ScreenShare) {
736
+ // vp9 svc with screenshare cannot encode multiple spatial layers
737
+ // doing so reduces publish resolution to minimal resolution
738
+ opts.scalabilityMode = 'L1T3';
737
739
  // Chrome does not allow more than 5 fps with L1T3, and it has encoding bugs with L3T3
738
740
  // It has a different path for screenshare handling and it seems to be untested/buggy
739
741
  // As a workaround, we are setting contentHint to force it to go through the same
@@ -741,12 +743,10 @@ export default class LocalParticipant extends Participant {
741
743
  // that we need
742
744
  if ('contentHint' in track.mediaStreamTrack) {
743
745
  track.mediaStreamTrack.contentHint = 'motion';
744
- this.log.info('forcing contentHint to motion for screenshare with VP9', {
746
+ this.log.info('forcing contentHint to motion for screenshare with SVC codecs', {
745
747
  ...this.logContext,
746
748
  ...getLogContextFromTrack(track),
747
749
  });
748
- } else {
749
- opts.scalabilityMode = 'L1T3';
750
750
  }
751
751
  }
752
752
  // set scalabilityMode to 'L3T3_KEY' by default
@@ -881,7 +881,8 @@ export default class LocalParticipant extends Participant {
881
881
  maxbr: encodings[0]?.maxBitrate ? encodings[0].maxBitrate / 1000 : 0,
882
882
  });
883
883
  }
884
- } else if (track.codec && isSVCCodec(track.codec) && encodings[0]?.maxBitrate) {
884
+ } else if (track.codec && track.codec == 'av1' && encodings[0]?.maxBitrate) {
885
+ // AV1 requires setting x-start-bitrate in SDP
885
886
  this.engine.pcManager.publisher.setTrackCodecBitrate({
886
887
  cid: req.cid,
887
888
  codec: track.codec,
@@ -890,6 +891,20 @@ export default class LocalParticipant extends Participant {
890
891
  }
891
892
  }
892
893
 
894
+ if (track.kind === Track.Kind.Video && track.source === Track.Source.ScreenShare) {
895
+ // a few of reasons we are forcing this setting without allowing overrides:
896
+ // 1. without this, Chrome seems to aggressively resize the SVC video stating `quality-limitation: bandwidth` even when BW isn't an issue
897
+ // 2. since we are overriding contentHint to motion (to workaround L1T3 publishing), it overrides the default degradationPreference to `balanced`
898
+ try {
899
+ this.log.debug(`setting degradationPreference to maintain-resolution`);
900
+ const params = track.sender.getParameters();
901
+ params.degradationPreference = 'maintain-resolution';
902
+ await track.sender.setParameters(params);
903
+ } catch (e) {
904
+ this.log.warn(`failed to set degradationPreference: ${e}`);
905
+ }
906
+ }
907
+
893
908
  await this.engine.negotiate();
894
909
 
895
910
  if (track instanceof LocalVideoTrack) {