livekit-client 1.10.0 → 1.11.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. package/dist/livekit-client.esm.mjs +504 -527
  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/connectionHelper/ConnectionCheck.d.ts +2 -3
  6. package/dist/src/connectionHelper/ConnectionCheck.d.ts.map +1 -1
  7. package/dist/src/connectionHelper/checks/Checker.d.ts +2 -3
  8. package/dist/src/connectionHelper/checks/Checker.d.ts.map +1 -1
  9. package/dist/src/room/PCTransport.d.ts +1 -1
  10. package/dist/src/room/PCTransport.d.ts.map +1 -1
  11. package/dist/src/room/RTCEngine.d.ts +2 -4
  12. package/dist/src/room/RTCEngine.d.ts.map +1 -1
  13. package/dist/src/room/Room.d.ts +3 -4
  14. package/dist/src/room/Room.d.ts.map +1 -1
  15. package/dist/src/room/participant/LocalParticipant.d.ts.map +1 -1
  16. package/dist/src/room/participant/Participant.d.ts +2 -4
  17. package/dist/src/room/participant/Participant.d.ts.map +1 -1
  18. package/dist/src/room/participant/RemoteParticipant.d.ts +2 -1
  19. package/dist/src/room/participant/RemoteParticipant.d.ts.map +1 -1
  20. package/dist/src/room/participant/publishUtils.d.ts.map +1 -1
  21. package/dist/src/room/track/LocalTrack.d.ts +3 -2
  22. package/dist/src/room/track/LocalTrack.d.ts.map +1 -1
  23. package/dist/src/room/track/LocalVideoTrack.d.ts +1 -1
  24. package/dist/src/room/track/LocalVideoTrack.d.ts.map +1 -1
  25. package/dist/src/room/track/RemoteVideoTrack.d.ts +1 -0
  26. package/dist/src/room/track/RemoteVideoTrack.d.ts.map +1 -1
  27. package/dist/src/room/track/Track.d.ts +2 -4
  28. package/dist/src/room/track/Track.d.ts.map +1 -1
  29. package/dist/src/room/track/TrackPublication.d.ts +2 -4
  30. package/dist/src/room/track/TrackPublication.d.ts.map +1 -1
  31. package/dist/src/room/track/options.d.ts +13 -4
  32. package/dist/src/room/track/options.d.ts.map +1 -1
  33. package/dist/src/room/track/types.d.ts +2 -1
  34. package/dist/src/room/track/types.d.ts.map +1 -1
  35. package/dist/src/room/utils.d.ts.map +1 -1
  36. package/dist/ts4.2/src/connectionHelper/ConnectionCheck.d.ts +2 -3
  37. package/dist/ts4.2/src/connectionHelper/checks/Checker.d.ts +2 -3
  38. package/dist/ts4.2/src/room/PCTransport.d.ts +1 -1
  39. package/dist/ts4.2/src/room/RTCEngine.d.ts +2 -4
  40. package/dist/ts4.2/src/room/Room.d.ts +3 -4
  41. package/dist/ts4.2/src/room/participant/Participant.d.ts +2 -4
  42. package/dist/ts4.2/src/room/participant/RemoteParticipant.d.ts +2 -1
  43. package/dist/ts4.2/src/room/track/LocalTrack.d.ts +3 -2
  44. package/dist/ts4.2/src/room/track/LocalVideoTrack.d.ts +1 -1
  45. package/dist/ts4.2/src/room/track/RemoteVideoTrack.d.ts +1 -0
  46. package/dist/ts4.2/src/room/track/Track.d.ts +2 -4
  47. package/dist/ts4.2/src/room/track/TrackPublication.d.ts +2 -4
  48. package/dist/ts4.2/src/room/track/options.d.ts +13 -4
  49. package/dist/ts4.2/src/room/track/types.d.ts +2 -1
  50. package/package.json +2 -3
  51. package/src/connectionHelper/ConnectionCheck.ts +2 -3
  52. package/src/connectionHelper/checks/Checker.ts +2 -3
  53. package/src/logger.ts +4 -4
  54. package/src/room/PCTransport.ts +1 -1
  55. package/src/room/RTCEngine.ts +4 -4
  56. package/src/room/Room.ts +41 -11
  57. package/src/room/participant/LocalParticipant.ts +11 -3
  58. package/src/room/participant/Participant.ts +2 -4
  59. package/src/room/participant/RemoteParticipant.ts +4 -3
  60. package/src/room/participant/publishUtils.ts +16 -18
  61. package/src/room/track/LocalTrack.ts +68 -46
  62. package/src/room/track/LocalVideoTrack.ts +9 -7
  63. package/src/room/track/RemoteVideoTrack.ts +23 -6
  64. package/src/room/track/Track.ts +2 -4
  65. package/src/room/track/TrackPublication.ts +2 -4
  66. package/src/room/track/options.ts +13 -4
  67. package/src/room/track/types.ts +2 -1
  68. package/src/room/utils.ts +6 -3
