livekit-client 1.9.7 → 1.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. package/dist/livekit-client.esm.mjs +2972 -2583
  2. package/dist/livekit-client.esm.mjs.map +1 -1
  3. package/dist/livekit-client.umd.js +1 -1
  4. package/dist/livekit-client.umd.js.map +1 -1
  5. package/dist/src/api/SignalClient.d.ts +2 -1
  6. package/dist/src/api/SignalClient.d.ts.map +1 -1
  7. package/dist/src/connectionHelper/ConnectionCheck.d.ts +2 -3
  8. package/dist/src/connectionHelper/ConnectionCheck.d.ts.map +1 -1
  9. package/dist/src/connectionHelper/checks/Checker.d.ts +2 -3
  10. package/dist/src/connectionHelper/checks/Checker.d.ts.map +1 -1
  11. package/dist/src/index.d.ts +1 -0
  12. package/dist/src/index.d.ts.map +1 -1
  13. package/dist/src/proto/livekit_models.d.ts +108 -10
  14. package/dist/src/proto/livekit_models.d.ts.map +1 -1
  15. package/dist/src/proto/livekit_rtc.d.ts +513 -194
  16. package/dist/src/proto/livekit_rtc.d.ts.map +1 -1
  17. package/dist/src/room/PCTransport.d.ts +1 -1
  18. package/dist/src/room/PCTransport.d.ts.map +1 -1
  19. package/dist/src/room/RTCEngine.d.ts +2 -4
  20. package/dist/src/room/RTCEngine.d.ts.map +1 -1
  21. package/dist/src/room/Room.d.ts +6 -6
  22. package/dist/src/room/Room.d.ts.map +1 -1
  23. package/dist/src/room/events.d.ts +5 -1
  24. package/dist/src/room/events.d.ts.map +1 -1
  25. package/dist/src/room/participant/LocalParticipant.d.ts.map +1 -1
  26. package/dist/src/room/participant/Participant.d.ts +4 -6
  27. package/dist/src/room/participant/Participant.d.ts.map +1 -1
  28. package/dist/src/room/participant/RemoteParticipant.d.ts +2 -1
  29. package/dist/src/room/participant/RemoteParticipant.d.ts.map +1 -1
  30. package/dist/src/room/participant/publishUtils.d.ts +8 -0
  31. package/dist/src/room/participant/publishUtils.d.ts.map +1 -1
  32. package/dist/src/room/track/LocalTrack.d.ts +33 -0
  33. package/dist/src/room/track/LocalTrack.d.ts.map +1 -1
  34. package/dist/src/room/track/LocalVideoTrack.d.ts +1 -1
  35. package/dist/src/room/track/LocalVideoTrack.d.ts.map +1 -1
  36. package/dist/src/room/track/RemoteTrackPublication.d.ts +4 -1
  37. package/dist/src/room/track/RemoteTrackPublication.d.ts.map +1 -1
  38. package/dist/src/room/track/RemoteVideoTrack.d.ts +1 -0
  39. package/dist/src/room/track/RemoteVideoTrack.d.ts.map +1 -1
  40. package/dist/src/room/track/Track.d.ts +2 -4
  41. package/dist/src/room/track/Track.d.ts.map +1 -1
  42. package/dist/src/room/track/TrackPublication.d.ts +4 -5
  43. package/dist/src/room/track/TrackPublication.d.ts.map +1 -1
  44. package/dist/src/room/track/options.d.ts +14 -5
  45. package/dist/src/room/track/options.d.ts.map +1 -1
  46. package/dist/src/room/track/processor/types.d.ts +19 -0
  47. package/dist/src/room/track/processor/types.d.ts.map +1 -0
  48. package/dist/src/room/track/types.d.ts +2 -1
  49. package/dist/src/room/track/types.d.ts.map +1 -1
  50. package/dist/src/room/utils.d.ts.map +1 -1
  51. package/dist/ts4.2/src/api/SignalClient.d.ts +2 -1
  52. package/dist/ts4.2/src/connectionHelper/ConnectionCheck.d.ts +2 -3
  53. package/dist/ts4.2/src/connectionHelper/checks/Checker.d.ts +2 -3
  54. package/dist/ts4.2/src/index.d.ts +1 -0
  55. package/dist/ts4.2/src/proto/livekit_models.d.ts +126 -12
  56. package/dist/ts4.2/src/proto/livekit_rtc.d.ts +617 -254
  57. package/dist/ts4.2/src/room/PCTransport.d.ts +1 -1
  58. package/dist/ts4.2/src/room/RTCEngine.d.ts +2 -4
  59. package/dist/ts4.2/src/room/Room.d.ts +6 -6
  60. package/dist/ts4.2/src/room/events.d.ts +5 -1
  61. package/dist/ts4.2/src/room/participant/Participant.d.ts +4 -6
  62. package/dist/ts4.2/src/room/participant/RemoteParticipant.d.ts +2 -1
  63. package/dist/ts4.2/src/room/participant/publishUtils.d.ts +8 -0
  64. package/dist/ts4.2/src/room/track/LocalTrack.d.ts +33 -0
  65. package/dist/ts4.2/src/room/track/LocalVideoTrack.d.ts +1 -1
  66. package/dist/ts4.2/src/room/track/RemoteTrackPublication.d.ts +4 -1
  67. package/dist/ts4.2/src/room/track/RemoteVideoTrack.d.ts +1 -0
  68. package/dist/ts4.2/src/room/track/Track.d.ts +2 -4
  69. package/dist/ts4.2/src/room/track/TrackPublication.d.ts +4 -5
  70. package/dist/ts4.2/src/room/track/options.d.ts +14 -5
  71. package/dist/ts4.2/src/room/track/processor/types.d.ts +19 -0
  72. package/dist/ts4.2/src/room/track/types.d.ts +2 -1
  73. package/package.json +14 -15
  74. package/src/api/SignalClient.ts +8 -1
  75. package/src/connectionHelper/ConnectionCheck.ts +2 -3
  76. package/src/connectionHelper/checks/Checker.ts +2 -3
  77. package/src/index.ts +1 -0
  78. package/src/logger.ts +4 -4
  79. package/src/proto/google/protobuf/timestamp.ts +3 -3
  80. package/src/proto/livekit_models.ts +254 -161
  81. package/src/proto/livekit_rtc.ts +334 -180
  82. package/src/room/PCTransport.ts +1 -1
  83. package/src/room/RTCEngine.ts +4 -4
  84. package/src/room/Room.ts +67 -12
  85. package/src/room/events.ts +4 -0
  86. package/src/room/participant/LocalParticipant.ts +33 -5
  87. package/src/room/participant/Participant.ts +4 -5
  88. package/src/room/participant/RemoteParticipant.ts +8 -4
  89. package/src/room/participant/publishUtils.ts +47 -20
  90. package/src/room/track/LocalTrack.ts +180 -57
  91. package/src/room/track/LocalVideoTrack.ts +98 -33
  92. package/src/room/track/RemoteTrackPublication.ts +8 -1
  93. package/src/room/track/RemoteVideoTrack.ts +23 -6
  94. package/src/room/track/Track.ts +5 -7
  95. package/src/room/track/TrackPublication.ts +4 -5
  96. package/src/room/track/options.ts +14 -5
  97. package/src/room/track/processor/types.ts +20 -0
  98. package/src/room/track/types.ts +2 -1
  99. package/src/room/utils.ts +6 -3
