livekit-client 2.0.3 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) 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 +1 -0
  4. package/dist/livekit-client.e2ee.worker.mjs.map +1 -1
  5. package/dist/livekit-client.esm.mjs +90 -26
  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/api/SignalClient.d.ts.map +1 -1
  10. package/dist/src/e2ee/E2eeManager.d.ts.map +1 -1
  11. package/dist/src/e2ee/types.d.ts +2 -0
  12. package/dist/src/e2ee/types.d.ts.map +1 -1
  13. package/dist/src/index.d.ts +2 -2
  14. package/dist/src/index.d.ts.map +1 -1
  15. package/dist/src/logger.d.ts +2 -0
  16. package/dist/src/logger.d.ts.map +1 -1
  17. package/dist/src/room/DeviceManager.d.ts.map +1 -1
  18. package/dist/src/room/RTCEngine.d.ts +1 -0
  19. package/dist/src/room/RTCEngine.d.ts.map +1 -1
  20. package/dist/src/room/Room.d.ts.map +1 -1
  21. package/dist/src/room/events.d.ts +2 -1
  22. package/dist/src/room/events.d.ts.map +1 -1
  23. package/dist/src/room/track/LocalAudioTrack.d.ts.map +1 -1
  24. package/dist/src/room/track/LocalTrack.d.ts +3 -1
  25. package/dist/src/room/track/LocalTrack.d.ts.map +1 -1
  26. package/dist/src/room/track/LocalVideoTrack.d.ts.map +1 -1
  27. package/dist/src/room/track/options.d.ts +10 -0
  28. package/dist/src/room/track/options.d.ts.map +1 -1
  29. package/dist/src/room/track/types.d.ts +4 -0
  30. package/dist/src/room/track/types.d.ts.map +1 -1
  31. package/dist/ts4.2/src/e2ee/types.d.ts +2 -0
  32. package/dist/ts4.2/src/index.d.ts +2 -2
  33. package/dist/ts4.2/src/logger.d.ts +2 -0
  34. package/dist/ts4.2/src/room/RTCEngine.d.ts +1 -0
  35. package/dist/ts4.2/src/room/events.d.ts +2 -1
  36. package/dist/ts4.2/src/room/track/LocalTrack.d.ts +3 -1
  37. package/dist/ts4.2/src/room/track/options.d.ts +10 -0
  38. package/dist/ts4.2/src/room/track/types.d.ts +4 -0
  39. package/package.json +1 -1
  40. package/src/api/SignalClient.ts +1 -0
  41. package/src/e2ee/E2eeManager.ts +2 -1
  42. package/src/e2ee/types.ts +2 -0
  43. package/src/e2ee/worker/e2ee.worker.ts +1 -0
  44. package/src/index.ts +2 -1
  45. package/src/logger.ts +2 -0
  46. package/src/room/DeviceManager.ts +10 -1
  47. package/src/room/RTCEngine.ts +14 -0
  48. package/src/room/Room.ts +11 -0
  49. package/src/room/events.ts +1 -0
  50. package/src/room/participant/LocalParticipant.ts +4 -4
  51. package/src/room/track/LocalAudioTrack.ts +10 -0
  52. package/src/room/track/LocalTrack.ts +20 -3
  53. package/src/room/track/LocalVideoTrack.ts +10 -0
  54. package/src/room/track/options.ts +41 -8
  55. package/src/room/track/types.ts +5 -0