@@ -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 +1 @@
1
- {"version":3,"file":"ConnectionCheck.d.ts","sourceRoot":"","sources":["../../../src/connectionHelper/ConnectionCheck.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAQrE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;8CAEyB,aAAa,wBAAwB,CAAC;AAAtG,qBAAa,eAAgB,SAAQ,oBAAkE;IACrG,KAAK,EAAE,MAAM,CAAC;IAEd,GAAG,EAAE,MAAM,CAAC;IAEZ,OAAO,CAAC,YAAY,CAAqC;gBAE7C,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAMtC,OAAO,CAAC,cAAc;IAWtB,OAAO,CAAC,WAAW;IAKnB,SAAS;IAIT,UAAU;IAIJ,iBAAiB,CAAC,CAAC,SAAS,OAAO,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC;IAYhE,cAAc;IAId,WAAW;IAIX,SAAS;IAIT,cAAc;IAId,iBAAiB;IAIjB,iBAAiB;CAGxB;AAED,KAAK,wBAAwB,GAAG;IAC9B,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;CACpD,CAAC"}
1
+ {"version":3,"file":"ConnectionCheck.d.ts","sourceRoot":"","sources":["../../../src/connectionHelper/ConnectionCheck.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAQrE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;AAEvC,qBAAa,eAAgB,SAAQ,YAAY,CAAC,wBAAwB,CAAC;IACzE,KAAK,EAAE,MAAM,CAAC;IAEd,GAAG,EAAE,MAAM,CAAC;IAEZ,OAAO,CAAC,YAAY,CAAqC;gBAE7C,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAMtC,OAAO,CAAC,cAAc;IAWtB,OAAO,CAAC,WAAW;IAKnB,SAAS;IAIT,UAAU;IAIJ,iBAAiB,CAAC,CAAC,SAAS,OAAO,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC;IAYhE,cAAc;IAId,WAAW;IAIX,SAAS;IAIT,cAAc;IAId,iBAAiB;IAIjB,iBAAiB;CAGxB;AAED,KAAK,wBAAwB,GAAG;IAC9B,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;CACpD,CAAC"}
@@ -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;
@@ -1 +1 @@
1
- {"version":3,"file":"Checker.d.ts","sourceRoot":"","sources":["../../../../src/connectionHelper/checks/Checker.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAClD,OAAO,IAAyB,MAAM,iBAAiB,CAAC;AAExD,KAAK,UAAU,GAAG;IAChB,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,oBAAY,WAAW;IACrB,IAAI,IAAA;IACJ,OAAO,IAAA;IACP,OAAO,IAAA;IACP,OAAO,IAAA;IACP,MAAM,IAAA;CACP;AAED,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IACxB,MAAM,EAAE,WAAW,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,WAAW,cAAc;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,cAAc,CAAC,EAAE,kBAAkB,CAAC;CACrC;sCAEgE,aAAa,gBAAgB,CAAC;AAA/F,8BAAsB,OAAQ,SAAQ,YAA0D;IAC9F,SAAS,CAAC,GAAG,EAAE,MAAM,CAAC;IAEtB,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC;IAExB,IAAI,EAAE,IAAI,CAAC;IAEX,cAAc,CAAC,EAAE,kBAAkB,CAAC;IAEpC,M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AmCjC,SAAS,CAAC,SAAS,IAAI,OAAO;cAId,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;cAQxB,UAAU;IAQ1B,SAAS,CAAC,IAAI;IAId,SAAS,CAAC,aAAa,CAAC,OAAO,EAAE,MAAM;IAKvC,SAAS,CAAC,aAAa,CAAC,OAAO,EAAE,MAAM;IAKvC,SAAS,CAAC,WAAW,CAAC,OAAO,EAAE,MAAM;IAKrC,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,WAAW;IAKvC,SAAS,KAAK,MAAM,IAAI,SAAS,GAAG,SAAS,CAE5C;IAED,OAAO,IAAI,SAAS;CAQrB;AACD,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,OAAO,IAAI;IACjD,KAAK,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,CAAC,CAAC;CAC/D,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;CACnC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { EventEmitter } from 'events';
1
+ import EventEmitter from 'eventemitter3';
2
2
  /** @internal */
3
3
  interface TrackBitrateInfo {
4
4
  sid: string;
@@ -1 +1 @@
1
- {"version":3,"file":"PCTransport.d.ts","sourceRoot":"","sources":["../../../src/room/PCTransport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAQtC,gBAAgB;AAChB,UAAU,gBAAgB;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,QAAQ;;;CAGX,CAAC;AAEX,gBAAgB;AAChB,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,YAAY;IACnD,EAAE,EAAE,iBAAiB,CAAC;IAEtB,iBAAiB,EAAE,mBAAmB,EAAE,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EAAE,OAAO,CAAS;IAE/B,WAAW,EAAE,OAAO,CAAS;IAE7B,aAAa,EAAE,gBAAgB,EAAE,CAAM;IAEvC,gBAAgB,EAAE,MAAM,EAAE,CAAM;IAEhC,cAAc,EAAE,MAAM,EAAE,CAAM;IAE9B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;gBAEzC,MAAM,CAAC,EAAE,gBAAgB,EAAE,gBAAgB,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM;IAQrF,IAAI,cAAc,IAAI,OAAO,CAE5B;IAEK,eAAe,CAAC,SAAS,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC;IAO9D,oBAAoB,CAAC,EAAE,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC;IAuBxE,SAAS;iDAA2B,KAAK,KAAK,IAAI;;MAW1C;IAEF,kBAAkB,CAAC,OAAO,CAAC,EAAE,eAAe;IAwF5C,kBAAkB,IAAI,OAAO,CAAC,yBAAyB,CAAC;IAY9D,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAQ9D,KAAK;YAMS,yBAAyB;CA4BxC"}
@@ -1,4 +1,4 @@
1
- import type TypedEventEmitter from 'typed-emitter';
1
+ import EventEmitter from 'eventemitter3';
2
2
  import { SignalClient } from '../api/SignalClient';
3
3
  import type { SignalOptions } from '../api/SignalClient';
4
4
  import type { InternalRoomOptions } from '../options';
@@ -9,9 +9,8 @@ import type LocalTrack from './track/LocalTrack';
9
9
  import type LocalVideoTrack from './track/LocalVideoTrack';
10
10
  import type { SimulcastTrackInfo } from './track/LocalVideoTrack';
11
11
  import type { TrackPublishOptions } from './track/options';
12
- declare const RTCEngine_base: new () => TypedEventEmitter<EngineEventCallbacks>;
13
12
  /** @internal */
14
- export default class RTCEngine extends RTCEngine_base {
13
+ export default class RTCEngine extends EventEmitter<EngineEventCallbacks> {
15
14
  private options;
16
15
  publisher?: PCTransport;
17
16
  subscriber?: PCTransport;
@@ -123,5 +122,4 @@ export type EngineEventCallbacks = {
123
122
  transportsCreated: (publisher: PCTransport, subscriber: PCTransport) => void;
124
123
  dcBufferStatusChanged: (isLow: boolean, kind: DataPacket_Kind) => void;
125
124
  };
126
- export {};
127
125
  //# sourceMappingURL=RTCEngine.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RTCEngine.d.ts","sourceRoot":"","sources":["../../../src/room/RTCEngine.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAGL,UAAU,EACV,eAAe,EACf,gBAAgB,EAEhB,WAAW,EACX,SAAS,EACT,UAAU,EACX,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,eAAe,EACf,YAAY,EAKb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,WAAyB,MAAM,eAAe,CAAC;AAatD,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,eAAe,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,KAAK,EAAE,mBAAmB,EAAc,MAAM,iBAAiB,CAAC;wCAyBL,kBAAkB,oBAAoB,CAAC;AADzG,gBAAgB;AAChB,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,cAAmE;IAqF5F,OAAO,CAAC,OAAO;IApF3B,SAAS,CAAC,EAAE,WAAW,CAAC;IAExB,UAAU,CAAC,EAAE,WAAW,CAAC;IAEzB,MAAM,EAAE,YAAY,CAAC;IAErB,SAAS,EAAE,gBAAgB,CAAM;IAEjC,qBAAq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KAAK,IAAI,CAAC;CACxE,CAAC"}
@@ -1,4 +1,4 @@
1
- import type TypedEmitter from 'typed-emitter';
1
+ import EventEmitter from 'eventemitter3';
2
2
  import 'webrtc-adapter';
3
3
  import type { InternalRoomOptions, RoomConnectOptions, RoomOptions } from '../options';
4
4
  import { DataPacket_Kind, DisconnectReason, ParticipantPermission, SubscriptionError } from '../proto/livekit_models';
@@ -21,7 +21,6 @@ export declare enum ConnectionState {
21
21
  }
22
22
  /** @deprecated RoomState has been renamed to [[ConnectionState]] */
23
23
  export declare const RoomState: typeof ConnectionState;
24
- declare const Room_base: new () => TypedEmitter<RoomEventCallbacks>;
25
24
  /**
26
25
  * In LiveKit, a room is the logical grouping for a list of participants.
27
26
  * Participants in a room can publish tracks, and subscribe to others' tracks.
@@ -30,7 +29,7 @@ declare const Room_base: new () => TypedEmitter<RoomEventCallbacks>;
30
29
  *
31
30
  * @noInheritDoc
32
31
  */
33
- declare class Room extends Room_base {
32
+ declare class Room extends EventEmitter<RoomEventCallbacks> {
34
33
  state: ConnectionState;
35
34
  /** map of sid: [[RemoteParticipant]] */
36
35
  participants: Map<string, RemoteParticipant>;
@@ -192,7 +191,7 @@ declare class Room extends Room_base {
192
191
  * @experimental
193
192
  */
194
193
  simulateParticipants(options: SimulationOptions): Promise<void>;
195
- emit<E extends keyof RoomEventCallbacks>(event: E, ...args: Parameters<RoomEventCallbacks[E]>): boolean;
194
+ emit<T extends EventEmitter.EventNames<RoomEventCallbacks>>(event: T, ...args: EventEmitter.EventArgs<RoomEventCallbacks, T>): boolean;
196
195
  }
197
196
  export default Room;
198
197
  export type RoomEventCallbacks = {
@@ -1 +1 @@
1
- {"version":3,"file":"Room.d.ts","sourceRoot":"","sources":["../../../src/room/Room.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAO,gBAAgB,CAAC;AAGxB,OAAO,KAAK,EAEV,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACZ,MA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c,CAAC,EAAE,kBAAkB,GAClC,OAAO,CAAC,IAAI,CAAC;IAChB;;;;;;;;;;OAUG;IACG,WAAW,CACf,IAAI,EAAE,UAAU,EAChB,IAAI,EAAE,eAAe,EACrB,WAAW,CAAC,EAAE,iBAAiB,EAAE,GAAG,MAAM,EAAE,GAC3C,OAAO,CAAC,IAAI,CAAC;IAwChB;;;;;;;;;;;;;;;;OAgBG;IACH,+BAA+B,CAC7B,sBAAsB,EAAE,OAAO,EAC/B,2BAA2B,GAAE,0BAA0B,EAAO;IAShE,gBAAgB;IAChB,UAAU,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO;IA8B1C,OAAO,CAAC,kCAAkC,CASxC;IAEF,gBAAgB;IAChB,OAAO,CAAC,cAAc,CAEpB;IAGF,gBAAgB;IAChB,OAAO,CAAC,YAAY,CAWlB;IAEF,OAAO,CAAC,qBAAqB,CAG3B;IAEF,OAAO,CAAC,sBAAsB,CAG5B;IAEF,OAAO,CAAC,6BAA6B,CA0BnC;IAEF,OAAO,CAAC,2BAA2B,CAUjC;IAEF,OAAO,CAAC,gBAAgB,CA+CtB;IAEF,OAAO,CAAC,sBAAsB;IAwB9B,gBAAgB;IAChB,mBAAmB,IAAI,sBAAsB,EAAE;IAa/C,gBAAgB;IAChB,gBAAgB,IAAI,eAAe,EAAE;CAoBtC"}
@@ -1,4 +1,4 @@
1
- import type TypedEmitter from 'typed-emitter';
1
+ import EventEmitter from 'eventemitter3';
2
2
  import { DataPacket_Kind, ParticipantInfo, ParticipantPermission, ConnectionQuality as ProtoQuality, SubscriptionError } from '../../proto/livekit_models';
3
3
  import type LocalTrackPublication from '../track/LocalTrackPublication';
4
4
  import type RemoteTrack from '../track/RemoteTrack';
@@ -11,8 +11,7 @@ export declare enum ConnectionQuality {
11
11
  Poor = "poor",
12
12
  Unknown = "unknown"
13
13
  }
14
- declare const Participant_base: new () => TypedEmitter<ParticipantEventCallbacks>;
15
- export default class Participant extends Participant_base {
14
+ export default class Participant extends EventEmitter<ParticipantEventCallbacks> {
16
15
  protected participantInfo?: ParticipantInfo;
17
16
  audioTracks: Map<string, TrackPublication>;
18
17
  videoTracks: Map<string, TrackPublication>;
@@ -90,5 +89,4 @@ export type ParticipantEventCallbacks = {
90
89
  participantPermissionsChanged: (prevPermissions?: ParticipantPermission) => void;
91
90
  trackSubscriptionStatusChanged: (publication: RemoteTrackPublication, status: TrackPublication.SubscriptionStatus) => void;
92
91
  };
93
- export {};
94
92
  //# sourceMappingURL=Participant.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Participant.d.ts","sourceRoot":"","sources":["../../../../src/room/participant/Participant.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAE9C,OAAO,EACL,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,iBAAiB,IAAI,YAAY,EACjC,iBAAiB,EAClB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,qBAAqB,MAAM,gCAAgC,CAAC;AACxE,OAAO,KAAK,WAAW,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,sBAAsB,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAElE,oBAAY,iBAAiB;IAC3B,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,OAAO,YAAY;CACpB;0CAemE,aAAa,yBAAyB,CAAC;AAA3G,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,gBAAmE;IAC1G,SAAS,CAAC,eAAe,CAAC,EAAE,eAAe,CAAC;IAE5C,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAE3C,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAE3C,+CAA+C;IAC/C,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,gBA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,iBAAiB,KAAK,IAAI,CAAC;IACzE,uBAAuB,EAAE,CACvB,WAAW,EAAE,sBAAsB,EACnC,WAAW,EAAE,KAAK,CAAC,WAAW,KAC3B,IAAI,CAAC;IACV,kCAAkC,EAAE,CAClC,WAAW,EAAE,sBAAsB,EACnC,MAAM,EAAE,gBAAgB,CAAC,gBAAgB,KACtC,IAAI,CAAC;IACV,iBAAiB,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAC1C,6BAA6B,EAAE,CAAC,eAAe,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACjF,8BAA8B,EAAE,CAC9B,WAAW,EAAE,sBAAsB,EACnC,MAAM,EAAE,gBAAgB,CAAC,kBAAkB,KACxC,IAAI,CAAC;CACX,CAAC"}
1
+ {"version":3,"file":"Participant.d.ts","sourceRoot":"","sources":["../../../../src/room/participant/Participant.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,eAAe,CAAC;AAEzC,OAAO,EACL,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,iBAAiB,IAAI,YAAY,EACjC,iBAAiB,EAClB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,qBAAqB,MAAM,gCAAgC,CAAC;AACxE,OAAO,KAAK,WAAW,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,sBAAsB,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAElE,oBAAY,iBAAiB;IAC3B,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,OAAO,YAAY;CACpB;AAeD,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,YAAY,CAAC,yBAAyB,CAAC;IAC9E,SAAS,CAAC,eAAe,CAAC,EAAE,eAAe,CAAC;IAE5C,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,g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AAE,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IACnE,iBAAiB,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/C,wBAAwB,EAAE,CAAC,iBAAiB,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACzE,uBAAuB,EAAE,CACvB,WAAW,EAAE,sBAAsB,EACnC,WAAW,EAAE,KAAK,CAAC,WAAW,KAC3B,IAAI,CAAC;IACV,kCAAkC,EAAE,CAClC,WAAW,EAAE,sBAAsB,EACnC,MAAM,EAAE,gBAAgB,CAAC,gBAAgB,KACtC,IAAI,CAAC;IACV,iBAAiB,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAC1C,6BAA6B,EAAE,CAAC,eAAe,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACjF,8BAA8B,EAAE,CAC9B,WAAW,EAAE,sBAAsB,EACnC,MAAM,EAAE,gBAAgB,CAAC,kBAAkB,KACxC,IAAI,CAAC;CACX,CAAC"}
@@ -1,3 +1,4 @@
1
+ import type EventEmitter from 'eventemitter3';
1
2
  import type { SignalClient } from '../../api/SignalClient';
2
3
  import type { ParticipantInfo } from '../../proto/livekit_models';
3
4
  import RemoteTrackPublication from '../track/RemoteTrackPublication';
@@ -48,6 +49,6 @@ export default class RemoteParticipant extends Participant {
48
49
  */
49
50
  setAudioOutput(output: AudioOutputOptions): Promise<void>;
50
51
  /** @internal */
51
- emit<E extends keyof ParticipantEventCallbacks>(event: E, ...args: Parameters<ParticipantEventCallbacks[E]>): boolean;
52
+ emit<T extends EventEmitter.EventNames<ParticipantEventCallbacks>>(event: T, ...args: EventEmitter.EventArgs<ParticipantEventCallbacks, T>): boolean;
52
53
  }
53
54
  //# sourceMappingURL=RemoteParticipant.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RemoteParticipant.d.ts","sourceRoot":"","sources":["../../../../src/room/participant/RemoteParticipant.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,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,CAUf;AA2DD,gBAAgB;AAChB,wBAAgB,WAAW,CAAC,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,GAAG,SAAS,6BAelE;AAED,gBAAgB;AAChB,qBAAa,eAAe;IAC1B,OAAO,EAAE,MAAM,CAAC;IAEhB,QAAQ,EAAE,MAAM,CAAC;IAEjB,MAAM,EAAE,SAAS,GAAG,GAAG,GAAG,MAAM,GAAG,YAAY,CAAC;gBAEpC,eAAe,EAAE,MAAM;IAkBnC,QAAQ,IAAI,MAAM;CAGnB"}
@@ -29,6 +29,7 @@ export default abstract class LocalTrack extends Track {
29
29
  get isUpstreamPaused(): boolean;
30
30
  get isUserProvided(): boolean;
31
31
  get mediaStreamTrack(): MediaStreamTrack;
32
+ private setMediaStreamTrack;
32
33
  waitForDimensions(timeout?: number): Promise<Track.Dimensions>;
33
34
  /**
34
35
  * @returns DeviceID of the device that is currently being used for this track
@@ -49,8 +50,8 @@ export default abstract class LocalTrack extends Track {
49
50
  * the server.
50
51
  * this API is unsupported on Safari < 12 due to a bug
51
52
  **/
52
- pauseUpstream(): Promise<void>;
53
- resumeUpstream(): Promise<void>;
53
+ pauseUpstream: () => Promise<void>;
54
+ resumeUpstream: () => Promise<void>;
54
55
  /**
55
56
  * Sets a processor on this track.
56
57
  * 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":"AAKA,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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AAI,IAAI;CACzC"}
@@ -50,5 +50,5 @@ export default class LocalVideoTrack extends LocalTrack {
50
50
  protected handleAppVisibilityChanged(): Promise<void>;
51
51
  }
52
52
  export declare function videoQualityForRid(rid: string): VideoQuality;
53
- export declare function videoLayersFromEncodings(width: number, height: number, encodings?: RTCRtpEncodingParameters[]): VideoLayer[];
53
+ export declare function videoLayersFromEncodings(width: number, height: number, encodings?: RTCRtpEncodingParameters[], svc?: boolean): VideoLayer[];
54
54
  //# sourceMappingURL=LocalVideoTrack.d.ts.map
@@ -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,4BAA4B,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAGlF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAGjE,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,CAAC,CAAgC;IAElD,OAAO,CAAC,SAAS,CAAC,CAA6B;IAG/C,eAAe,EAAE,GAAG,CAAC,UAAU,EAAE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IAYvC,WAAW,CAAC,QAAQ,EAAE,kBAAkB;IAYxC,YAAY,CAAC,OAAO,CAAC,EAAE,mBAAmB;IAWhD,iBAAiB,CAAC,KAAK,EAAE,UAAU,EAAE,SAAS,CAAC,EAAE,wBAAwB,EAAE,GAAG,kBAAkB;IAchG,uBAAuB,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY;IAgB/D;;;OAGG;IACG,mBAAmB,CAAC,MAAM,EAAE,eAAe,EAAE,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;IAyC3E;;;OAGG;IACG,mBAAmB,CAAC,SAAS,EAAE,iBAAiB,EAAE;IASxD,SAAS,CAAC,aAAa,sBAyBrB;cAEc,0BAA0B;CAO3C;AAkHD,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,CAW5D;AAED,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,SAAS,CAAC,EAAE,wBAAwB,EAAE,EACtC,GAAG,CAAC,EAAE,OAAO,GACZ,UAAU,EAAE,CA6Cd"}
@@ -37,6 +37,7 @@ export default class RemoteVideoTrack extends RemoteTrack {
37
37
  private readonly debouncedHandleResize;
38
38
  private updateVisibility;
39
39
  private updateDimensions;
40
+ private getPixelDensity;
40
41
  }
41
42
  export interface ElementInfo {
42
43
  element: object;
@@ -1 +1 @@
1
- {"version":3,"file":"RemoteVideoTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/RemoteVideoTrack.ts"],"names":[],"mappings":"AAQA,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAItD,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,WAAW;IACvD,OAAO,CAAC,SAAS,CAAC,CAAqB;IAEvC,OAAO,CAAC,YAAY,CAAqB;IAEzC,OAAO,CAAC,sBAAsB,CAAC,CAAyB;IAExD,OAAO,CAAC,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BAAgB;IAyBxB,OAAO,CAAC,eAAe;CAiBxB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,IAAI,MAAM,CAAC;IAChB,MAAM,IAAI,MAAM,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;IAExC,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,uBAAuB,CAAC,EAAE,MAAM,IAAI,CAAC;IACrC,OAAO,IAAI,IAAI,CAAC;IAChB,aAAa,IAAI,IAAI,CAAC;CACvB"}
@@ -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,yB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AAK,EAAE,CAAC,KAAK,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAC7B,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAC/B,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IACjC,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAC7B,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,mBAAmB,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAC5C,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,iBAAiB,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,4 +1,4 @@
1
- import type TypedEventEmitter from 'typed-emitter';
1
+ import EventEmitter from 'eventemitter3';
2
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';
@@ -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;
@@ -65,5 +64,4 @@ export type PublicationEventCallbacks = {
65
64
  subscriptionStatusChanged: (status: TrackPublication.SubscriptionStatus, prevStatus: TrackPublication.SubscriptionStatus) => void;
66
65
  subscriptionFailed: (error: SubscriptionError) => void;
67
66
  };
68
- export {};
69
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,iBAAiB,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC/E,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,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BAAgB,EACzC,UAAU,EAAE,gBAAgB,CAAC,gBAAgB,KAC1C,IAAI,CAAC;IACV,kBAAkB,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACtD,UAAU,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IACzC,YAAY,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IAC3C,yBAAyB,EAAE,CACzB,MAAM,EAAE,gBAAgB,CAAC,kBAAkB,EAC3C,UAAU,EAAE,gBAAgB,CAAC,kBAAkB,KAC5C,IAAI,CAAC;IACV,kBAAkB,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;CACxD,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
  /**
@@ -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,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,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAKpF;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,UAAU,CAAC;AAElD,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;;;;;;CAMrB,CAAC"}
@@ -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,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 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/room/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkB,MAAM,yBAAyB,CAAC;AAIrE,OAAO,KAAK,eAAe,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,gBAAgB,MAAM,0BAA0B,CAAC;AAK7D,eAAO,MAAM,cAAc,4FACgE,CAAC;AAE5F,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAMvD;AAED,wBAAsB,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE3D;AAED,gBAAgB;AAChB,wBAAgB,mBAAmB,YAElC;AAED,gBAAgB;AAChB,wBAAgB,gBAAgB,YAE/B;AAED,wBAAgB,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gB,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,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;
@@ -1,4 +1,4 @@
1
- import { EventEmitter } from 'events';
1
+ import EventEmitter from 'eventemitter3';
2
2
  /** @internal */
3
3
  interface TrackBitrateInfo {
4
4
  sid: string;
@@ -1,4 +1,4 @@
1
- import type TypedEventEmitter from 'typed-emitter';
1
+ import EventEmitter from 'eventemitter3';
2
2
  import { SignalClient } from '../api/SignalClient';
3
3
  import type { SignalOptions } from '../api/SignalClient';
4
4
  import type { InternalRoomOptions } from '../options';
@@ -9,9 +9,8 @@ import type LocalTrack from './track/LocalTrack';
9
9
  import type LocalVideoTrack from './track/LocalVideoTrack';
10
10
  import type { SimulcastTrackInfo } from './track/LocalVideoTrack';
11
11
  import type { TrackPublishOptions } from './track/options';
12
- declare const RTCEngine_base: new () => TypedEventEmitter<EngineEventCallbacks>;
13
12
  /** @internal */
14
- export default class RTCEngine extends RTCEngine_base {
13
+ export default class RTCEngine extends EventEmitter<EngineEventCallbacks> {
15
14
  private options;
16
15
  publisher?: PCTransport;
17
16
  subscriber?: PCTransport;
@@ -123,5 +122,4 @@ export type EngineEventCallbacks = {
123
122
  transportsCreated: (publisher: PCTransport, subscriber: PCTransport) => void;
124
123
  dcBufferStatusChanged: (isLow: boolean, kind: DataPacket_Kind) => void;
125
124
  };
126
- export {};
127
125
  //# sourceMappingURL=RTCEngine.d.ts.map
@@ -1,4 +1,4 @@
1
- import type TypedEmitter from 'typed-emitter';
1
+ import EventEmitter from 'eventemitter3';
2
2
  import 'webrtc-adapter';
3
3
  import type { InternalRoomOptions, RoomConnectOptions, RoomOptions } from '../options';
4
4
  import { DataPacket_Kind, DisconnectReason, ParticipantPermission, SubscriptionError } from '../proto/livekit_models';
@@ -21,7 +21,6 @@ export declare enum ConnectionState {
21
21
  }
22
22
  /** @deprecated RoomState has been renamed to [[ConnectionState]] */
23
23
  export declare const RoomState: typeof ConnectionState;
24
- declare const Room_base: new () => TypedEmitter<RoomEventCallbacks>;
25
24
  /**
26
25
  * In LiveKit, a room is the logical grouping for a list of participants.
27
26
  * Participants in a room can publish tracks, and subscribe to others' tracks.
@@ -30,7 +29,7 @@ declare const Room_base: new () => TypedEmitter<RoomEventCallbacks>;
30
29
  *
31
30
  * @noInheritDoc
32
31
  */
33
- declare class Room extends Room_base {
32
+ declare class Room extends EventEmitter<RoomEventCallbacks> {
34
33
  state: ConnectionState;
35
34
  /** map of sid: [[RemoteParticipant]] */
36
35
  participants: Map<string, RemoteParticipant>;
@@ -192,7 +191,7 @@ declare class Room extends Room_base {
192
191
  * @experimental
193
192
  */
194
193
  simulateParticipants(options: SimulationOptions): Promise<void>;
195
- emit<E extends keyof RoomEventCallbacks>(event: E, ...args: Parameters<RoomEventCallbacks[E]>): boolean;
194
+ emit<T extends EventEmitter.EventNames<RoomEventCallbacks>>(event: T, ...args: EventEmitter.EventArgs<RoomEventCallbacks, T>): boolean;
196
195
  }
197
196
  export default Room;
198
197
  export type RoomEventCallbacks = {