@@ -1,9 +1,8 @@
1
- import type TypedEventEmitter from 'typed-emitter';
1
+ import EventEmitter from 'eventemitter3';
2
2
  import type { SignalClient } from '../../api/SignalClient';
3
3
  import { TrackSource, TrackType } from '../../proto/livekit_models';
4
4
  import { StreamState as ProtoStreamState } from '../../proto/livekit_rtc';
5
- declare const Track_base: new () => TypedEventEmitter<TrackEventCallbacks>;
6
- export declare abstract class Track extends Track_base {
5
+ export declare abstract class Track extends EventEmitter<TrackEventCallbacks> {
7
6
  kind: Track.Kind;
8
7
  attachedElements: HTMLMediaElement[];
9
8
  isMuted: boolean;
@@ -121,5 +120,4 @@ export type TrackEventCallbacks = {
121
120
  upstreamPaused: (track: any) => void;
122
121
  upstreamResumed: (track: any) => void;
123
122
  };
124
- export {};
125
123
  //# sourceMappingURL=Track.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Track.d.ts","sourceRoot":"","sources":["../../../../src/room/track/Track.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;oCAUX,kBAAkB,mBAAmB,CAAC;AAArG,8BAAsB,KAAM,SAAQ,UAAkE;IACpG,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;IAEjB,gBAAgB,EAAE,gBAAgB,EAAE,CAAM;IAE1C,OAAO,EAAE,OAAO,CAAS;IAEzB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;IAErB;;OAEG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC;IAEhB;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAE1B;;;OAGG;IACH,WAAW,EAAE,KAAK,CAAC,WAAW,CAA4B;IAE1D,SAAS,CAAC,iBAAiB,EAAE,gBAAgB,CAAC;IAE9C,SAAS,CAAC,cAAc,EAAE,MAAM,CA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B,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAC3D,sBAAsB,EAAE,CAAC,UAAU,EAAE,KAAK,CAAC,UAAU,EAAE,KAAK,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAC5E,eAAe,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACrD,eAAe,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACrD,cAAc,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IACrC,eAAe,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;CACvC,CAAC"}
@@ -1,5 +1,5 @@
1
- import type TypedEventEmitter from 'typed-emitter';
2
- import type { TrackInfo } from '../../proto/livekit_models';
1
+ import EventEmitter from 'eventemitter3';
2
+ import type { SubscriptionError, TrackInfo } from '../../proto/livekit_models';
3
3
  import type { UpdateSubscription, UpdateTrackSettings } from '../../proto/livekit_rtc';
4
4
  import LocalAudioTrack from './LocalAudioTrack';
5
5
  import LocalVideoTrack from './LocalVideoTrack';
@@ -7,8 +7,7 @@ import RemoteAudioTrack from './RemoteAudioTrack';
7
7
  import type RemoteTrack from './RemoteTrack';
8
8
  import RemoteVideoTrack from './RemoteVideoTrack';
9
9
  import { Track } from './Track';
10
- declare const TrackPublication_base: new () => TypedEventEmitter<PublicationEventCallbacks>;
11
- export declare class TrackPublication extends TrackPublication_base {
10
+ export declare class TrackPublication extends EventEmitter<PublicationEventCallbacks> {
12
11
  kind: Track.Kind;
13
12
  trackName: string;
14
13
  trackSid: Track.SID;
@@ -63,6 +62,6 @@ export type PublicationEventCallbacks = {
63
62
  subscribed: (track: RemoteTrack) => void;
64
63
  unsubscribed: (track: RemoteTrack) => void;
65
64
  subscriptionStatusChanged: (status: TrackPublication.SubscriptionStatus, prevStatus: TrackPublication.SubscriptionStatus) => void;
65
+ subscriptionFailed: (error: SubscriptionError) => void;
66
66
  };
67
- export {};
68
67
  //# sourceMappingURL=TrackPublication.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TrackPublication.d.ts","sourceRoot":"","sources":["../../../../src/room/track/TrackPublication.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAC;AAEnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEvF,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,WAAW,MAAM,eAAe,CAAC;AAC7C,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;+CAEiC,kBAAkB,yBAAyB,CAAC;AAA7G,qBAAa,gBAAiB,SAAQ,qBAAwE;IAC5G,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;IAEjB,SAAS,EAAE,MAAM,CAAC;IAElB,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC;IAEpB,KAAK,CAAC,EAAE,KAAK,CAAC;IAEd,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;IAErB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,6DAA6D;IAC7D,UAAU,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC;IAE9B,0DAA0D;IAC1D,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,gBAAgB;IAChB,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB,SAAS,CAAC,aAAa,EAAE,OAAO,CAAS;gBAE7B,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;IAStD,gBAAgB;IAChB,QA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,CAAC"}
@@ -54,10 +54,19 @@ export interface TrackPublishDefaults {
54
54
  */
55
55
  scalabilityMode?: ScalabilityMode;
56
56
  /**
57
- * custom video simulcast layers for camera tracks, defaults to h180, h360
58
- * You can specify up to two custom layers that will be used instead of
59
- * the LiveKit default layers.
60
- * Note: the layers need to be ordered from lowest to highest quality
57
+ * Up to two additional simulcast layers to publish in addition to the original
58
+ * Track.
59
+ * When left blank, it defaults to h180, h360.
60
+ * If a SVC codec is used (VP9 or AV1), this field has no effect.
61
+ *
62
+ * To publish three total layers, you would specify:
63
+ * {
64
+ * videoEncoding: {...}, // encoding of the primary layer
65
+ * videoSimulcastLayers: [
66
+ * VideoPresets.h540,
67
+ * VideoPresets.h216,
68
+ * ],
69
+ * }
61
70
  */
62
71
  videoSimulcastLayers?: Array<VideoPreset>;
63
72
  /**
@@ -208,7 +217,7 @@ export declare function isCodecEqual(c1: string | undefined, c2: string | undefi
208
217
  /**
209
218
  * scalability modes for svc, only supprot l3t3 now.
210
219
  */
211
- export type ScalabilityMode = 'L3T3';
220
+ export type ScalabilityMode = 'L3T3' | 'L3T3_KEY';
212
221
  export declare namespace AudioPresets {
213
222
  const telephone: AudioPreset;
214
223
  const speech: AudioPreset;
@@ -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,E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ACK,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;;;;;;CAMrB,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { Track } from '../Track';
2
+ /**
3
+ * @experimental
4
+ */
5
+ export type ProcessorOptions<T extends Track.Kind> = {
6
+ kind: T;
7
+ track: MediaStreamTrack;
8
+ element?: HTMLMediaElement;
9
+ };
10
+ /**
11
+ * @experimental
12
+ */
13
+ export interface TrackProcessor<T extends Track.Kind> {
14
+ name: string;
15
+ init: (opts: ProcessorOptions<T>) => void;
16
+ destroy: () => Promise<void>;
17
+ processedTrack?: MediaStreamTrack;
18
+ }
19
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/room/track/processor/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC;;GAEG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,KAAK,CAAC,IAAI,IAAI;IACnD,IAAI,EAAE,CAAC,CAAC;IACR,KAAK,EAAE,gBAAgB,CAAC;IACxB,OAAO,CAAC,EAAE,gBAAgB,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS,KAAK,CAAC,IAAI;IAClD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAC1C,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,cAAc,CAAC,EAAE,gBAAgB,CAAC;CACnC"}
@@ -6,7 +6,8 @@ export type AudioTrack = RemoteAudioTrack | LocalAudioTrack;
6
6
  export type VideoTrack = RemoteVideoTrack | LocalVideoTrack;
7
7
  export type AdaptiveStreamSettings = {
8
8
  /**
9
- * Set a custom pixel density, defaults to 1
9
+ * Set a custom pixel density. Defaults to 2 for high density screens (3+) or
10
+ * 1 otherwise.
10
11
  * When streaming videos on a ultra high definition screen this setting
11
12
  * let's you account for the devicePixelRatio of those screens.
12
13
  * Set it to `screen` to use the actual pixel density of the screen
@@ -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;;;;;;;OAOG;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,GAA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OAAO,CAAC,CAAC,CAAC,CAAC;IAEpB,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,IAAI,CAAC;IAE3B,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAE1B,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;gBAGrB,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,KAAK,IAAI,EAC1E,SAAS,CAAC,EAAE,MAAM,IAAI;CAWzB;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;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"}
@@ -1,5 +1,5 @@
1
1
  import { ParticipantInfo, ReconnectReason, Room, SpeakerInfo, VideoLayer } from '../proto/livekit_models';
2
- import { AddTrackRequest, ConnectionQualityUpdate, JoinResponse, LeaveRequest, ReconnectResponse, SessionDescription, SignalRequest, SignalTarget, SimulateScenario, StreamStateUpdate, SubscribedQualityUpdate, SubscriptionPermissionUpdate, SyncState, TrackPermission, TrackPublishedResponse, TrackUnpublishedResponse, UpdateSubscription, UpdateTrackSettings } from '../proto/livekit_rtc';
2
+ import { AddTrackRequest, ConnectionQualityUpdate, JoinResponse, LeaveRequest, ReconnectResponse, SessionDescription, SignalRequest, SignalTarget, SimulateScenario, StreamStateUpdate, SubscribedQualityUpdate, SubscriptionPermissionUpdate, SubscriptionResponse, SyncState, TrackPermission, TrackPublishedResponse, TrackUnpublishedResponse, UpdateSubscription, UpdateTrackSettings } from '../proto/livekit_rtc';
3
3
  import { AsyncQueue } from '../utils/AsyncQueue';
4
4
  interface ConnectOpts {
5
5
  autoSubscribe: boolean;
@@ -46,6 +46,7 @@ export declare class SignalClient {
46
46
  onStreamStateUpdate?: (update: StreamStateUpdate) => void;
47
47
  onSubscribedQualityUpdate?: (update: SubscribedQualityUpdate) => void;
48
48
  onSubscriptionPermissionUpdate?: (update: SubscriptionPermissionUpdate) => void;
49
+ onSubscriptionError?: (update: SubscriptionResponse) => void;
49
50
  onLocalTrackUnpublished?: (res: TrackUnpublishedResponse) => void;
50
51
  onTokenRefresh?: (token: string) => void;
51
52
  onLeave?: (leave: LeaveRequest) => void;
@@ -1,9 +1,8 @@
1
- import type TypedEmitter from 'typed-emitter';
1
+ import EventEmitter from 'eventemitter3';
2
2
  import { CheckStatus, Checker } from './checks/Checker';
3
3
  import type { CheckInfo, InstantiableCheck } from './checks/Checker';
4
4
  export type { CheckInfo, CheckStatus };
5
- declare const ConnectionCheck_base: new () => TypedEmitter<ConnectionCheckCallbacks>;
6
- export declare class ConnectionCheck extends ConnectionCheck_base {
5
+ export declare class ConnectionCheck extends EventEmitter<ConnectionCheckCallbacks> {
7
6
  token: string;
8
7
  url: string;
9
8
  private checkResults;
@@ -1,4 +1,4 @@
1
- import type TypedEmitter from 'typed-emitter';
1
+ import EventEmitter from 'eventemitter3';
2
2
  import type { RoomConnectOptions, RoomOptions } from '../../options';
3
3
  import type RTCEngine from '../../room/RTCEngine';
4
4
  import Room from '../../room/Room';
@@ -24,8 +24,7 @@ export interface CheckerOptions {
24
24
  roomOptions?: RoomOptions;
25
25
  connectOptions?: RoomConnectOptions;
26
26
  }
27
- declare const Checker_base: new () => TypedEmitter<CheckerCallbacks>;
28
- export declare abstract class Checker extends Checker_base {
27
+ export declare abstract class Checker extends EventEmitter<CheckerCallbacks> {
29
28
  protected url: string;
30
29
  protected token: string;
31
30
  room: Room;
@@ -30,6 +30,7 @@ export * from './room/track/options';
30
30
  export * from './room/track/types';
31
31
  export type { DataPublishOptions, SimulationScenario } from './room/types';
32
32
  export * from './version';
33
+ export * from './room/track/processor/types';
33
34
  export { setLogLevel, setLogExtension, getEmptyAudioStreamTrack, getEmptyVideoStreamTrack, isBrowserSupported, supportsAdaptiveStream, supportsDynacast, supportsAV1, supportsVP9, createAudioAnalyser, LogLevel, Room, ConnectionState, RoomState, DataPacket_Kind, DisconnectReason, Participant, RemoteParticipant, LocalParticipant, LocalAudioTrack, LocalVideoTrack, LocalTrack, LocalTrackPublication, RemoteTrack, RemoteAudioTrack, RemoteVideoTrack, RemoteTrackPublication, TrackPublication, VideoQuality, ConnectionQuality, DefaultReconnectPolicy, CriticalTimers, };
34
35
  export type { ElementInfo, ParticipantTrackPermission, AudioAnalyserOptions, LiveKitReactNativeInfo, };
35
36
  //# sourceMappingURL=index.d.ts.map
@@ -84,6 +84,14 @@ export declare enum ReconnectReason {
84
84
  }
85
85
  export declare function reconnectReasonFromJSON(object: any): ReconnectReason;
86
86
  export declare function reconnectReasonToJSON(object: ReconnectReason): string;
87
+ export declare enum SubscriptionError {
88
+ SE_UNKOWN = 0,
89
+ SE_CODEC_UNSUPPORTED = 1,
90
+ SE_TRACK_NOTFOUND = 2,
91
+ UNRECOGNIZED = -1
92
+ }
93
+ export declare function subscriptionErrorFromJSON(object: any): SubscriptionError;
94
+ export declare function subscriptionErrorToJSON(object: SubscriptionError): string;
87
95
  export interface Room {
88
96
  sid: string;
89
97
  name: string;
@@ -302,7 +310,10 @@ export interface VideoConfiguration {
302
310
  hardwareEncoder: ClientConfigSetting;
303
311
  }
304
312
  export interface DisabledCodecs {
313
+ /** disabled for both publish and subscribe */
305
314
  codecs: Codec[];
315
+ /** only disable for publish */
316
+ publish: Codec[];
306
317
  }
307
318
  export interface RTPStats {
308
319
  startTime?: Date;
@@ -348,6 +359,9 @@ export interface RTPStats {
348
359
  lastKeyFrame?: Date;
349
360
  layerLockPlis: number;
350
361
  lastLayerLockPli?: Date;
362
+ sampleRate: number;
363
+ /** NEXT_ID: 44 */
364
+ driftMs: number;
351
365
  }
352
366
  export interface RTPStats_GapHistogramEntry {
353
367
  key: number;
@@ -2093,6 +2107,10 @@ export declare const ClientConfiguration: {
2093
2107
  mime?: string | undefined;
2094
2108
  fmtpLine?: string | undefined;
2095
2109
  }[] | undefined;
2110
+ publish?: {
2111
+ mime?: string | undefined;
2112
+ fmtpLine?: string | undefined;
2113
+ }[] | undefined;
2096
2114
  } | undefined;
2097
2115
  forceRelay?: ClientConfigSetting | undefined;
2098
2116
  } & {
@@ -2116,6 +2134,10 @@ export declare const ClientConfiguration: {
2116
2134
  mime?: string | undefined;
2117
2135
  fmtpLine?: string | undefined;
2118
2136
  }[] | undefined;
2137
+ publish?: {
2138
+ mime?: string | undefined;
2139
+ fmtpLine?: string | undefined;
2140
+ }[] | undefined;
2119
2141
  } & {
2120
2142
  codecs?: ({
2121
2143
  mime?: string | undefined;
@@ -2134,12 +2156,29 @@ export declare const ClientConfiguration: {
2134
2156
  fmtpLine?: string | undefined;
2135
2157
  }[]>]: never;
2136
2158
  }) | undefined;
2159
+ publish?: ({
2160
+ mime?: string | undefined;
2161
+ fmtpLine?: string | undefined;
2162
+ }[] & ({
2163
+ mime?: string | undefined;
2164
+ fmtpLine?: string | undefined;
2165
+ } & {
2166
+ mime?: string | undefined;
2167
+ fmtpLine?: string | undefined;
2168
+ } & {
2169
+ [K_4 in Exclude<keyof I["disabledCodecs"]["publish"][number], keyof Codec>]: never;
2170
+ })[] & {
2171
+ [K_5 in Exclude<keyof I["disabledCodecs"]["publish"], keyof {
2172
+ mime?: string | undefined;
2173
+ fmtpLine?: string | undefined;
2174
+ }[]>]: never;
2175
+ }) | undefined;
2137
2176
  } & {
2138
- [K_4 in Exclude<keyof I["disabledCodecs"], "codecs">]: never;
2177
+ [K_6 in Exclude<keyof I["disabledCodecs"], keyof DisabledCodecs>]: never;
2139
2178
  }) | undefined;
2140
2179
  forceRelay?: ClientConfigSetting | undefined;
2141
2180
  } & {
2142
- [K_5 in Exclude<keyof I, keyof ClientConfiguration>]: never;
2181
+ [K_7 in Exclude<keyof I, keyof ClientConfiguration>]: never;
2143
2182
  }>(base?: I | undefined): ClientConfiguration;
2144
2183
  fromPartial<I_1 extends {
2145
2184
  video?: {
@@ -2154,6 +2193,10 @@ export declare const ClientConfiguration: {
2154
2193
  mime?: string | undefined;
2155
2194
  fmtpLine?: string | undefined;
2156
2195
  }[] | undefined;
2196
+ publish?: {
2197
+ mime?: string | undefined;
2198
+ fmtpLine?: string | undefined;
2199
+ }[] | undefined;
2157
2200
  } | undefined;
2158
2201
  forceRelay?: ClientConfigSetting | undefined;
2159
2202
  } & {
@@ -2162,14 +2205,14 @@ export declare const ClientConfiguration: {
2162
2205
  } & {
2163
2206
  hardwareEncoder?: ClientConfigSetting | undefined;
2164
2207
  } & {
2165
- [K_6 in Exclude<keyof I_1["video"], "hardwareEncoder">]: never;
2208
+ [K_8 in Exclude<keyof I_1["video"], "hardwareEncoder">]: never;
2166
2209
  }) | undefined;
2167
2210
  screen?: ({
2168
2211
  hardwareEncoder?: ClientConfigSetting | undefined;
2169
2212
  } & {
2170
2213
  hardwareEncoder?: ClientConfigSetting | undefined;
2171
2214
  } & {
2172
- [K_7 in Exclude<keyof I_1["screen"], "hardwareEncoder">]: never;
2215
+ [K_9 in Exclude<keyof I_1["screen"], "hardwareEncoder">]: never;
2173
2216
  }) | undefined;
2174
2217
  resumeConnection?: ClientConfigSetting | undefined;
2175
2218
  disabledCodecs?: ({
@@ -2177,6 +2220,10 @@ export declare const ClientConfiguration: {
2177
2220
  mime?: string | undefined;
2178
2221
  fmtpLine?: string | undefined;
2179
2222
  }[] | undefined;
2223
+ publish?: {
2224
+ mime?: string | undefined;
2225
+ fmtpLine?: string | undefined;
2226
+ }[] | undefined;
2180
2227
  } & {
2181
2228
  codecs?: ({
2182
2229
  mime?: string | undefined;
@@ -2188,19 +2235,36 @@ export declare const ClientConfiguration: {
2188
2235
  mime?: string | undefined;
2189
2236
  fmtpLine?: string | undefined;
2190
2237
  } & {
2191
- [K_8 in Exclude<keyof I_1["disabledCodecs"]["codecs"][number], keyof Codec>]: never;
2238
+ [K_10 in Exclude<keyof I_1["disabledCodecs"]["codecs"][number], keyof Codec>]: never;
2239
+ })[] & {
2240
+ [K_11 in Exclude<keyof I_1["disabledCodecs"]["codecs"], keyof {
2241
+ mime?: string | undefined;
2242
+ fmtpLine?: string | undefined;
2243
+ }[]>]: never;
2244
+ }) | undefined;
2245
+ publish?: ({
2246
+ mime?: string | undefined;
2247
+ fmtpLine?: string | undefined;
2248
+ }[] & ({
2249
+ mime?: string | undefined;
2250
+ fmtpLine?: string | undefined;
2251
+ } & {
2252
+ mime?: string | undefined;
2253
+ fmtpLine?: string | undefined;
2254
+ } & {
2255
+ [K_12 in Exclude<keyof I_1["disabledCodecs"]["publish"][number], keyof Codec>]: never;
2192
2256
  })[] & {
2193
- [K_9 in Exclude<keyof I_1["disabledCodecs"]["codecs"], keyof {
2257
+ [K_13 in Exclude<keyof I_1["disabledCodecs"]["publish"], keyof {
2194
2258
  mime?: string | undefined;
2195
2259
  fmtpLine?: string | undefined;
2196
2260
  }[]>]: never;
2197
2261
  }) | undefined;
2198
2262
  } & {
2199
- [K_10 in Exclude<keyof I_1["disabledCodecs"], "codecs">]: never;
2263
+ [K_14 in Exclude<keyof I_1["disabledCodecs"], keyof DisabledCodecs>]: never;
2200
2264
  }) | undefined;
2201
2265
  forceRelay?: ClientConfigSetting | undefined;
2202
2266
  } & {
2203
- [K_11 in Exclude<keyof I_1, keyof ClientConfiguration>]: never;
2267
+ [K_15 in Exclude<keyof I_1, keyof ClientConfiguration>]: never;
2204
2268
  }>(object: I_1): ClientConfiguration;
2205
2269
  };
2206
2270
  export declare const VideoConfiguration: {
@@ -2233,6 +2297,10 @@ export declare const DisabledCodecs: {
2233
2297
  mime?: string | undefined;
2234
2298
  fmtpLine?: string | undefined;
2235
2299
  }[] | undefined;
2300
+ publish?: {
2301
+ mime?: string | undefined;
2302
+ fmtpLine?: string | undefined;
2303
+ }[] | undefined;
2236
2304
  } & {
2237
2305
  codecs?: ({
2238
2306
  mime?: string | undefined;
@@ -2251,14 +2319,35 @@ export declare const DisabledCodecs: {
2251
2319
  fmtpLine?: string | undefined;
2252
2320
  }[]>]: never;
2253
2321
  }) | undefined;
2322
+ publish?: ({
2323
+ mime?: string | undefined;
2324
+ fmtpLine?: string | undefined;
2325
+ }[] & ({
2326
+ mime?: string | undefined;
2327
+ fmtpLine?: string | undefined;
2328
+ } & {
2329
+ mime?: string | undefined;
2330
+ fmtpLine?: string | undefined;
2331
+ } & {
2332
+ [K_2 in Exclude<keyof I["publish"][number], keyof Codec>]: never;
2333
+ })[] & {
2334
+ [K_3 in Exclude<keyof I["publish"], keyof {
2335
+ mime?: string | undefined;
2336
+ fmtpLine?: string | undefined;
2337
+ }[]>]: never;
2338
+ }) | undefined;
2254
2339
  } & {
2255
- [K_2 in Exclude<keyof I, "codecs">]: never;
2340
+ [K_4 in Exclude<keyof I, keyof DisabledCodecs>]: never;
2256
2341
  }>(base?: I | undefined): DisabledCodecs;
2257
2342
  fromPartial<I_1 extends {
2258
2343
  codecs?: {
2259
2344
  mime?: string | undefined;
2260
2345
  fmtpLine?: string | undefined;
2261
2346
  }[] | undefined;
2347
+ publish?: {
2348
+ mime?: string | undefined;
2349
+ fmtpLine?: string | undefined;
2350
+ }[] | undefined;
2262
2351
  } & {
2263
2352
  codecs?: ({
2264
2353
  mime?: string | undefined;
@@ -2270,15 +2359,32 @@ export declare const DisabledCodecs: {
2270
2359
  mime?: string | undefined;
2271
2360
  fmtpLine?: string | undefined;
2272
2361
  } & {
2273
- [K_3 in Exclude<keyof I_1["codecs"][number], keyof Codec>]: never;
2362
+ [K_5 in Exclude<keyof I_1["codecs"][number], keyof Codec>]: never;
2363
+ })[] & {
2364
+ [K_6 in Exclude<keyof I_1["codecs"], keyof {
2365
+ mime?: string | undefined;
2366
+ fmtpLine?: string | undefined;
2367
+ }[]>]: never;
2368
+ }) | undefined;
2369
+ publish?: ({
2370
+ mime?: string | undefined;
2371
+ fmtpLine?: string | undefined;
2372
+ }[] & ({
2373
+ mime?: string | undefined;
2374
+ fmtpLine?: string | undefined;
2375
+ } & {
2376
+ mime?: string | undefined;
2377
+ fmtpLine?: string | undefined;
2378
+ } & {
2379
+ [K_7 in Exclude<keyof I_1["publish"][number], keyof Codec>]: never;
2274
2380
  })[] & {
2275
- [K_4 in Exclude<keyof I_1["codecs"], keyof {
2381
+ [K_8 in Exclude<keyof I_1["publish"], keyof {
2276
2382
  mime?: string | undefined;
2277
2383
  fmtpLine?: string | undefined;
2278
2384
  }[]>]: never;
2279
2385
  }) | undefined;
2280
2386
  } & {
2281
- [K_5 in Exclude<keyof I_1, "codecs">]: never;
2387
+ [K_9 in Exclude<keyof I_1, keyof DisabledCodecs>]: never;
2282
2388
  }>(object: I_1): DisabledCodecs;
2283
2389
  };
2284
2390
  export declare const RTPStats: {
@@ -2330,6 +2436,8 @@ export declare const RTPStats: {
2330
2436
  lastKeyFrame?: Date | undefined;
2331
2437
  layerLockPlis?: number | undefined;
2332
2438
  lastLayerLockPli?: Date | undefined;
2439
+ sampleRate?: number | undefined;
2440
+ driftMs?: number | undefined;
2333
2441
  } & {
2334
2442
  startTime?: Date | undefined;
2335
2443
  endTime?: Date | undefined;
@@ -2378,6 +2486,8 @@ export declare const RTPStats: {
2378
2486
  lastKeyFrame?: Date | undefined;
2379
2487
  layerLockPlis?: number | undefined;
2380
2488
  lastLayerLockPli?: Date | undefined;
2489
+ sampleRate?: number | undefined;
2490
+ driftMs?: number | undefined;
2381
2491
  } & {
2382
2492
  [K_1 in Exclude<keyof I, keyof RTPStats>]: never;
2383
2493
  }>(base?: I | undefined): RTPStats;
@@ -2425,6 +2535,8 @@ export declare const RTPStats: {
2425
2535
  lastKeyFrame?: Date | undefined;
2426
2536
  layerLockPlis?: number | undefined;
2427
2537
  lastLayerLockPli?: Date | undefined;
2538
+ sampleRate?: number | undefined;
2539
+ driftMs?: number | undefined;
2428
2540
  } & {
2429
2541
  startTime?: Date | undefined;
2430
2542
  endTime?: Date | undefined;
@@ -2473,6 +2585,8 @@ export declare const RTPStats: {
2473
2585
  lastKeyFrame?: Date | undefined;
2474
2586
  layerLockPlis?: number | undefined;
2475
2587
  lastLayerLockPli?: Date | undefined;
2588
+ sampleRate?: number | undefined;
2589
+ driftMs?: number | undefined;
2476
2590
  } & {
2477
2591
  [K_3 in Exclude<keyof I_1, keyof RTPStats>]: never;
2478
2592
  }>(object: I_1): RTPStats;