@@ -1 +1 @@
1
- {"version":3,"file":"SignalClient.d.ts","sourceRoot":"","sources":["../../../src/api/SignalClient.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,eAAe,EACf,eAAe,EACf,IAAI,EACJ,WAAW,EACX,UAAU,EACX,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,eAAe,EACf,uBAAuB,EACvB,YAAY,EACZ,YAAY,EAGZ,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EAEb,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,uBAAuB,EAEvB,4BAA4B,EAC5B,oBAAoB,EACpB,SAAS,EACT,eAAe,EACf,sBAAsB,EACtB,wBAAwB,EAGxB,kBAAkB,EAClB,mBAAmB,EAEpB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;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,CAAC,YAAY;CAuCrB"}
@@ -1,3 +1,4 @@
1
+ import type { LogLevel } from '../logger';
1
2
  import type { VideoCodec } from '../room/track/options';
2
3
  import type { BaseKeyProvider } from './KeyProvider';
3
4
  export interface BaseMessage {
@@ -8,6 +9,7 @@ export interface InitMessage extends BaseMessage {
8
9
  kind: 'init';
9
10
  data: {
10
11
  keyProviderOptions: KeyProviderOptions;
12
+ loglevel: LogLevel;
11
13
  };
12
14
  }
13
15
  export interface SetKeyMessage extends BaseMessage {
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/e2ee/types.ts"],"names":[],"mappings":"AAAA,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;KACxC,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,E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;CACH;AAED,MAAM,MAAM,iBAAiB,GACzB,WAAW,GACX,aAAa,GACb,aAAa,GACb,YAAY,GACZ,aAAa,GACb,sBAAsB,GACtB,kBAAkB,GAClB,kBAAkB,GAClB,qBAAqB,GACrB,cAAc,GACd,iBAAiB,GACjB,OAAO,CAAC;AAEZ,MAAM,MAAM,MAAM,GAAG;IAAE,QAAQ,EAAE,SAAS,CAAC;IAAC,aAAa,EAAE,SAAS,CAAA;CAAE,CAAC;AAEvE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,GAAG,EAAE,SAAS,CAAC;IACf,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,WAAW,EAAE,eAAe,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,gBAAgB;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,2BAA2B;IAC3B,aAAa,CAAC,EAAE,SAAS,CAAC;CAC3B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { LogLevel, getLogger, setLogExtension, setLogLevel } from './logger';
1
+ import { LogLevel, LoggerNames, getLogger, setLogExtension, setLogLevel } from './logger';
2
2
  import { DataPacket_Kind, DisconnectReason } from './proto/livekit_models_pb';
3
3
  import DefaultReconnectPolicy from './room/DefaultReconnectPolicy';
4
4
  import Room, { ConnectionState } from './room/Room';
@@ -33,6 +33,6 @@ export type { DataPublishOptions, SimulationScenario } from './room/types';
33
33
  export * from './version';
34
34
  export * from './e2ee';
35
35
  export * from './room/track/processor/types';
36
- export { setLogLevel, setLogExtension, getEmptyAudioStreamTrack, getEmptyVideoStreamTrack, isBrowserSupported, supportsAdaptiveStream, supportsDynacast, supportsAV1, supportsVP9, createAudioAnalyser, LogLevel, getLogger, Room, ConnectionState, DataPacket_Kind, DisconnectReason, Participant, RemoteParticipant, LocalParticipant, LocalAudioTrack, LocalVideoTrack, LocalTrack, LocalTrackPublication, RemoteTrack, RemoteAudioTrack, RemoteVideoTrack, RemoteTrackPublication, TrackPublication, ConnectionQuality, DefaultReconnectPolicy, CriticalTimers, };
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
37
  export type { ElementInfo, ParticipantTrackPermission, AudioAnalyserOptions, LiveKitReactNativeInfo, };
38
38
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC9E,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,MA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qBAAqB,EACrB,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,cAAc,GACf,CAAC;AACF,YAAY,EACV,WAAW,EACX,0BAA0B,EAC1B,oBAAoB,EACpB,sBAAsB,GACvB,CAAC"}
@@ -27,6 +27,8 @@ export type StructuredLogger = {
27
27
  warn: (msg: string, context?: object) => void;
28
28
  error: (msg: string, context?: object) => void;
29
29
  setDefaultLevel: (level: log.LogLevelDesc) => void;
30
+ setLevel: (level: log.LogLevelDesc) => void;
31
+ getLevel: () => number;
30
32
  };
31
33
  declare const _default: StructuredLogger;
32
34
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,UAAU,CAAC;AAEhC,oBAAY,QAAQ;IAClB,KAAK,IAAI;IACT,KAAK,IAAI;IACT,IAAI,IAAI;IACR,IAAI,IAAI;IACR,KAAK,IAAI;IACT,MAAM,IAAI;CACX;AAED,oBAAY,WAAW;IACrB,OAAO,YAAY;IACnB,IAAI,iBAAiB;IACrB,WAAW,wBAAwB;IACnC,KAAK,kBAAkB;IACvB,WAAW,8BAA8B;IACzC,MAAM,mBAAmB;IACzB,MAAM,mBAAmB;IACzB,SAAS,uBAAuB;IAChC,WAAW,yBAAyB;IACpC,IAAI,YAAY;CACjB;AAED,KAAK,cAAc,GAAG,MAAM,OAAO,QAAQ,CAAC;AAE5C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,KAAK,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,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,OAAO,OAAO,aAAa;IAChC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAgB;IAExC,MAAM,CAAC,gBAAgB,EAAE,eAAe,EAAE,CAA+C;IAEzF,MAAM,CAAC,WAAW,IAAI,aAAa;IAOnC,MAAM,CAAC,mBAAmB,EAAE,GAAG,CAAC,eAAe,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC,CAAa;IAE7E,UAAU,CACd,IAAI,CAAC,EAAE,eAAe,EACtB,kBAAkB,GAAE,OAAc,GACjC,OAAO,CAAC,eAAe,EAAE,CAAC;IA+CvB,iBAAiB,CACrB,IAAI,EAAE,eAAe,EACrB,QAAQ,CAAC,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAc9B,OAAO,CAAC,cAAc;CAKvB"}
1
+ {"version":3,"file":"DeviceManager.d.ts","sourceRoot":"","sources":["../../../src/room/DeviceManager.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,OAAO,aAAa;IAChC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAgB;IAExC,MAAM,CAAC,gBAAgB,EAAE,eAAe,EAAE,CAA+C;IAEzF,MAAM,CAAC,WAAW,IAAI,aAAa;IAOnC,MAAM,CAAC,mBAAmB,EAAE,GAAG,CAAC,eAAe,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC,CAAa;IAE7E,UAAU,CACd,IAAI,CAAC,EAAE,eAAe,EACtB,kBAAkB,GAAE,OAAc,GACjC,OAAO,CAAC,eAAe,EAAE,CAAC;IA+CvB,iBAAiB,CACrB,IAAI,EAAE,eAAe,EACrB,QAAQ,CAAC,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAuB9B,OAAO,CAAC,cAAc;CAKvB"}
@@ -153,6 +153,7 @@ export type EngineEventCallbacks = {
153
153
  subscribedQualityUpdate: (update: SubscribedQualityUpdate) => void;
154
154
  localTrackUnpublished: (unpublishedResponse: TrackUnpublishedResponse) => void;
155
155
  remoteMute: (trackSid: string, muted: boolean) => void;
156
+ offline: () => void;
156
157
  };
157
158
  export {};
158
159
  //# sourceMappingURL=RTCEngine.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RTCEngine.d.ts","sourceRoot":"","sources":["../../../src/room/RTCEngine.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EACL,YAAY,EAGb,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAGL,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,eAAe,EAEf,IAAI,IAAI,SAAS,EACjB,WAAW,EACX,SAAS,EACT,UAAU,EACX,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAE5B,KAAK,YAAY,EAIjB,KAAK,iBAAiB,EACtB,uBAAuB,EACvB,KAAK,4BAA4B,EACjC,KAAK,oBAAoB,EAGzB,wBAAwB,EAEzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,WAAyB,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAoB,MAAM,sBAAsB,CAAC;AAE5E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAW7D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,eAAe,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,sBAAsB,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,KAAK,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AAK,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,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;IACrD,kCAAkC,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,WAAW,CAAC,EAAE,WAAW,KAAK,IAAI,CAAC;IAC5F,eAAe,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACxC,qBAAqB,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IACvE,mBAAmB,EAAE,CAAC,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CACxE,CAAC"}
@@ -430,7 +430,8 @@ export declare enum EngineEvent {
430
430
  SubscriptionPermissionUpdate = "subscriptionPermissionUpdate",
431
431
  RemoteMute = "remoteMute",
432
432
  SubscribedQualityUpdate = "subscribedQualityUpdate",
433
- LocalTrackUnpublished = "localTrackUnpublished"
433
+ LocalTrackUnpublished = "localTrackUnpublished",
434
+ Offline = "offline"
434
435
  }
435
436
  export declare enum TrackEvent {
436
437
  Message = "message",
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/room/events.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,oBAAY,SAAS;IACnB;;OAEG;IACH,SAAS,cAAc;IAEvB;;;OAGG;IACH,YAAY,iBAAiB;IAE7B;;OAEG;IACH,WAAW,gBAAgB;IAE3B;;;;;;;;;;OAUG;IACH,YAAY,iBAAiB;IAE7B;;;;OAIG;IACH,sBAAsB,2BAA2B;IAEjD;;OAEG;IACH,mBAAmB,wBAAwB;IAE3C;;;;;;OAMG;IACH,oBAAoB,yBAAyB;IAE7C;;;;;OAKG;IACH,uBAAuB,4BAA4B;IAEnD;;;;;;;;OAQG;IACH,cAAc,mBAAmB;IAEjC;;;;;OAKG;IACH,eAAe,oBAAoB;IAEnC;;;;OAIG;IACH,uBAAuB,4BAA4B;IAEnD;;;;OAIG;IACH,gBAAgB,qBAAqB;IAErC;;;;;OAKG;IACH,iBAAiB,sBAAsB;IAEvC;;;;OAIG;IACH,UAAU,eAAe;IAEzB;;;;OAIG;IACH,YAAY,iBAAiB;IAE7B;;;;;OAKG;IACH,mBAAmB,wBAAwB;IAE3C;;;;;;;;OAQG;IACH,qBAAqB,0BAA0B;IAE/C;;;;;OAKG;IACH,yBAAyB,8BAA8B;IAEvD;;;;;;;OAOG;IACH,qBAAqB,0BAA0B;IAE/C;;;;;;;;OAQG;IACH,0BAA0B,+BAA+B;IAEzD;;;;;OAKG;IACH,sBAAsB,2BAA2B;IAEjD;;;;;;;OAOG;IACH,mBAAmB,wBAAwB;IAE3C;;;;;;OAMG;IACH,YAAY,iBAAiB;IAE7B;;;;;;OAMG;IACH,wBAAwB,6BAA6B;IAErD;;;;;;;;;OASG;IACH,uBAAuB,4BAA4B;IAEnD;;;;;;;;;OASG;IACH,kCAAkC,uCAAuC;IAEzE;;;;;;;OAOG;IACH,8BAA8B,mCAAmC;IAEjE;;;;OAIG;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WAAW,CAAC,QAAQ,EAAE,kBAAkB,GAAG,OAAO,CAAC,OAAO,CAAC;IAa3D,IAAI,IAAI,OAAO,CAAC,OAAO,IAAI,CAAC;IAqB5B,MAAM,IAAI,OAAO,CAAC,OAAO,IAAI,CAAC;IA6B9B,YAAY,CAAC,OAAO,CAAC,EAAE,mBAAmB;cAWhC,OAAO,CAAC,WAAW,CAAC,EAAE,qBAAqB,GAAG,OAAO,CAAC,OAAO,IAAI,CAAC;IAOlF,YAAY;IAYZ,SAAS,CAAC,aAAa,sBAmBrB;IAEI,YAAY,CAAC,SAAS,EAAE,cAAc,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,qBAAqB,CAAC;IA8BrF;;;OAGG;IACH,eAAe,CAAC,YAAY,EAAE,YAAY,GAAG,SAAS;IAIhD,cAAc,IAAI,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC;IAyBvD,eAAe;CAUtB"}
@@ -3,6 +3,7 @@ import { Mutex } from '../utils';
3
3
  import { Track } from './Track';
4
4
  import type { VideoCodec } from './options';
5
5
  import type { TrackProcessor } from './processor/types';
6
+ import type { ReplaceTrackOptions } from './types';
6
7
  export default abstract class LocalTrack<TrackKind extends Track.Kind = Track.Kind> extends Track<TrackKind> {
7
8
  /** @internal */
8
9
  sender?: RTCRtpSender;
@@ -41,7 +42,8 @@ export default abstract class LocalTrack<TrackKind extends Track.Kind = Track.Ki
41
42
  getDeviceId(): Promise<string | undefined>;
42
43
  mute(): Promise<this>;
43
44
  unmute(): Promise<this>;
44
- replaceTrack(track: MediaStreamTrack, userProvidedTrack?: boolean): Promise<this>;
45
+ replaceTrack(track: MediaStreamTrack, options?: ReplaceTrackOptions): Promise<typeof this>;
46
+ replaceTrack(track: MediaStreamTrack, userProvidedTrack?: boolean): Promise<typeof this>;
45
47
  protected restart(constraints?: MediaTrackConstraints): Promise<this>;
46
48
  protected setTrackMuted(muted: boolean): void;
47
49
  protected get needsReAcquisition(): boolean;
@@ -1 +1 @@
1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AO,GACZ,UAAU,EAAE,CA6Cd"}
@@ -220,10 +220,20 @@ export interface VideoEncoding {
220
220
  maxFramerate?: number;
221
221
  priority?: RTCPriorityType;
222
222
  }
223
+ export interface VideoPresetOptions {
224
+ width: number;
225
+ height: number;
226
+ aspectRatio?: number;
227
+ maxBitrate: number;
228
+ maxFramerate?: number;
229
+ priority?: RTCPriorityType;
230
+ }
223
231
  export declare class VideoPreset {
224
232
  encoding: VideoEncoding;
225
233
  width: number;
226
234
  height: number;
235
+ aspectRatio?: number;
236
+ constructor(videoPresetOptions: VideoPresetOptions);
227
237
  constructor(width: number, height: number, maxBitrate: number, maxFramerate?: number, priority?: RTCPriorityType);
228
238
  get resolution(): VideoResolution;
229
239
  }
@@ -1 +1 @@
1
- {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/room/track/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAE9B;;;;;;;;;;OAUG;IACH,WAAW,CAAC,EAAE,IAAI,GAAG,KAAK,GAAG;QAAE,KAAK,EAAE,gBAAgB,CAAC;QAAC,QAAQ,CAAC,EAAE,aAAa,CAAA;KAAE,CAAC;IAEnF;;OAEG;IACH,mBAAmB,CAAC,EAAE,aAAa,CAAC;IAEpC;;;OAGG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB;;;OAGG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAE1B;;OAEG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IAEd;;OAEG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IAEd;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;IAElC;;;;;;;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CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7D,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,CAEtE;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,UAAU,CAAC;AAEjF,yBAAiB,YAAY,CAAC;IACrB,MAAM,SAAS,EAAE,WAEvB,CAAC;IACK,MAAM,MAAM,EAAE,WAEpB,CAAC;IACK,MAAM,KAAK,EAAE,WAEnB,CAAC;IACK,MAAM,WAAW,EAAE,WAEzB,CAAC;IACK,MAAM,gBAAgB,EAAE,WAE9B,CAAC;IACK,MAAM,sBAAsB,EAAE,WAEpC,CAAC;CACH;AAED;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;CAUf,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;CAUjB,CAAC;AAEX,eAAO,MAAM,kBAAkB;;;;;;;;;CAUrB,CAAC"}
@@ -21,4 +21,8 @@ export type AdaptiveStreamSettings = {
21
21
  */
22
22
  pauseVideoInBackground?: boolean;
23
23
  };
24
+ export interface ReplaceTrackOptions {
25
+ userProvidedTrack?: boolean;
26
+ stopProcessor?: boolean;
27
+ }
24
28
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/room/track/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,eAAe,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AAEvD,MAAM,MAAM,UAAU,GAAG,gBAAgB,GAAG,eAAe,CAAC;AAC5D,MAAM,MAAM,UAAU,GAAG,gBAAgB,GAAG,eAAe,CAAC;AAE5D,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;;;;;;OAQG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IACjC;;;OAGG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/room/track/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,eAAe,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AAEvD,MAAM,MAAM,UAAU,GAAG,gBAAgB,GAAG,eAAe,CAAC;AAC5D,MAAM,MAAM,UAAU,GAAG,gBAAgB,GAAG,eAAe,CAAC;AAE5D,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;;;;;;OAQG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IACjC;;;OAGG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAClC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB"}
@@ -1,3 +1,4 @@
1
+ import type { LogLevel } from '../logger';
1
2
  import type { VideoCodec } from '../room/track/options';
2
3
  import type { BaseKeyProvider } from './KeyProvider';
3
4
  export interface BaseMessage {
@@ -8,6 +9,7 @@ export interface InitMessage extends BaseMessage {
8
9
  kind: 'init';
9
10
  data: {
10
11
  keyProviderOptions: KeyProviderOptions;
12
+ loglevel: LogLevel;
11
13
  };
12
14
  }
13
15
  export interface SetKeyMessage extends BaseMessage {
@@ -1,4 +1,4 @@
1
- import { LogLevel, getLogger, setLogExtension, setLogLevel } from './logger';
1
+ import { LogLevel, LoggerNames, getLogger, setLogExtension, setLogLevel } from './logger';
2
2
  import { DataPacket_Kind, DisconnectReason } from './proto/livekit_models_pb';
3
3
  import DefaultReconnectPolicy from './room/DefaultReconnectPolicy';
4
4
  import Room, { ConnectionState } from './room/Room';
@@ -33,6 +33,6 @@ export type { DataPublishOptions, SimulationScenario } from './room/types';
33
33
  export * from './version';
34
34
  export * from './e2ee';
35
35
  export * from './room/track/processor/types';
36
- export { setLogLevel, setLogExtension, getEmptyAudioStreamTrack, getEmptyVideoStreamTrack, isBrowserSupported, supportsAdaptiveStream, supportsDynacast, supportsAV1, supportsVP9, createAudioAnalyser, LogLevel, getLogger, Room, ConnectionState, DataPacket_Kind, DisconnectReason, Participant, RemoteParticipant, LocalParticipant, LocalAudioTrack, LocalVideoTrack, LocalTrack, LocalTrackPublication, RemoteTrack, RemoteAudioTrack, RemoteVideoTrack, RemoteTrackPublication, TrackPublication, ConnectionQuality, DefaultReconnectPolicy, CriticalTimers, };
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
37
  export type { ElementInfo, ParticipantTrackPermission, AudioAnalyserOptions, LiveKitReactNativeInfo, };
38
38
  //# sourceMappingURL=index.d.ts.map
@@ -27,6 +27,8 @@ export type StructuredLogger = {
27
27
  warn: (msg: string, context?: object) => void;
28
28
  error: (msg: string, context?: object) => void;
29
29
  setDefaultLevel: (level: log.LogLevelDesc) => void;
30
+ setLevel: (level: log.LogLevelDesc) => void;
31
+ getLevel: () => number;
30
32
  };
31
33
  declare const _default: StructuredLogger;
32
34
  export default _default;
@@ -154,6 +154,7 @@ export type EngineEventCallbacks = {
154
154
  subscribedQualityUpdate: (update: SubscribedQualityUpdate) => void;
155
155
  localTrackUnpublished: (unpublishedResponse: TrackUnpublishedResponse) => void;
156
156
  remoteMute: (trackSid: string, muted: boolean) => void;
157
+ offline: () => void;
157
158
  };
158
159
  export {};
159
160
  //# sourceMappingURL=RTCEngine.d.ts.map
@@ -430,7 +430,8 @@ export declare enum EngineEvent {
430
430
  SubscriptionPermissionUpdate = "subscriptionPermissionUpdate",
431
431
  RemoteMute = "remoteMute",
432
432
  SubscribedQualityUpdate = "subscribedQualityUpdate",
433
- LocalTrackUnpublished = "localTrackUnpublished"
433
+ LocalTrackUnpublished = "localTrackUnpublished",
434
+ Offline = "offline"
434
435
  }
435
436
  export declare enum TrackEvent {
436
437
  Message = "message",
@@ -3,6 +3,7 @@ import { Mutex } from '../utils';
3
3
  import { Track } from './Track';
4
4
  import type { VideoCodec } from './options';
5
5
  import type { TrackProcessor } from './processor/types';
6
+ import type { ReplaceTrackOptions } from './types';
6
7
  export default abstract class LocalTrack<TrackKind extends Track.Kind = Track.Kind> extends Track<TrackKind> {
7
8
  /** @internal */
8
9
  sender?: RTCRtpSender;
@@ -41,7 +42,8 @@ export default abstract class LocalTrack<TrackKind extends Track.Kind = Track.Ki
41
42
  getDeviceId(): Promise<string | undefined>;
42
43
  mute(): Promise<this>;
43
44
  unmute(): Promise<this>;
44
- replaceTrack(track: MediaStreamTrack, userProvidedTrack?: boolean): Promise<this>;
45
+ replaceTrack(track: MediaStreamTrack, options?: ReplaceTrackOptions): Promise<typeof this>;
46
+ replaceTrack(track: MediaStreamTrack, userProvidedTrack?: boolean): Promise<typeof this>;
45
47
  protected restart(constraints?: MediaTrackConstraints): Promise<this>;
46
48
  protected setTrackMuted(muted: boolean): void;
47
49
  protected get needsReAcquisition(): boolean;
@@ -220,10 +220,20 @@ export interface VideoEncoding {
220
220
  maxFramerate?: number;
221
221
  priority?: RTCPriorityType;
222
222
  }
223
+ export interface VideoPresetOptions {
224
+ width: number;
225
+ height: number;
226
+ aspectRatio?: number;
227
+ maxBitrate: number;
228
+ maxFramerate?: number;
229
+ priority?: RTCPriorityType;
230
+ }
223
231
  export declare class VideoPreset {
224
232
  encoding: VideoEncoding;
225
233
  width: number;
226
234
  height: number;
235
+ aspectRatio?: number;
236
+ constructor(videoPresetOptions: VideoPresetOptions);
227
237
  constructor(width: number, height: number, maxBitrate: number, maxFramerate?: number, priority?: RTCPriorityType);
228
238
  get resolution(): VideoResolution;
229
239
  }
@@ -21,4 +21,8 @@ export type AdaptiveStreamSettings = {
21
21
  */
22
22
  pauseVideoInBackground?: boolean;
23
23
  };
24
+ export interface ReplaceTrackOptions {
25
+ userProvidedTrack?: boolean;
26
+ stopProcessor?: boolean;
27
+ }
24
28
  //# sourceMappingURL=types.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "livekit-client",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
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",
@@ -283,6 +283,7 @@ export class SignalClient {
283
283
 
284
284
  this.ws.onerror = async (ev: Event) => {
285
285
  if (this.state !== SignalConnectionState.CONNECTED) {
286
+ this.state = SignalConnectionState.DISCONNECTED;
286
287
  clearTimeout(wsTimeout);
287
288
  try {
288
289
  const resp = await fetch(`http${url.substring(2)}/validate${params}`);
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter } from 'events';
2
2
  import type TypedEventEmitter from 'typed-emitter';
3
- import log from '../logger';
3
+ import log, { LogLevel, workerLogger } from '../logger';
4
4
  import { Encryption_Type, TrackInfo } from '../proto/livekit_models_pb';
5
5
  import type RTCEngine from '../room/RTCEngine';
6
6
  import type Room from '../room/Room';
@@ -68,6 +68,7 @@ export class E2EEManager extends (EventEmitter as new () => TypedEventEmitter<E2
68
68
  kind: 'init',
69
69
  data: {
70
70
  keyProviderOptions: this.keyProvider.getOptions(),
71
+ loglevel: workerLogger.getLevel() as LogLevel,
71
72
  },
72
73
  };
73
74
  if (this.worker) {
package/src/e2ee/types.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import type { LogLevel } from '../logger';
1
2
  import type { VideoCodec } from '../room/track/options';
2
3
  import type { BaseKeyProvider } from './KeyProvider';
3
4
 
@@ -10,6 +11,7 @@ export interface InitMessage extends BaseMessage {
10
11
  kind: 'init';
11
12
  data: {
12
13
  keyProviderOptions: KeyProviderOptions;
14
+ loglevel: LogLevel;
13
15
  };
14
16
  }
15
17
 
@@ -32,6 +32,7 @@ onmessage = (ev) => {
32
32
 
33
33
  switch (kind) {
34
34
  case 'init':
35
+ workerLogger.setLevel(data.loglevel);
35
36
  workerLogger.info('worker initialized');
36
37
  keyProviderOptions = data.keyProviderOptions;
37
38
  useSharedKey = !!data.keyProviderOptions.sharedKey;
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { LogLevel, getLogger, setLogExtension, setLogLevel } from './logger';
1
+ import { LogLevel, LoggerNames, getLogger, setLogExtension, setLogLevel } from './logger';
2
2
  import { DataPacket_Kind, DisconnectReason } from './proto/livekit_models_pb';
3
3
  import DefaultReconnectPolicy from './room/DefaultReconnectPolicy';
4
4
  import Room, { ConnectionState } from './room/Room';
@@ -55,6 +55,7 @@ export {
55
55
  supportsVP9,
56
56
  createAudioAnalyser,
57
57
  LogLevel,
58
+ LoggerNames,
58
59
  getLogger,
59
60
  Room,
60
61
  ConnectionState,
package/src/logger.ts CHANGED
@@ -31,6 +31,8 @@ export type StructuredLogger = {
31
31
  warn: (msg: string, context?: object) => void;
32
32
  error: (msg: string, context?: object) => void;
33
33
  setDefaultLevel: (level: log.LogLevelDesc) => void;
34
+ setLevel: (level: log.LogLevelDesc) => void;
35
+ getLevel: () => number;
34
36
  };
35
37
 
36
38
  let livekitLogger = log.getLogger('livekit');
@@ -80,7 +80,16 @@ export default class DeviceManager {
80
80
  // device has been chosen
81
81
  const devices = await this.getDevices(kind);
82
82
 
83
- const device = devices.find((d) => d.groupId === groupId && d.deviceId !== defaultId);
83
+ // `default` devices will have the same groupId as the entry with the actual device id so we store the counts for each group id
84
+ const groupIdCounts = new Map(devices.map((d) => [d.groupId, 0]));
85
+
86
+ devices.forEach((d) => groupIdCounts.set(d.groupId, (groupIdCounts.get(d.groupId) ?? 0) + 1));
87
+
88
+ const device = devices.find(
89
+ (d) =>
90
+ (groupId === d.groupId || (groupIdCounts.get(d.groupId) ?? 0) > 1) &&
91
+ d.deviceId !== defaultId,
92
+ );
84
93
 
85
94
  return device?.deviceId;
86
95
  }
@@ -418,6 +418,19 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
418
418
  );
419
419
  }
420
420
  }
421
+
422
+ // detect cases where both signal client and peer connection are severed and assume that user has lost network connection
423
+ const isSignalSevered =
424
+ this.client.isDisconnected ||
425
+ this.client.currentState === SignalConnectionState.RECONNECTING;
426
+ const isPCSevered = [
427
+ PCTransportState.FAILED,
428
+ PCTransportState.CLOSING,
429
+ PCTransportState.CLOSED,
430
+ ].includes(connectionState);
431
+ if (isSignalSevered && isPCSevered && !this._isClosed) {
432
+ this.emit(EngineEvent.Offline);
433
+ }
421
434
  };
422
435
  this.pcManager.onTrack = (ev: RTCTrackEvent) => {
423
436
  this.emit(EngineEvent.MediaTrackAdded, ev.track, ev.streams[0], ev.receiver);
@@ -1400,4 +1413,5 @@ export type EngineEventCallbacks = {
1400
1413
  subscribedQualityUpdate: (update: SubscribedQualityUpdate) => void;
1401
1414
  localTrackUnpublished: (unpublishedResponse: TrackUnpublishedResponse) => void;
1402
1415
  remoteMute: (trackSid: string, muted: boolean) => void;
1416
+ offline: () => void;
1403
1417
  };
package/src/room/Room.ts CHANGED
@@ -349,6 +349,11 @@ class Room extends (EventEmitter as new () => TypedEmitter<RoomEventCallbacks>)
349
349
  })
350
350
  .on(EngineEvent.Restarting, this.handleRestarting)
351
351
  .on(EngineEvent.SignalRestarted, this.handleSignalRestarted)
352
+ .on(EngineEvent.Offline, () => {
353
+ if (this.setAndEmitConnectionState(ConnectionState.Reconnecting)) {
354
+ this.emit(RoomEvent.Reconnecting);
355
+ }
356
+ })
352
357
  .on(EngineEvent.DCBufferStatusChanged, (status, kind) => {
353
358
  this.emit(RoomEvent.DCBufferStatusChanged, status, kind);
354
359
  });
@@ -865,6 +870,7 @@ class Room extends (EventEmitter as new () => TypedEmitter<RoomEventCallbacks>)
865
870
  }
866
871
 
867
872
  private onPageLeave = async () => {
873
+ this.log.info('Page leave detected, disconnecting', this.logContext);
868
874
  await this.disconnect();
869
875
  };
870
876
 
@@ -1042,6 +1048,11 @@ class Room extends (EventEmitter as new () => TypedEmitter<RoomEventCallbacks>)
1042
1048
  ) {
1043
1049
  throw new Error('cannot switch audio output, setSinkId not supported');
1044
1050
  }
1051
+ if (this.options.webAudioMix) {
1052
+ // setting `default` for web audio output doesn't work, so we need to normalize the id before
1053
+ deviceId =
1054
+ (await DeviceManager.getInstance().normalizeDeviceId('audiooutput', deviceId)) ?? '';
1055
+ }
1045
1056
  this.options.audioOutput ??= {};
1046
1057
  const prevDeviceId = this.options.audioOutput.deviceId;
1047
1058
  this.options.audioOutput.deviceId = deviceId;