livekit-client 1.14.0 → 1.14.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) 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 +25 -44
  4. package/dist/livekit-client.e2ee.worker.mjs.map +1 -1
  5. package/dist/livekit-client.esm.mjs +418 -206
  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/E2eeManager.d.ts.map +1 -1
  10. package/dist/src/e2ee/utils.d.ts +0 -1
  11. package/dist/src/e2ee/utils.d.ts.map +1 -1
  12. package/dist/src/e2ee/worker/FrameCryptor.d.ts.map +1 -1
  13. package/dist/src/e2ee/worker/ParticipantKeyHandler.d.ts.map +1 -1
  14. package/dist/src/proto/livekit_models_pb.d.ts +87 -11
  15. package/dist/src/proto/livekit_models_pb.d.ts.map +1 -1
  16. package/dist/src/proto/livekit_rtc_pb.d.ts +0 -4
  17. package/dist/src/proto/livekit_rtc_pb.d.ts.map +1 -1
  18. package/dist/src/room/PCTransport.d.ts +20 -1
  19. package/dist/src/room/PCTransport.d.ts.map +1 -1
  20. package/dist/src/room/RTCEngine.d.ts +1 -1
  21. package/dist/src/room/RTCEngine.d.ts.map +1 -1
  22. package/dist/src/room/Room.d.ts.map +1 -1
  23. package/dist/src/room/defaults.d.ts +1 -0
  24. package/dist/src/room/defaults.d.ts.map +1 -1
  25. package/dist/src/room/events.d.ts +1 -1
  26. package/dist/src/room/participant/LocalParticipant.d.ts.map +1 -1
  27. package/dist/src/room/timers.d.ts +1 -1
  28. package/dist/src/room/timers.d.ts.map +1 -1
  29. package/dist/src/room/track/LocalAudioTrack.d.ts +1 -1
  30. package/dist/src/room/track/LocalAudioTrack.d.ts.map +1 -1
  31. package/dist/src/room/track/LocalTrack.d.ts +3 -3
  32. package/dist/src/room/track/LocalTrack.d.ts.map +1 -1
  33. package/dist/src/room/track/LocalVideoTrack.d.ts +2 -1
  34. package/dist/src/room/track/LocalVideoTrack.d.ts.map +1 -1
  35. package/dist/src/room/track/RemoteTrack.d.ts.map +1 -1
  36. package/dist/src/room/track/options.d.ts +6 -1
  37. package/dist/src/room/track/options.d.ts.map +1 -1
  38. package/dist/src/room/track/utils.d.ts +2 -1
  39. package/dist/src/room/track/utils.d.ts.map +1 -1
  40. package/dist/src/room/utils.d.ts.map +1 -1
  41. package/dist/src/utils/cloneDeep.d.ts +2 -0
  42. package/dist/src/utils/cloneDeep.d.ts.map +1 -0
  43. package/dist/src/version.d.ts +1 -1
  44. package/dist/src/version.d.ts.map +1 -1
  45. package/dist/ts4.2/src/e2ee/utils.d.ts +0 -1
  46. package/dist/ts4.2/src/proto/livekit_models_pb.d.ts +87 -11
  47. package/dist/ts4.2/src/proto/livekit_rtc_pb.d.ts +0 -4
  48. package/dist/ts4.2/src/room/PCTransport.d.ts +20 -1
  49. package/dist/ts4.2/src/room/RTCEngine.d.ts +1 -1
  50. package/dist/ts4.2/src/room/defaults.d.ts +1 -0
  51. package/dist/ts4.2/src/room/events.d.ts +1 -1
  52. package/dist/ts4.2/src/room/timers.d.ts +1 -1
  53. package/dist/ts4.2/src/room/track/LocalAudioTrack.d.ts +1 -1
  54. package/dist/ts4.2/src/room/track/LocalTrack.d.ts +3 -3
  55. package/dist/ts4.2/src/room/track/LocalVideoTrack.d.ts +2 -1
  56. package/dist/ts4.2/src/room/track/options.d.ts +6 -1
  57. package/dist/ts4.2/src/room/track/utils.d.ts +1 -0
  58. package/dist/ts4.2/src/utils/cloneDeep.d.ts +2 -0
  59. package/dist/ts4.2/src/version.d.ts +1 -1
  60. package/package.json +14 -14
  61. package/src/connectionHelper/checks/webrtc.ts +1 -1
  62. package/src/e2ee/E2eeManager.ts +2 -1
  63. package/src/e2ee/utils.ts +0 -10
  64. package/src/e2ee/worker/FrameCryptor.ts +13 -14
  65. package/src/e2ee/worker/ParticipantKeyHandler.ts +4 -5
  66. package/src/e2ee/worker/e2ee.worker.ts +3 -1
  67. package/src/proto/livekit_models_pb.ts +140 -15
  68. package/src/proto/livekit_rtc_pb.ts +1 -7
  69. package/src/room/PCTransport.ts +116 -1
  70. package/src/room/RTCEngine.ts +49 -85
  71. package/src/room/Room.ts +15 -11
  72. package/src/room/defaults.ts +4 -2
  73. package/src/room/events.ts +1 -1
  74. package/src/room/participant/LocalParticipant.ts +45 -56
  75. package/src/room/track/LocalAudioTrack.ts +1 -1
  76. package/src/room/track/LocalTrack.ts +8 -5
  77. package/src/room/track/LocalVideoTrack.ts +2 -1
  78. package/src/room/track/RemoteTrack.ts +8 -6
  79. package/src/room/track/options.ts +7 -7
  80. package/src/room/track/utils.ts +17 -8
  81. package/src/room/utils.ts +3 -0
  82. package/src/utils/cloneDeep.test.ts +54 -0
  83. package/src/utils/cloneDeep.ts +11 -0
  84. package/src/version.ts +1 -1
@@ -196,7 +196,7 @@ export declare enum RoomEvent {
196
196
  * be emitted.
197
197
  *
198
198
  * args: (pub: [[RemoteTrackPublication]],
199
- * status: [[TrackPublication.SubscriptionStatus]],
199
+ * status: [[TrackPublication.PermissionStatus]],
200
200
  * participant: [[RemoteParticipant]])
201
201
  */
202
202
  TrackSubscriptionPermissionChanged = "trackSubscriptionPermissionChanged",
@@ -1 +1 @@
1
- {"version":3,"file":"LocalParticipant.d.ts","sourceRoot":"","sources":["../../../../src/room/participant/LocalParticipant.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAEL,eAAe,EAEf,eAAe,EACf,qBAAqB,EAEtB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAEL,eAAe,EAIf,sBAAsB,EAEvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,SAAS,MAAM,cAAc,CAAC;AAI1C,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,qBAAqB,MAAM,gCAAgC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AAgB;IAChB,mBAAmB,IAAI,sBAAsB,EAAE;IAe/C,gBAAgB;IAChB,gBAAgB,IAAI,eAAe,EAAE;CAsBtC"}
@@ -6,7 +6,7 @@
6
6
  */
7
7
  export default class CriticalTimers {
8
8
  static setTimeout: (callback: (args: void) => void, ms?: number | undefined) => NodeJS.Timeout;
9
- static setInterval: (callback: (args: void) => void, ms?: number | undefined) => NodeJS.Timer;
9
+ static setInterval: (callback: (args: void) => void, ms?: number | undefined) => NodeJS.Timeout;
10
10
  static clearTimeout: (timeoutId: string | number | NodeJS.Timeout | undefined) => void;
11
11
  static clearInterval: (intervalId: string | number | NodeJS.Timeout | undefined) => void;
12
12
  }
@@ -1 +1 @@
1
- {"version":3,"file":"timers.d.ts","sourceRoot":"","sources":["../../../src/room/timers.ts"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,cAAc;IAEjC,MAAM,CAAC,UAAU,8EAAmE;IAGpF,MAAM,CAAC,WAAW,4EAAqE;IAEvF,MAAM,CAAC,YAAY,oEAAuE;IAE1F,MAAM,CAAC,aAAa,qEAAyE;CAC9F"}
1
+ {"version":3,"file":"timers.d.ts","sourceRoot":"","sources":["../../../src/room/timers.ts"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,cAAc;IAEjC,MAAM,CAAC,UAAU,8EAAmE;IAGpF,MAAM,CAAC,WAAW,8EAAqE;IAEvF,MAAM,CAAC,YAAY,oEAAuE;IAE1F,MAAM,CAAC,aAAa,qEAAyE;CAC9F"}
@@ -21,7 +21,7 @@ export default class LocalAudioTrack extends LocalTrack {
21
21
  protected restart(constraints?: MediaTrackConstraints): Promise<LocalTrack>;
22
22
  startMonitor(): void;
23
23
  protected monitorSender: () => Promise<void>;
24
- setProcessor(processor: TrackProcessor<typeof this.kind>): Promise<void>;
24
+ setProcessor(processor: TrackProcessor<this['kind']>): Promise<void>;
25
25
  /**
26
26
  * @internal
27
27
  * @experimental
@@ -1 +1 @@
1
- {"version":3,"file":"LocalAudioTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/LocalAudioTrack.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGxD,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,UAAU;IACrD,gBAAgB;IAChB,UAAU,EAAE,OAAO,CAAS;IAE5B,OAAO,CAAC,YAAY,CAAC,CAAe;IAEpC,OAAO,CAAC,SAAS,CAAC,CAAmB;IAErC;;;;;OAKG;gBAED,UAAU,EAAE,gBAAgB,EAC5B,WAAW,CAAC,EAAE,qBAAqB,EACnC,iBAAiB,UAAO,EACxB,YAAY,CAAC,EAAE,YAAY;IAOvB,WAAW,CAAC,QAAQ,EAAE,kBAAkB,GAAG,OAAO,CAAC,OAAO,CAAC;IAa3D,IAAI,IAAI,OAAO,CAAC,eAAe,CAAC;IAgBhC,MAAM,IAAI,OAAO,CAAC,eAAe,CAAC;IAwBlC,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,YAAY,CAAC,SAAS,EAAE,cAAc,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC;IAgC9D;;;OAGG;IACH,eAAe,CAAC,YAAY,EAAE,YAAY,GAAG,SAAS;IAIhD,cAAc,IAAI,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC;IAyBvD,eAAe;CAUtB"}
1
+ {"version":3,"file":"LocalAudioTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/LocalAudioTrack.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGxD,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,UAAU;IACrD,gBAAgB;IAChB,UAAU,EAAE,OAAO,CAAS;IAE5B,OAAO,CAAC,YAAY,CAAC,CAAe;IAEpC,OAAO,CAAC,SAAS,CAAC,CAAmB;IAErC;;;;;OAKG;gBAED,UAAU,EAAE,gBAAgB,EAC5B,WAAW,CAAC,EAAE,qBAAqB,EACnC,iBAAiB,UAAO,EACxB,YAAY,CAAC,EAAE,YAAY;IAOvB,WAAW,CAAC,QAAQ,EAAE,kBAAkB,GAAG,OAAO,CAAC,OAAO,CAAC;IAa3D,IAAI,IAAI,OAAO,CAAC,eAAe,CAAC;IAgBhC,MAAM,IAAI,OAAO,CAAC,eAAe,CAAC;IAwBlC,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,YAAY,CAAC,SAAS,EAAE,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAgC1D;;;OAGG;IACH,eAAe,CAAC,YAAY,EAAE,YAAY,GAAG,SAAS;IAIhD,cAAc,IAAI,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC;IAyBvD,eAAe;CAUtB"}
@@ -14,7 +14,7 @@ export default abstract class LocalTrack extends Track {
14
14
  protected muteLock: Mutex;
15
15
  protected pauseUpstreamLock: Mutex;
16
16
  protected processorElement?: HTMLMediaElement;
17
- protected processor?: TrackProcessor<typeof this.kind>;
17
+ protected processor?: TrackProcessor<this['kind']>;
18
18
  protected processorLock: Mutex;
19
19
  /**
20
20
  *
@@ -73,8 +73,8 @@ export default abstract class LocalTrack extends Track {
73
73
  * @param showProcessedStreamLocally
74
74
  * @returns
75
75
  */
76
- setProcessor(processor: TrackProcessor<typeof this.kind>, showProcessedStreamLocally?: boolean): Promise<void>;
77
- getProcessor(): TrackProcessor<Track.Kind, import("./processor/types").ProcessorOptions<Track.Kind>> | undefined;
76
+ setProcessor(processor: TrackProcessor<this['kind']>, showProcessedStreamLocally?: boolean): Promise<void>;
77
+ getProcessor(): TrackProcessor<this["kind"], import("./processor/types").ProcessorOptions<this["kind"]>> | undefined;
78
78
  /**
79
79
  * Stops the track processor
80
80
  * See https://github.com/livekit/track-processors-js for example usage
@@ -1 +1 @@
1
- {"version":3,"file":"LocalTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/LocalTrack.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,EAAoC,MAAM,UAAU,CAAC;AACnE,OAAO,EAAE,KAAK,EAAgC,MAAM,SAAS,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAIxD,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,UAAW,SAAQ,KAAK;IACpD,gBAAgB;IAChB,MAAM,CAAC,EAAE,YAAY,CAAC;IAEtB,gBAAgB;IAChB,KAAK,CAAC,EAAE,UAAU,CAAC;IAEnB,IAAI,WAAW,0BAEd;IAED,SAAS,CAAC,YAAY,EAAE,qBAAqB,CAAC;IAE9C,SAAS,CAAC,cAAc,EAAE,OAAO,CAAC;IAElC,SAAS,CAAC,cAAc,EAAE,OAAO,CAAC;IAElC,SAAS,CAAC,QAAQ,EAAE,KAAK,CAAC;IAE1B,SAAS,CAAC,iBAAiB,EAAE,KAAK,CAAC;IAEnC,SAAS,CAAC,gBAAgB,CAAC,EAA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ACG,aAAa;IAanB,SAAS,CAAC,QAAQ,CAAC,aAAa,IAAI,IAAI;CACzC"}
@@ -44,7 +44,8 @@ export default class LocalVideoTrack extends LocalTrack {
44
44
  setSimulcastTrackSender(codec: VideoCodec, sender: RTCRtpSender): void;
45
45
  /**
46
46
  * @internal
47
- * Sets codecs that should be publishing
47
+ * Sets codecs that should be publishing, returns new codecs that have not yet
48
+ * been published
48
49
  */
49
50
  setPublishingCodecs(codecs: SubscribedCodec[]): Promise<VideoCodec[]>;
50
51
  /**
@@ -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,+BAA+B,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAEhF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAGjD,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGxD,qBAAa,kBAAkB;IAC7B,KAAK,EAAE,UAAU,CAAC;IAElB,gBAAgB,EAAE,gBAAgB,CAAC;IAEnC,MAAM,CAAC,EAAE,YAAY,CAAC;IAEtB,SAAS,CAAC,EAAE,wBAAwB,EAAE,CAAC;gBAE3B,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,gBAAgB;CAIlE;AAID,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,UAAU;IAErD,YAAY,CAAC,EAAE,YAAY,CAAC;IAE5B,OAAO,CAAC,SAAS,CAA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AAE,EACtC,GAAG,CAAC,EAAE,OAAO,GACZ,UAAU,EAAE,CA6Cd"}
@@ -1 +1 @@
1
- {"version":3,"file":"RemoteTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/RemoteTrack.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,WAAY,SAAQ,KAAK;IACrD,gBAAgB;IAChB,QAAQ,CAAC,EAAE,cAAc,CAAC;gBAGxB,UAAU,EAAE,gBAAgB,EAC5B,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,KAAK,CAAC,IAAI,EAChB,QAAQ,CAAC,EAAE,cAAc;IAO3B,gBAAgB;IAChB,QAAQ,CAAC,KAAK,EAAE,OAAO;IAQvB,gBAAgB;IAChB,cAAc,CAAC,MAAM,EAAE,WAAW;IAYlC,KAAK;IAML,IAAI;IAMJ;;;;;OAKG;IACG,iBAAiB,IAAI,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;IAS9D,YAAY;IAMZ,SAAS,CAAC,QAAQ,CAAC,eAAe,IAAI,IAAI;CAC3C"}
1
+ {"version":3,"file":"RemoteTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/RemoteTrack.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,WAAY,SAAQ,KAAK;IACrD,gBAAgB;IAChB,QAAQ,CAAC,EAAE,cAAc,CAAC;gBAGxB,UAAU,EAAE,gBAAgB,EAC5B,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,KAAK,CAAC,IAAI,EAChB,QAAQ,CAAC,EAAE,cAAc;IAO3B,gBAAgB;IAChB,QAAQ,CAAC,KAAK,EAAE,OAAO;IAQvB,gBAAgB;IAChB,cAAc,CAAC,MAAM,EAAE,WAAW;IAclC,KAAK;IAML,IAAI;IAMJ;;;;;OAKG;IACG,iBAAiB,IAAI,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;IAS9D,YAAY;IAMZ,SAAS,CAAC,QAAQ,CAAC,eAAe,IAAI,IAAI;CAC3C"}
@@ -96,6 +96,12 @@ export interface TrackPublishOptions extends TrackPublishDefaults {
96
96
  * Source of track, camera, microphone, or screen
97
97
  */
98
98
  source?: Track.Source;
99
+ /**
100
+ * Set stream name for the track. Audio and video tracks with the same stream name
101
+ * will be placed in the same `MediaStream` and offer better synchronization.
102
+ * By default, camera and microphone will be placed in a stream; as would screen_share and screen_share_audio
103
+ */
104
+ stream?: string;
99
105
  }
100
106
  export interface CreateLocalTracksOptions {
101
107
  /**
@@ -224,7 +230,6 @@ export declare const videoCodecs: readonly ["vp8", "h264", "vp9", "av1"];
224
230
  export type VideoCodec = (typeof videoCodecs)[number];
225
231
  export type BackupVideoCodec = (typeof backupCodecs)[number];
226
232
  export declare function isBackupCodec(codec: string): codec is BackupVideoCodec;
227
- export declare function isCodecEqual(c1: string | undefined, c2: string | undefined): boolean;
228
233
  /**
229
234
  * scalability modes for svc.
230
235
  */
@@ -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;;OAEG;IACH,WAAW,CAAC,EAAE;QAAE,KAAK,EAAE,gBAAgB,CAAC;QAAC,QAAQ,EAAE,aAAa,CAAA;KAAE,GAAG,KAAK,CAAC;IAE3E;;OAEG;IACH,mBAAmB,CAAC,EAAE,aAAa,CAAC;IAEpC;;;OAGG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,WAAW,CAAC,EAAE,WAAW,CAA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BAAgB,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;;;;;;;CAOrB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { Track } from './Track';
2
- import type { AudioCaptureOptions, CreateLocalTracksOptions, ScreenShareCaptureOptions, VideoCaptureOptions } from './options';
2
+ import { type AudioCaptureOptions, type CreateLocalTracksOptions, type ScreenShareCaptureOptions, type VideoCaptureOptions } from './options';
3
3
  import type { AudioTrack } from './types';
4
4
  export declare function mergeDefaultOptions(options?: CreateLocalTracksOptions, audioDefaults?: AudioCaptureOptions, videoDefaults?: VideoCaptureOptions): CreateLocalTracksOptions;
5
5
  export declare function constraintsForOptions(options: CreateLocalTracksOptions): MediaStreamConstraints;
@@ -24,4 +24,5 @@ export declare function sourceToKind(source: Track.Source): MediaDeviceKind | un
24
24
  * @internal
25
25
  */
26
26
  export declare function screenCaptureToDisplayMediaStreamOptions(options: ScreenShareCaptureOptions): DisplayMediaStreamOptions;
27
+ export declare function mimeTypeToVideoCodecString(mimeType: string): "vp8" | "h264" | "vp9" | "av1";
27
28
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/room/track/utils.ts"],"names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AAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,eAAe,GAAG,gBAAgB,EACzC,OAAO,CAAC,EAAE,oBAAoB;;;;EA+C/B;AAED,qBAAa,KAAK;IAChB,OAAO,CAAC,QAAQ,CAAgB;IAEhC,OAAO,CAAC,MAAM,CAAS;;IAOvB,QAAQ;IAIR,IAAI,kBAGoB,IAAI;CAgB7B;AAED,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,IAAI,UAAU,CAEzE;AAED,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,kBAAkB,GAAG,MAAM,CAqBvE;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAKlD;AAED,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAK7C"}
@@ -0,0 +1,2 @@
1
+ export declare function cloneDeep<T>(value: T): T | undefined;
2
+ //# sourceMappingURL=cloneDeep.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloneDeep.d.ts","sourceRoot":"","sources":["../../../src/utils/cloneDeep.ts"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,iBAUpC"}
@@ -1,3 +1,3 @@
1
1
  export declare const version: string;
2
- export declare const protocolVersion = 9;
2
+ export declare const protocolVersion = 10;
3
3
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,QAAI,CAAC;AACzB,eAAO,MAAM,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,QAAI,CAAC;AACzB,eAAO,MAAM,eAAe,KAAK,CAAC"}
@@ -16,7 +16,6 @@ export declare function deriveKeys(material: CryptoKey, salt: string): Promise<{
16
16
  encryptionKey: CryptoKey;
17
17
  }>;
18
18
  export declare function createE2EEKey(): Uint8Array;
19
- export declare function mimeTypeToVideoCodecString(mimeType: string): "vp8" | "h264" | "vp9" | "av1";
20
19
  /**
21
20
  * Ratchets a key. See
22
21
  * https://tools.ietf.org/html/draft-omara-sframe-00#section-4.3.5.1
@@ -42,6 +42,19 @@ export declare enum VideoCodec {
42
42
  */
43
43
  VP8 = 4
44
44
  }
45
+ /**
46
+ * @generated from enum livekit.ImageCodec
47
+ */
48
+ export declare enum ImageCodec {
49
+ /**
50
+ * @generated from enum value: IC_DEFAULT = 0;
51
+ */
52
+ IC_DEFAULT = 0,
53
+ /**
54
+ * @generated from enum value: IC_JPEG = 1;
55
+ */
56
+ IC_JPEG = 1
57
+ }
45
58
  /**
46
59
  * @generated from enum livekit.TrackType
47
60
  */
@@ -266,10 +279,6 @@ export declare class Room extends Message<Room> {
266
279
  * @generated from field: bool active_recording = 10;
267
280
  */
268
281
  activeRecording: boolean;
269
- /**
270
- * @generated from field: livekit.PlayoutDelay playout_delay = 12;
271
- */
272
- playoutDelay?: PlayoutDelay;
273
282
  constructor(data?: PartialMessage<Room>);
274
283
  static readonly runtime: typeof proto3;
275
284
  static readonly typeName = "livekit.Room";
@@ -772,6 +781,10 @@ export declare class UserPacket extends Message<UserPacket> {
772
781
  * @generated from field: string participant_sid = 1;
773
782
  */
774
783
  participantSid: string;
784
+ /**
785
+ * @generated from field: string participant_identity = 5;
786
+ */
787
+ participantIdentity: string;
775
788
  /**
776
789
  * user defined payload
777
790
  *
@@ -779,11 +792,17 @@ export declare class UserPacket extends Message<UserPacket> {
779
792
  */
780
793
  payload: Uint8Array;
781
794
  /**
782
- * the ID of the participants who will receive the message (the message will be sent to all the people in the room if this variable is empty)
795
+ * the ID of the participants who will receive the message (sent to all by default)
783
796
  *
784
797
  * @generated from field: repeated string destination_sids = 3;
785
798
  */
786
799
  destinationSids: string[];
800
+ /**
801
+ * identities of participants who will receive the message (sent to all by default)
802
+ *
803
+ * @generated from field: repeated string destination_identities = 6;
804
+ */
805
+ destinationIdentities: string[];
787
806
  /**
788
807
  * topic under which the message was published
789
808
  *
@@ -972,7 +991,15 @@ export declare enum ClientInfo_SDK {
972
991
  /**
973
992
  * @generated from enum value: RUST = 8;
974
993
  */
975
- RUST = 8
994
+ RUST = 8,
995
+ /**
996
+ * @generated from enum value: PYTHON = 9;
997
+ */
998
+ PYTHON = 9,
999
+ /**
1000
+ * @generated from enum value: CPP = 10;
1001
+ */
1002
+ CPP = 10
976
1003
  }
977
1004
  /**
978
1005
  * server provided client configuration
@@ -1051,6 +1078,55 @@ export declare class DisabledCodecs extends Message<DisabledCodecs> {
1051
1078
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DisabledCodecs;
1052
1079
  static equals(a: DisabledCodecs | PlainMessage<DisabledCodecs> | undefined, b: DisabledCodecs | PlainMessage<DisabledCodecs> | undefined): boolean;
1053
1080
  }
1081
+ /**
1082
+ * @generated from message livekit.RTPDrift
1083
+ */
1084
+ export declare class RTPDrift extends Message<RTPDrift> {
1085
+ /**
1086
+ * @generated from field: google.protobuf.Timestamp start_time = 1;
1087
+ */
1088
+ startTime?: Timestamp;
1089
+ /**
1090
+ * @generated from field: google.protobuf.Timestamp end_time = 2;
1091
+ */
1092
+ endTime?: Timestamp;
1093
+ /**
1094
+ * @generated from field: double duration = 3;
1095
+ */
1096
+ duration: number;
1097
+ /**
1098
+ * @generated from field: uint64 start_timestamp = 4;
1099
+ */
1100
+ startTimestamp: bigint;
1101
+ /**
1102
+ * @generated from field: uint64 end_timestamp = 5;
1103
+ */
1104
+ endTimestamp: bigint;
1105
+ /**
1106
+ * @generated from field: uint64 rtp_clock_ticks = 6;
1107
+ */
1108
+ rtpClockTicks: bigint;
1109
+ /**
1110
+ * @generated from field: int64 drift_samples = 7;
1111
+ */
1112
+ driftSamples: bigint;
1113
+ /**
1114
+ * @generated from field: double drift_ms = 8;
1115
+ */
1116
+ driftMs: number;
1117
+ /**
1118
+ * @generated from field: double clock_rate = 9;
1119
+ */
1120
+ clockRate: number;
1121
+ constructor(data?: PartialMessage<RTPDrift>);
1122
+ static readonly runtime: typeof proto3;
1123
+ static readonly typeName = "livekit.RTPDrift";
1124
+ static readonly fields: FieldList;
1125
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RTPDrift;
1126
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RTPDrift;
1127
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RTPDrift;
1128
+ static equals(a: RTPDrift | PlainMessage<RTPDrift> | undefined, b: RTPDrift | PlainMessage<RTPDrift> | undefined): boolean;
1129
+ }
1054
1130
  /**
1055
1131
  * @generated from message livekit.RTPStats
1056
1132
  */
@@ -1222,15 +1298,15 @@ export declare class RTPStats extends Message<RTPStats> {
1222
1298
  */
1223
1299
  lastLayerLockPli?: Timestamp;
1224
1300
  /**
1225
- * @generated from field: double sample_rate = 42;
1301
+ * @generated from field: livekit.RTPDrift packet_drift = 44;
1226
1302
  */
1227
- sampleRate: number;
1303
+ packetDrift?: RTPDrift;
1228
1304
  /**
1229
- * NEXT_ID: 44
1305
+ * NEXT_ID: 46
1230
1306
  *
1231
- * @generated from field: double drift_ms = 43;
1307
+ * @generated from field: livekit.RTPDrift report_drift = 45;
1232
1308
  */
1233
- driftMs: number;
1309
+ reportDrift?: RTPDrift;
1234
1310
  constructor(data?: PartialMessage<RTPStats>);
1235
1311
  static readonly runtime: typeof proto3;
1236
1312
  static readonly typeName = "livekit.RTPStats";
@@ -375,10 +375,6 @@ export declare class SimulcastCodec extends Message<SimulcastCodec> {
375
375
  * @generated from field: string cid = 2;
376
376
  */
377
377
  cid: string;
378
- /**
379
- * @generated from field: bool enable_simulcast_layers = 3;
380
- */
381
- enableSimulcastLayers: boolean;
382
378
  constructor(data?: PartialMessage<SimulcastCodec>);
383
379
  static readonly runtime: typeof proto3;
384
380
  static readonly typeName = "livekit.SimulcastCodec";
@@ -15,7 +15,7 @@ export declare const PCEvents: {
15
15
  /** @internal */
16
16
  export default class PCTransport extends EventEmitter {
17
17
  private _pc;
18
- get pc(): RTCPeerConnection;
18
+ private get pc();
19
19
  pendingCandidates: RTCIceCandidateInit[];
20
20
  restartingIce: boolean;
21
21
  renegotiate: boolean;
@@ -23,6 +23,11 @@ export default class PCTransport extends EventEmitter {
23
23
  remoteStereoMids: string[];
24
24
  remoteNackMids: string[];
25
25
  onOffer?: (offer: RTCSessionDescriptionInit) => void;
26
+ onIceCandidate?: (candidate: RTCIceCandidate) => void;
27
+ onIceCandidateError?: (ev: Event) => void;
28
+ onConnectionStateChange?: (state: RTCPeerConnectionState) => void;
29
+ onDataChannel?: (ev: RTCDataChannelEvent) => void;
30
+ onTrack?: (ev: RTCTrackEvent) => void;
26
31
  constructor(config?: RTCConfiguration, mediaConstraints?: Record<string, unknown>);
27
32
  get isICEConnected(): boolean;
28
33
  addIceCandidate(candidate: RTCIceCandidateInit): Promise<void>;
@@ -35,7 +40,21 @@ export default class PCTransport extends EventEmitter {
35
40
  };
36
41
  createAndSendOffer(options?: RTCOfferOptions): Promise<void>;
37
42
  createAndSetAnswer(): Promise<RTCSessionDescriptionInit>;
43
+ createDataChannel(label: string, dataChannelDict: RTCDataChannelInit): RTCDataChannel;
44
+ addTransceiver(mediaStreamTrack: MediaStreamTrack, transceiverInit: RTCRtpTransceiverInit): RTCRtpTransceiver;
45
+ addTrack(track: MediaStreamTrack): RTCRtpSender;
38
46
  setTrackCodecBitrate(info: TrackBitrateInfo): void;
47
+ setConfiguration(rtcConfig: RTCConfiguration): void;
48
+ canRemoveTrack(): boolean;
49
+ removeTrack(sender: RTCRtpSender): void;
50
+ getConnectionState(): RTCPeerConnectionState;
51
+ getICEConnectionState(): RTCIceConnectionState;
52
+ getSignallingState(): RTCSignalingState;
53
+ getTransceivers(): RTCRtpTransceiver[];
54
+ getSenders(): RTCRtpSender[];
55
+ getLocalDescription(): RTCSessionDescription | null;
56
+ getRemoteDescription(): RTCSessionDescription | null;
57
+ getConnectedAddress(): Promise<string | undefined>;
39
58
  close(): void;
40
59
  private setMungedSDP;
41
60
  }
@@ -32,7 +32,7 @@ export default class RTCEngine extends RTCEngine_base {
32
32
  private dcBufferStatus;
33
33
  private reliableDCSub?;
34
34
  private subscriberPrimary;
35
- private primaryPC?;
35
+ private primaryTransport?;
36
36
  private pcState;
37
37
  private _isClosed;
38
38
  private pendingTrackResolvers;
@@ -1,5 +1,6 @@
1
1
  import type { InternalRoomConnectOptions, InternalRoomOptions } from '../options';
2
2
  import type { AudioCaptureOptions, TrackPublishDefaults, VideoCaptureOptions } from './track/options';
3
+ export declare const defaultVideoCodec = "vp8";
3
4
  export declare const publishDefaults: TrackPublishDefaults;
4
5
  export declare const audioDefaults: AudioCaptureOptions;
5
6
  export declare const videoDefaults: VideoCaptureOptions;
@@ -196,7 +196,7 @@ export declare enum RoomEvent {
196
196
  * be emitted.
197
197
  *
198
198
  * args: (pub: [[RemoteTrackPublication]],
199
- * status: [[TrackPublication.SubscriptionStatus]],
199
+ * status: [[TrackPublication.PermissionStatus]],
200
200
  * participant: [[RemoteParticipant]])
201
201
  */
202
202
  TrackSubscriptionPermissionChanged = "trackSubscriptionPermissionChanged",
@@ -6,7 +6,7 @@
6
6
  */
7
7
  export default class CriticalTimers {
8
8
  static setTimeout: (callback: (args: void) => void, ms?: number | undefined) => NodeJS.Timeout;
9
- static setInterval: (callback: (args: void) => void, ms?: number | undefined) => NodeJS.Timer;
9
+ static setInterval: (callback: (args: void) => void, ms?: number | undefined) => NodeJS.Timeout;
10
10
  static clearTimeout: (timeoutId: string | number | NodeJS.Timeout | undefined) => void;
11
11
  static clearInterval: (intervalId: string | number | NodeJS.Timeout | undefined) => void;
12
12
  }
@@ -21,7 +21,7 @@ export default class LocalAudioTrack extends LocalTrack {
21
21
  protected restart(constraints?: MediaTrackConstraints): Promise<LocalTrack>;
22
22
  startMonitor(): void;
23
23
  protected monitorSender: () => Promise<void>;
24
- setProcessor(processor: TrackProcessor<typeof this.kind>): Promise<void>;
24
+ setProcessor(processor: TrackProcessor<this['kind']>): Promise<void>;
25
25
  /**
26
26
  * @internal
27
27
  * @experimental
@@ -14,7 +14,7 @@ export default abstract class LocalTrack extends Track {
14
14
  protected muteLock: Mutex;
15
15
  protected pauseUpstreamLock: Mutex;
16
16
  protected processorElement?: HTMLMediaElement;
17
- protected processor?: TrackProcessor<typeof this.kind>;
17
+ protected processor?: TrackProcessor<this['kind']>;
18
18
  protected processorLock: Mutex;
19
19
  /**
20
20
  *
@@ -73,8 +73,8 @@ export default abstract class LocalTrack extends Track {
73
73
  * @param showProcessedStreamLocally
74
74
  * @returns
75
75
  */
76
- setProcessor(processor: TrackProcessor<typeof this.kind>, showProcessedStreamLocally?: boolean): Promise<void>;
77
- getProcessor(): TrackProcessor<Track.Kind, import("./processor/types").ProcessorOptions<Track.Kind>> | undefined;
76
+ setProcessor(processor: TrackProcessor<this['kind']>, showProcessedStreamLocally?: boolean): Promise<void>;
77
+ getProcessor(): TrackProcessor<this["kind"], import("./processor/types").ProcessorOptions<this["kind"]>> | undefined;
78
78
  /**
79
79
  * Stops the track processor
80
80
  * See https://github.com/livekit/track-processors-js for example usage
@@ -44,7 +44,8 @@ export default class LocalVideoTrack extends LocalTrack {
44
44
  setSimulcastTrackSender(codec: VideoCodec, sender: RTCRtpSender): void;
45
45
  /**
46
46
  * @internal
47
- * Sets codecs that should be publishing
47
+ * Sets codecs that should be publishing, returns new codecs that have not yet
48
+ * been published
48
49
  */
49
50
  setPublishingCodecs(codecs: SubscribedCodec[]): Promise<VideoCodec[]>;
50
51
  /**
@@ -96,6 +96,12 @@ export interface TrackPublishOptions extends TrackPublishDefaults {
96
96
  * Source of track, camera, microphone, or screen
97
97
  */
98
98
  source?: Track.Source;
99
+ /**
100
+ * Set stream name for the track. Audio and video tracks with the same stream name
101
+ * will be placed in the same `MediaStream` and offer better synchronization.
102
+ * By default, camera and microphone will be placed in a stream; as would screen_share and screen_share_audio
103
+ */
104
+ stream?: string;
99
105
  }
100
106
  export interface CreateLocalTracksOptions {
101
107
  /**
@@ -232,7 +238,6 @@ export declare const videoCodecs: readonly [
232
238
  export type VideoCodec = (typeof videoCodecs)[number];
233
239
  export type BackupVideoCodec = (typeof backupCodecs)[number];
234
240
  export declare function isBackupCodec(codec: string): codec is BackupVideoCodec;
235
- export declare function isCodecEqual(c1: string | undefined, c2: string | undefined): boolean;
236
241
  /**
237
242
  * scalability modes for svc.
238
243
  */
@@ -24,4 +24,5 @@ export declare function sourceToKind(source: Track.Source): MediaDeviceKind | un
24
24
  * @internal
25
25
  */
26
26
  export declare function screenCaptureToDisplayMediaStreamOptions(options: ScreenShareCaptureOptions): DisplayMediaStreamOptions;
27
+ export declare function mimeTypeToVideoCodecString(mimeType: string): "vp8" | "h264" | "vp9" | "av1";
27
28
  //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1,2 @@
1
+ export declare function cloneDeep<T>(value: T): T | undefined;
2
+ //# sourceMappingURL=cloneDeep.d.ts.map
@@ -1,3 +1,3 @@
1
1
  export declare const version: string;
2
- export declare const protocolVersion = 9;
2
+ export declare const protocolVersion = 10;
3
3
  //# sourceMappingURL=version.d.ts.map