livekit-client 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/livekit-client.e2ee.worker.js +1 -1
- package/dist/livekit-client.e2ee.worker.js.map +1 -1
- package/dist/livekit-client.e2ee.worker.mjs +4 -4
- package/dist/livekit-client.e2ee.worker.mjs.map +1 -1
- package/dist/livekit-client.esm.mjs +29 -21
- package/dist/livekit-client.esm.mjs.map +1 -1
- package/dist/livekit-client.umd.js +1 -1
- package/dist/livekit-client.umd.js.map +1 -1
- package/dist/src/room/Room.d.ts.map +1 -1
- package/dist/src/room/participant/LocalParticipant.d.ts.map +1 -1
- package/dist/src/room/track/LocalAudioTrack.d.ts +8 -7
- package/dist/src/room/track/LocalAudioTrack.d.ts.map +1 -1
- package/dist/src/room/track/LocalTrack.d.ts +10 -9
- package/dist/src/room/track/LocalTrack.d.ts.map +1 -1
- package/dist/src/room/track/LocalTrackPublication.d.ts +2 -2
- package/dist/src/room/track/LocalVideoTrack.d.ts +3 -3
- package/dist/src/room/track/LocalVideoTrack.d.ts.map +1 -1
- package/dist/src/room/track/RemoteAudioTrack.d.ts +2 -1
- package/dist/src/room/track/RemoteAudioTrack.d.ts.map +1 -1
- package/dist/src/room/track/RemoteTrack.d.ts +2 -2
- package/dist/src/room/track/RemoteTrack.d.ts.map +1 -1
- package/dist/src/room/track/RemoteVideoTrack.d.ts +2 -1
- package/dist/src/room/track/RemoteVideoTrack.d.ts.map +1 -1
- package/dist/src/room/track/Track.d.ts +3 -3
- package/dist/src/room/track/Track.d.ts.map +1 -1
- package/dist/src/room/track/processor/types.d.ts +4 -0
- package/dist/src/room/track/processor/types.d.ts.map +1 -1
- package/dist/ts4.2/src/room/track/LocalAudioTrack.d.ts +8 -7
- package/dist/ts4.2/src/room/track/LocalTrack.d.ts +10 -9
- package/dist/ts4.2/src/room/track/LocalTrackPublication.d.ts +2 -2
- package/dist/ts4.2/src/room/track/LocalVideoTrack.d.ts +3 -3
- package/dist/ts4.2/src/room/track/RemoteAudioTrack.d.ts +2 -1
- package/dist/ts4.2/src/room/track/RemoteTrack.d.ts +2 -2
- package/dist/ts4.2/src/room/track/RemoteVideoTrack.d.ts +2 -1
- package/dist/ts4.2/src/room/track/Track.d.ts +3 -3
- package/dist/ts4.2/src/room/track/processor/types.d.ts +4 -0
- package/package.json +1 -1
- package/src/api/SignalClient.ts +1 -1
- package/src/e2ee/worker/e2ee.worker.ts +8 -4
- package/src/room/Room.ts +3 -0
- package/src/room/participant/LocalParticipant.ts +0 -1
- package/src/room/track/LocalAudioTrack.ts +8 -11
- package/src/room/track/LocalTrack.ts +36 -23
- package/src/room/track/LocalVideoTrack.ts +3 -3
- package/src/room/track/RemoteAudioTrack.ts +1 -1
- package/src/room/track/RemoteTrack.ts +4 -2
- package/src/room/track/RemoteVideoTrack.ts +1 -1
- package/src/room/track/Track.ts +5 -3
- package/src/room/track/processor/types.ts +4 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Room.d.ts","sourceRoot":"","sources":["../../../src/room/Room.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAO,gBAAgB,CAAC;AAIxB,OAAO,KAAK,EAEV,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACZ,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,eAAe,EACf,gBAAgB,EAGhB,qBAAqB,EAIrB,iBAAiB,EAKlB,MAAM,4BAA4B,CAAC;AAYpC,OAAO,SAAS,MAAM,aAAa,CAAC;AAWpC,OAAO,gBAAgB,MAAM,gCAAgC,CAAC;AAC9D,OAAO,KAAK,WAAW,MAAM,2BAA2B,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,iBAAiB,MAAM,iCAAiC,CAAC;AAGhE,OAAO,qBAAqB,MAAM,+BAA+B,CAAC;AAElE,OAAO,KAAK,WAAW,MAAM,qBAAqB,CAAC;AACnD,OAAO,sBAAsB,MAAM,gCAAg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,GAAG,gBAAgB,EACpC,eAAe,CAAC,EAAE,OAAO,GACxB,OAAO,CAAC,qBAAqB,GAAG,SAAS,CAAC;IAiGvC,eAAe,CACnB,MAAM,EAAE,UAAU,EAAE,GAAG,gBAAgB,EAAE,GACxC,OAAO,CAAC,qBAAqB,EAAE,CAAC;IAO7B,kBAAkB,CAAC,OAAO,CAAC,EAAE,mBAAmB,EAAE,aAAa,GAAE,OAAc;IAoCrF;;;;;;OAMG;IACG,WAAW,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,GAAE,kBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;IAqBpF;;;;;;;;;;;;;;;;OAgBG;IACH,+BAA+B,CAC7B,sBAAsB,EAAE,OAAO,EAC/B,2BAA2B,GAAE,0BAA0B,EAAO;IAShE,gBAAgB;IAChB,UAAU,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO;IA+B1C,OAAO,CAAC,kCAAkC,CAUxC;IAEF,gBAAgB;IAChB,OAAO,CAAC,cAAc,CAEpB;IAGF,gBAAgB;IAChB,OAAO,CAAC,YAAY,CAclB;IAEF,OAAO,CAAC,qBAAqB,CAM3B;IAEF,OAAO,CAAC,sBAAsB,CAM5B;IAEF,OAAO,CAAC,6BAA6B,CA6BnC;IAEF,OAAO,CAAC,2BAA2B,CAUjC;IAEF,OAAO,CAAC,gBAAgB,CAyDtB;IAEF,OAAO,CAAC,sBAAsB;CAuB/B"}
|
@@ -1,13 +1,14 @@
|
|
1
1
|
import type { AudioSenderStats } from '../stats';
|
2
2
|
import type { LoggerOptions } from '../types';
|
3
3
|
import LocalTrack from './LocalTrack';
|
4
|
+
import { Track } from './Track';
|
4
5
|
import type { AudioCaptureOptions } from './options';
|
5
|
-
import type { TrackProcessor } from './processor/types';
|
6
|
-
export default class LocalAudioTrack extends LocalTrack {
|
6
|
+
import type { AudioProcessorOptions, TrackProcessor } from './processor/types';
|
7
|
+
export default class LocalAudioTrack extends LocalTrack<Track.Kind.Audio> {
|
7
8
|
/** @internal */
|
8
9
|
stopOnMute: boolean;
|
9
|
-
private audioContext?;
|
10
10
|
private prevStats?;
|
11
|
+
protected processor?: TrackProcessor<Track.Kind.Audio, AudioProcessorOptions> | undefined;
|
11
12
|
/**
|
12
13
|
*
|
13
14
|
* @param mediaTrack
|
@@ -16,13 +17,13 @@ export default class LocalAudioTrack extends LocalTrack {
|
|
16
17
|
*/
|
17
18
|
constructor(mediaTrack: MediaStreamTrack, constraints?: MediaTrackConstraints, userProvidedTrack?: boolean, audioContext?: AudioContext, loggerOptions?: LoggerOptions);
|
18
19
|
setDeviceId(deviceId: ConstrainDOMString): Promise<boolean>;
|
19
|
-
mute(): Promise<
|
20
|
-
unmute(): Promise<
|
20
|
+
mute(): Promise<typeof this>;
|
21
|
+
unmute(): Promise<typeof this>;
|
21
22
|
restartTrack(options?: AudioCaptureOptions): Promise<void>;
|
22
|
-
protected restart(constraints?: MediaTrackConstraints): Promise<
|
23
|
+
protected restart(constraints?: MediaTrackConstraints): Promise<typeof this>;
|
23
24
|
startMonitor(): void;
|
24
25
|
protected monitorSender: () => Promise<void>;
|
25
|
-
setProcessor(processor: TrackProcessor<
|
26
|
+
setProcessor(processor: TrackProcessor<Track.Kind.Audio, AudioProcessorOptions>): Promise<void>;
|
26
27
|
/**
|
27
28
|
* @internal
|
28
29
|
* @experimental
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LocalAudioTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/LocalAudioTrack.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,OAAO,UAAU,MAAM,cAAc,CAAC;
|
1
|
+
{"version":3,"file":"LocalAudioTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/LocalAudioTrack.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,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AAS;IAIhD,cAAc,IAAI,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC;IAyBvD,eAAe;CAUtB"}
|
@@ -3,7 +3,7 @@ import { Mutex } from '../utils';
|
|
3
3
|
import { Track } from './Track';
|
4
4
|
import type { VideoCodec } from './options';
|
5
5
|
import type { TrackProcessor } from './processor/types';
|
6
|
-
export default abstract class LocalTrack extends Track {
|
6
|
+
export default abstract class LocalTrack<TrackKind extends Track.Kind = Track.Kind> extends Track<TrackKind> {
|
7
7
|
/** @internal */
|
8
8
|
sender?: RTCRtpSender;
|
9
9
|
/** @internal */
|
@@ -15,8 +15,9 @@ export default abstract class LocalTrack extends Track {
|
|
15
15
|
protected muteLock: Mutex;
|
16
16
|
protected pauseUpstreamLock: Mutex;
|
17
17
|
protected processorElement?: HTMLMediaElement;
|
18
|
-
protected processor?: TrackProcessor<
|
18
|
+
protected processor?: TrackProcessor<TrackKind, any>;
|
19
19
|
protected processorLock: Mutex;
|
20
|
+
protected audioContext?: AudioContext;
|
20
21
|
/**
|
21
22
|
*
|
22
23
|
* @param mediaTrack
|
@@ -24,7 +25,7 @@ export default abstract class LocalTrack extends Track {
|
|
24
25
|
* @param constraints MediaTrackConstraints that are being used when restarting or reacquiring tracks
|
25
26
|
* @param userProvidedTrack Signals to the SDK whether or not the mediaTrack should be managed (i.e. released and reacquired) internally by the SDK
|
26
27
|
*/
|
27
|
-
protected constructor(mediaTrack: MediaStreamTrack, kind:
|
28
|
+
protected constructor(mediaTrack: MediaStreamTrack, kind: TrackKind, constraints?: MediaTrackConstraints, userProvidedTrack?: boolean, loggerOptions?: LoggerOptions);
|
28
29
|
get id(): string;
|
29
30
|
get dimensions(): Track.Dimensions | undefined;
|
30
31
|
private _isUpstreamPaused;
|
@@ -37,10 +38,10 @@ export default abstract class LocalTrack extends Track {
|
|
37
38
|
* @returns DeviceID of the device that is currently being used for this track
|
38
39
|
*/
|
39
40
|
getDeviceId(): Promise<string | undefined>;
|
40
|
-
mute(): Promise<
|
41
|
-
unmute(): Promise<
|
42
|
-
replaceTrack(track: MediaStreamTrack, userProvidedTrack?: boolean): Promise<
|
43
|
-
protected restart(constraints?: MediaTrackConstraints): Promise<
|
41
|
+
mute(): Promise<this>;
|
42
|
+
unmute(): Promise<this>;
|
43
|
+
replaceTrack(track: MediaStreamTrack, userProvidedTrack?: boolean): Promise<this>;
|
44
|
+
protected restart(constraints?: MediaTrackConstraints): Promise<this>;
|
44
45
|
protected setTrackMuted(muted: boolean): void;
|
45
46
|
protected get needsReAcquisition(): boolean;
|
46
47
|
protected handleAppVisibilityChanged(): Promise<void>;
|
@@ -74,8 +75,8 @@ export default abstract class LocalTrack extends Track {
|
|
74
75
|
* @param showProcessedStreamLocally
|
75
76
|
* @returns
|
76
77
|
*/
|
77
|
-
setProcessor(processor: TrackProcessor<
|
78
|
-
getProcessor(): TrackProcessor<
|
78
|
+
setProcessor(processor: TrackProcessor<TrackKind>, showProcessedStreamLocally?: boolean): Promise<void>;
|
79
|
+
getProcessor(): TrackProcessor<TrackKind, any> | undefined;
|
79
80
|
/**
|
80
81
|
* Stops the track processor
|
81
82
|
* 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,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,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,
|
1
|
+
{"version":3,"file":"LocalTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/LocalTrack.ts"],"names":[],"mappings":"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AG,SAAS,CAa7C;IAED,OAAO,CAAC,iBAAiB,CAAkB;IAE3C,IAAI,gBAAgB,YAEnB;IAED,IAAI,cAAc,YAEjB;IAED,IAAI,gBAAgB,qBAEnB;YAEa,mBAAmB;IAuE3B,iBAAiB,CAAC,OAAO,SAA2B,GAAG,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC;IAsBtF;;OAEG;IACG,WAAW,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAW1C,IAAI;IAKJ,MAAM;IAKN,YAAY,CAAC,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,UAAO;cAiBpD,OAAO,CAAC,WAAW,CAAC,EAAE,qBAAqB;IAyC3D,SAAS,CAAC,aAAa,CAAC,KAAK,EAAE,OAAO;IAYtC,SAAS,KAAK,kBAAkB,IAAI,OAAO,CAO1C;cAEe,0BAA0B;IAY1C,OAAO,CAAC,oBAAoB,CAGxB;IAEJ,OAAO,CAAC,yBAAyB,CAExB;IAET,OAAO,CAAC,sBAAsB,CAG5B;IAEF,OAAO,CAAC,WAAW,CAOjB;IAEF,IAAI;IAUJ;;;;;QAKI;IACE,aAAa;IAwBb,cAAc;IAoBpB;;;;;OAKG;IACG,iBAAiB,IAAI,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;IAQ9D;;;;;;;;;OASG;IACG,YAAY,CAAC,SAAS,EAAE,cAAc,CAAC,SAAS,CAAC,EAAE,0BAA0B,UAAO;IA6C1F,YAAY;IAIZ;;;;;;OAMG;IACG,aAAa;IAanB,SAAS,CAAC,QAAQ,CAAC,aAAa,IAAI,IAAI;CACzC"}
|
@@ -18,11 +18,11 @@ export default class LocalTrackPublication extends TrackPublication {
|
|
18
18
|
/**
|
19
19
|
* Mute the track associated with this publication
|
20
20
|
*/
|
21
|
-
mute(): Promise<LocalTrack | undefined>;
|
21
|
+
mute(): Promise<LocalTrack<Track.Kind> | undefined>;
|
22
22
|
/**
|
23
23
|
* Unmute track associated with this publication
|
24
24
|
*/
|
25
|
-
unmute(): Promise<LocalTrack | undefined>;
|
25
|
+
unmute(): Promise<LocalTrack<Track.Kind> | undefined>;
|
26
26
|
/**
|
27
27
|
* Pauses the media stream track associated with this publication from being sent to the server
|
28
28
|
* and signals "muted" event to other participants
|
@@ -14,7 +14,7 @@ export declare class SimulcastTrackInfo {
|
|
14
14
|
encodings?: RTCRtpEncodingParameters[];
|
15
15
|
constructor(codec: VideoCodec, mediaStreamTrack: MediaStreamTrack);
|
16
16
|
}
|
17
|
-
export default class LocalVideoTrack extends LocalTrack {
|
17
|
+
export default class LocalVideoTrack extends LocalTrack<Track.Kind.Video> {
|
18
18
|
signalClient?: SignalClient;
|
19
19
|
private prevStats?;
|
20
20
|
private encodings?;
|
@@ -33,8 +33,8 @@ export default class LocalVideoTrack extends LocalTrack {
|
|
33
33
|
stop(): void;
|
34
34
|
pauseUpstream(): Promise<void>;
|
35
35
|
resumeUpstream(): Promise<void>;
|
36
|
-
mute(): Promise<
|
37
|
-
unmute(): Promise<
|
36
|
+
mute(): Promise<typeof this>;
|
37
|
+
unmute(): Promise<typeof this>;
|
38
38
|
protected setTrackMuted(muted: boolean): void;
|
39
39
|
getSenderStats(): Promise<VideoSenderStats[]>;
|
40
40
|
setPublishingQuality(maxQuality: VideoQuality): void;
|
@@ -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,EAAqC,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC9F,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAEhF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,OAAO,UAAU,MAAM,cAAc,CAAC;A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CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY;IAgB/D;;;;OAIG;IACG,mBAAmB,CAAC,MAAM,EAAE,eAAe,EAAE,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;IA+C3E;;;OAGG;IACG,mBAAmB,CAAC,SAAS,EAAE,iBAAiB,EAAE;IAgBxD,SAAS,CAAC,aAAa,sBAyBrB;cAEc,0BAA0B;CAO3C;AAqHD,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"}
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import type { AudioReceiverStats } from '../stats';
|
2
2
|
import type { LoggerOptions } from '../types';
|
3
3
|
import RemoteTrack from './RemoteTrack';
|
4
|
+
import { Track } from './Track';
|
4
5
|
import type { AudioOutputOptions } from './options';
|
5
|
-
export default class RemoteAudioTrack extends RemoteTrack {
|
6
|
+
export default class RemoteAudioTrack extends RemoteTrack<Track.Kind.Audio> {
|
6
7
|
private prevStats?;
|
7
8
|
private elementVolume;
|
8
9
|
private audioContext?;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RemoteAudioTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/RemoteAudioTrack.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,OAAO,WAAW,MAAM,eAAe,CAAC;
|
1
|
+
{"version":3,"file":"RemoteAudioTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/RemoteAudioTrack.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAA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O,CAAC,kBAAkB;IAO1B,SAAS,CAAC,eAAe,sBAYvB;cAEc,gBAAgB,IAAI,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC;CAyB5E"}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import type { LoggerOptions } from '../types';
|
2
2
|
import { Track } from './Track';
|
3
|
-
export default abstract class RemoteTrack extends Track {
|
3
|
+
export default abstract class RemoteTrack<TrackKind extends Track.Kind = Track.Kind> extends Track<TrackKind> {
|
4
4
|
/** @internal */
|
5
5
|
receiver?: RTCRtpReceiver;
|
6
|
-
constructor(mediaTrack: MediaStreamTrack, sid: string, kind:
|
6
|
+
constructor(mediaTrack: MediaStreamTrack, sid: string, kind: TrackKind, receiver?: RTCRtpReceiver, loggerOptions?: LoggerOptions);
|
7
7
|
/** @internal */
|
8
8
|
setMuted(muted: boolean): void;
|
9
9
|
/** @internal */
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RemoteTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/RemoteTrack.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,
|
1
|
+
{"version":3,"file":"RemoteTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/RemoteTrack.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,WAAW,CACvC,SAAS,SAAS,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CACzC,SAAQ,KAAK,CAAC,SAAS,CAAC;IACxB,gBAAgB;IAChB,QAAQ,CAAC,EAAE,cAAc,CAAC;gBAGxB,UAAU,EAAE,gBAAgB,EAC5B,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,SAAS,EACf,QAAQ,CAAC,EAAE,cAAc,EACzB,aAAa,CAAC,EAAE,aAAa;IAQ/B,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"}
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import type { LoggerOptions } from '../types';
|
2
2
|
import RemoteTrack from './RemoteTrack';
|
3
|
+
import { Track } from './Track';
|
3
4
|
import type { AdaptiveStreamSettings } from './types';
|
4
|
-
export default class RemoteVideoTrack extends RemoteTrack {
|
5
|
+
export default class RemoteVideoTrack extends RemoteTrack<Track.Kind.Video> {
|
5
6
|
private prevStats?;
|
6
7
|
private elementInfos;
|
7
8
|
private adaptiveStreamSettings?;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RemoteVideoTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/RemoteVideoTrack.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAG9C,OAAO,WAAW,MAAM,eAAe,CAAC;
|
1
|
+
{"version":3,"file":"RemoteVideoTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/RemoteVideoTrack.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAG9C,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,KAAK,EAAgC,MAAM,SAAS,CAAC;AAC9D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAItD,MAAM,CAAC,OAAO,OAAO,gBAAiB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C;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"}
|
@@ -10,8 +10,8 @@ export declare enum VideoQuality {
|
|
10
10
|
HIGH = 2
|
11
11
|
}
|
12
12
|
declare const Track_base: new () => TypedEventEmitter<TrackEventCallbacks>;
|
13
|
-
export declare abstract class Track extends Track_base {
|
14
|
-
kind:
|
13
|
+
export declare abstract class Track<TrackKind extends Track.Kind = Track.Kind> extends Track_base {
|
14
|
+
readonly kind: TrackKind;
|
15
15
|
attachedElements: HTMLMediaElement[];
|
16
16
|
isMuted: boolean;
|
17
17
|
source: Track.Source;
|
@@ -36,7 +36,7 @@ export declare abstract class Track extends Track_base {
|
|
36
36
|
protected _currentBitrate: number;
|
37
37
|
protected monitorInterval?: ReturnType<typeof setInterval>;
|
38
38
|
protected log: StructuredLogger;
|
39
|
-
protected constructor(mediaTrack: MediaStreamTrack, kind:
|
39
|
+
protected constructor(mediaTrack: MediaStreamTrack, kind: TrackKind, loggerOptions?: LoggerOptions);
|
40
40
|
protected get logContext(): {
|
41
41
|
[x: string]: unknown;
|
42
42
|
};
|
@@ -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;AAC3D,OAAY,EAAe,gBAAgB,EAAa,MAAM,cAAc,CAAC;AAC7E,OAAO,EAEL,WAAW,EACX,SAAS,EACV,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,MAAM,4BAA4B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E,MAAM,IAAI,CAAC;IACjC,mBAAmB,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IAC7C,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,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,mBAAmB,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IAC7C,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,3 +1,4 @@
|
|
1
|
+
import type Room from '../../Room';
|
1
2
|
import type { Track } from '../Track';
|
2
3
|
/**
|
3
4
|
* @experimental
|
@@ -6,6 +7,7 @@ export type ProcessorOptions<T extends Track.Kind> = {
|
|
6
7
|
kind: T;
|
7
8
|
track: MediaStreamTrack;
|
8
9
|
element?: HTMLMediaElement;
|
10
|
+
audioContext?: AudioContext;
|
9
11
|
};
|
10
12
|
/**
|
11
13
|
* @experimental
|
@@ -27,5 +29,7 @@ export interface TrackProcessor<T extends Track.Kind, U extends ProcessorOptions
|
|
27
29
|
restart: (opts: U) => Promise<void>;
|
28
30
|
destroy: () => Promise<void>;
|
29
31
|
processedTrack?: MediaStreamTrack;
|
32
|
+
onPublish?: (room: Room) => Promise<void>;
|
33
|
+
onUnpublish?: () => Promise<void>;
|
30
34
|
}
|
31
35
|
//# sourceMappingURL=types.d.ts.map
|
@@ -1 +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;
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/room/track/processor/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,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;IAC3B,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC;IAC/E,YAAY,EAAE,YAAY,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC;CAAG;AAEpF;;GAEG;AACH,MAAM,WAAW,cAAc,CAC7B,CAAC,SAAS,KAAK,CAAC,IAAI,EACpB,CAAC,SAAS,gBAAgB,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC;IAEnD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACjC,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpC,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,cAAc,CAAC,EAAE,gBAAgB,CAAC;IAClC,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1C,WAAW,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACnC"}
|
@@ -1,13 +1,14 @@
|
|
1
1
|
import type { AudioSenderStats } from '../stats';
|
2
2
|
import type { LoggerOptions } from '../types';
|
3
3
|
import LocalTrack from './LocalTrack';
|
4
|
+
import { Track } from './Track';
|
4
5
|
import type { AudioCaptureOptions } from './options';
|
5
|
-
import type { TrackProcessor } from './processor/types';
|
6
|
-
export default class LocalAudioTrack extends LocalTrack {
|
6
|
+
import type { AudioProcessorOptions, TrackProcessor } from './processor/types';
|
7
|
+
export default class LocalAudioTrack extends LocalTrack<Track.Kind.Audio> {
|
7
8
|
/** @internal */
|
8
9
|
stopOnMute: boolean;
|
9
|
-
private audioContext?;
|
10
10
|
private prevStats?;
|
11
|
+
protected processor?: TrackProcessor<Track.Kind.Audio, AudioProcessorOptions> | undefined;
|
11
12
|
/**
|
12
13
|
*
|
13
14
|
* @param mediaTrack
|
@@ -16,13 +17,13 @@ export default class LocalAudioTrack extends LocalTrack {
|
|
16
17
|
*/
|
17
18
|
constructor(mediaTrack: MediaStreamTrack, constraints?: MediaTrackConstraints, userProvidedTrack?: boolean, audioContext?: AudioContext, loggerOptions?: LoggerOptions);
|
18
19
|
setDeviceId(deviceId: ConstrainDOMString): Promise<boolean>;
|
19
|
-
mute(): Promise<
|
20
|
-
unmute(): Promise<
|
20
|
+
mute(): Promise<typeof this>;
|
21
|
+
unmute(): Promise<typeof this>;
|
21
22
|
restartTrack(options?: AudioCaptureOptions): Promise<void>;
|
22
|
-
protected restart(constraints?: MediaTrackConstraints): Promise<
|
23
|
+
protected restart(constraints?: MediaTrackConstraints): Promise<typeof this>;
|
23
24
|
startMonitor(): void;
|
24
25
|
protected monitorSender: () => Promise<void>;
|
25
|
-
setProcessor(processor: TrackProcessor<
|
26
|
+
setProcessor(processor: TrackProcessor<Track.Kind.Audio, AudioProcessorOptions>): Promise<void>;
|
26
27
|
/**
|
27
28
|
* @internal
|
28
29
|
* @experimental
|
@@ -3,7 +3,7 @@ import { Mutex } from '../utils';
|
|
3
3
|
import { Track } from './Track';
|
4
4
|
import type { VideoCodec } from './options';
|
5
5
|
import type { TrackProcessor } from './processor/types';
|
6
|
-
export default abstract class LocalTrack extends Track {
|
6
|
+
export default abstract class LocalTrack<TrackKind extends Track.Kind = Track.Kind> extends Track<TrackKind> {
|
7
7
|
/** @internal */
|
8
8
|
sender?: RTCRtpSender;
|
9
9
|
/** @internal */
|
@@ -15,8 +15,9 @@ export default abstract class LocalTrack extends Track {
|
|
15
15
|
protected muteLock: Mutex;
|
16
16
|
protected pauseUpstreamLock: Mutex;
|
17
17
|
protected processorElement?: HTMLMediaElement;
|
18
|
-
protected processor?: TrackProcessor<
|
18
|
+
protected processor?: TrackProcessor<TrackKind, any>;
|
19
19
|
protected processorLock: Mutex;
|
20
|
+
protected audioContext?: AudioContext;
|
20
21
|
/**
|
21
22
|
*
|
22
23
|
* @param mediaTrack
|
@@ -24,7 +25,7 @@ export default abstract class LocalTrack extends Track {
|
|
24
25
|
* @param constraints MediaTrackConstraints that are being used when restarting or reacquiring tracks
|
25
26
|
* @param userProvidedTrack Signals to the SDK whether or not the mediaTrack should be managed (i.e. released and reacquired) internally by the SDK
|
26
27
|
*/
|
27
|
-
protected constructor(mediaTrack: MediaStreamTrack, kind:
|
28
|
+
protected constructor(mediaTrack: MediaStreamTrack, kind: TrackKind, constraints?: MediaTrackConstraints, userProvidedTrack?: boolean, loggerOptions?: LoggerOptions);
|
28
29
|
get id(): string;
|
29
30
|
get dimensions(): Track.Dimensions | undefined;
|
30
31
|
private _isUpstreamPaused;
|
@@ -37,10 +38,10 @@ export default abstract class LocalTrack extends Track {
|
|
37
38
|
* @returns DeviceID of the device that is currently being used for this track
|
38
39
|
*/
|
39
40
|
getDeviceId(): Promise<string | undefined>;
|
40
|
-
mute(): Promise<
|
41
|
-
unmute(): Promise<
|
42
|
-
replaceTrack(track: MediaStreamTrack, userProvidedTrack?: boolean): Promise<
|
43
|
-
protected restart(constraints?: MediaTrackConstraints): Promise<
|
41
|
+
mute(): Promise<this>;
|
42
|
+
unmute(): Promise<this>;
|
43
|
+
replaceTrack(track: MediaStreamTrack, userProvidedTrack?: boolean): Promise<this>;
|
44
|
+
protected restart(constraints?: MediaTrackConstraints): Promise<this>;
|
44
45
|
protected setTrackMuted(muted: boolean): void;
|
45
46
|
protected get needsReAcquisition(): boolean;
|
46
47
|
protected handleAppVisibilityChanged(): Promise<void>;
|
@@ -74,8 +75,8 @@ export default abstract class LocalTrack extends Track {
|
|
74
75
|
* @param showProcessedStreamLocally
|
75
76
|
* @returns
|
76
77
|
*/
|
77
|
-
setProcessor(processor: TrackProcessor<
|
78
|
-
getProcessor(): TrackProcessor<
|
78
|
+
setProcessor(processor: TrackProcessor<TrackKind>, showProcessedStreamLocally?: boolean): Promise<void>;
|
79
|
+
getProcessor(): TrackProcessor<TrackKind, any> | undefined;
|
79
80
|
/**
|
80
81
|
* Stops the track processor
|
81
82
|
* See https://github.com/livekit/track-processors-js for example usage
|
@@ -18,11 +18,11 @@ export default class LocalTrackPublication extends TrackPublication {
|
|
18
18
|
/**
|
19
19
|
* Mute the track associated with this publication
|
20
20
|
*/
|
21
|
-
mute(): Promise<LocalTrack | undefined>;
|
21
|
+
mute(): Promise<LocalTrack<Track.Kind> | undefined>;
|
22
22
|
/**
|
23
23
|
* Unmute track associated with this publication
|
24
24
|
*/
|
25
|
-
unmute(): Promise<LocalTrack | undefined>;
|
25
|
+
unmute(): Promise<LocalTrack<Track.Kind> | undefined>;
|
26
26
|
/**
|
27
27
|
* Pauses the media stream track associated with this publication from being sent to the server
|
28
28
|
* and signals "muted" event to other participants
|
@@ -14,7 +14,7 @@ export declare class SimulcastTrackInfo {
|
|
14
14
|
encodings?: RTCRtpEncodingParameters[];
|
15
15
|
constructor(codec: VideoCodec, mediaStreamTrack: MediaStreamTrack);
|
16
16
|
}
|
17
|
-
export default class LocalVideoTrack extends LocalTrack {
|
17
|
+
export default class LocalVideoTrack extends LocalTrack<Track.Kind.Video> {
|
18
18
|
signalClient?: SignalClient;
|
19
19
|
private prevStats?;
|
20
20
|
private encodings?;
|
@@ -33,8 +33,8 @@ export default class LocalVideoTrack extends LocalTrack {
|
|
33
33
|
stop(): void;
|
34
34
|
pauseUpstream(): Promise<void>;
|
35
35
|
resumeUpstream(): Promise<void>;
|
36
|
-
mute(): Promise<
|
37
|
-
unmute(): Promise<
|
36
|
+
mute(): Promise<typeof this>;
|
37
|
+
unmute(): Promise<typeof this>;
|
38
38
|
protected setTrackMuted(muted: boolean): void;
|
39
39
|
getSenderStats(): Promise<VideoSenderStats[]>;
|
40
40
|
setPublishingQuality(maxQuality: VideoQuality): void;
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import type { AudioReceiverStats } from '../stats';
|
2
2
|
import type { LoggerOptions } from '../types';
|
3
3
|
import RemoteTrack from './RemoteTrack';
|
4
|
+
import { Track } from './Track';
|
4
5
|
import type { AudioOutputOptions } from './options';
|
5
|
-
export default class RemoteAudioTrack extends RemoteTrack {
|
6
|
+
export default class RemoteAudioTrack extends RemoteTrack<Track.Kind.Audio> {
|
6
7
|
private prevStats?;
|
7
8
|
private elementVolume;
|
8
9
|
private audioContext?;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import type { LoggerOptions } from '../types';
|
2
2
|
import { Track } from './Track';
|
3
|
-
export default abstract class RemoteTrack extends Track {
|
3
|
+
export default abstract class RemoteTrack<TrackKind extends Track.Kind = Track.Kind> extends Track<TrackKind> {
|
4
4
|
/** @internal */
|
5
5
|
receiver?: RTCRtpReceiver;
|
6
|
-
constructor(mediaTrack: MediaStreamTrack, sid: string, kind:
|
6
|
+
constructor(mediaTrack: MediaStreamTrack, sid: string, kind: TrackKind, receiver?: RTCRtpReceiver, loggerOptions?: LoggerOptions);
|
7
7
|
/** @internal */
|
8
8
|
setMuted(muted: boolean): void;
|
9
9
|
/** @internal */
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import type { LoggerOptions } from '../types';
|
2
2
|
import RemoteTrack from './RemoteTrack';
|
3
|
+
import { Track } from './Track';
|
3
4
|
import type { AdaptiveStreamSettings } from './types';
|
4
|
-
export default class RemoteVideoTrack extends RemoteTrack {
|
5
|
+
export default class RemoteVideoTrack extends RemoteTrack<Track.Kind.Video> {
|
5
6
|
private prevStats?;
|
6
7
|
private elementInfos;
|
7
8
|
private adaptiveStreamSettings?;
|
@@ -10,8 +10,8 @@ export declare enum VideoQuality {
|
|
10
10
|
HIGH = 2
|
11
11
|
}
|
12
12
|
declare const Track_base: new () => TypedEventEmitter<TrackEventCallbacks>;
|
13
|
-
export declare abstract class Track extends Track_base {
|
14
|
-
kind:
|
13
|
+
export declare abstract class Track<TrackKind extends Track.Kind = Track.Kind> extends Track_base {
|
14
|
+
readonly kind: TrackKind;
|
15
15
|
attachedElements: HTMLMediaElement[];
|
16
16
|
isMuted: boolean;
|
17
17
|
source: Track.Source;
|
@@ -36,7 +36,7 @@ export declare abstract class Track extends Track_base {
|
|
36
36
|
protected _currentBitrate: number;
|
37
37
|
protected monitorInterval?: ReturnType<typeof setInterval>;
|
38
38
|
protected log: StructuredLogger;
|
39
|
-
protected constructor(mediaTrack: MediaStreamTrack, kind:
|
39
|
+
protected constructor(mediaTrack: MediaStreamTrack, kind: TrackKind, loggerOptions?: LoggerOptions);
|
40
40
|
protected get logContext(): {
|
41
41
|
[x: string]: unknown;
|
42
42
|
};
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type Room from '../../Room';
|
1
2
|
import type { Track } from '../Track';
|
2
3
|
/**
|
3
4
|
* @experimental
|
@@ -6,6 +7,7 @@ export type ProcessorOptions<T extends Track.Kind> = {
|
|
6
7
|
kind: T;
|
7
8
|
track: MediaStreamTrack;
|
8
9
|
element?: HTMLMediaElement;
|
10
|
+
audioContext?: AudioContext;
|
9
11
|
};
|
10
12
|
/**
|
11
13
|
* @experimental
|
@@ -27,5 +29,7 @@ export interface TrackProcessor<T extends Track.Kind, U extends ProcessorOptions
|
|
27
29
|
restart: (opts: U) => Promise<void>;
|
28
30
|
destroy: () => Promise<void>;
|
29
31
|
processedTrack?: MediaStreamTrack;
|
32
|
+
onPublish?: (room: Room) => Promise<void>;
|
33
|
+
onUnpublish?: () => Promise<void>;
|
30
34
|
}
|
31
35
|
//# sourceMappingURL=types.d.ts.map
|
package/package.json
CHANGED
package/src/api/SignalClient.ts
CHANGED
@@ -317,7 +317,7 @@ export class SignalClient {
|
|
317
317
|
let resp: SignalResponse;
|
318
318
|
if (typeof ev.data === 'string') {
|
319
319
|
const json = JSON.parse(ev.data);
|
320
|
-
resp = SignalResponse.fromJson(json);
|
320
|
+
resp = SignalResponse.fromJson(json, { ignoreUnknownFields: true });
|
321
321
|
} else if (ev.data instanceof ArrayBuffer) {
|
322
322
|
resp = SignalResponse.fromBinary(new Uint8Array(ev.data));
|
323
323
|
} else {
|
@@ -84,7 +84,7 @@ onmessage = (ev) => {
|
|
84
84
|
}
|
85
85
|
break;
|
86
86
|
case 'removeTransform':
|
87
|
-
unsetCryptorParticipant(data.trackId);
|
87
|
+
unsetCryptorParticipant(data.trackId, data.participantIdentity);
|
88
88
|
break;
|
89
89
|
case 'updateCodec':
|
90
90
|
getTrackCryptor(data.participantIdentity, data.trackId).setVideoCodec(data.codec);
|
@@ -125,7 +125,9 @@ async function handleRatchetRequest(data: RatchetRequestMessage['data']) {
|
|
125
125
|
}
|
126
126
|
|
127
127
|
function getTrackCryptor(participantIdentity: string, trackId: string) {
|
128
|
-
let cryptor = participantCryptors.find(
|
128
|
+
let cryptor = participantCryptors.find(
|
129
|
+
(c) => c.getParticipantIdentity() === participantIdentity && c.getTrackId() === trackId,
|
130
|
+
);
|
129
131
|
if (!cryptor) {
|
130
132
|
workerLogger.info('creating new cryptor for', { participantIdentity });
|
131
133
|
if (!keyProviderOptions) {
|
@@ -172,8 +174,10 @@ function getSharedKeyHandler() {
|
|
172
174
|
return sharedKeyHandler;
|
173
175
|
}
|
174
176
|
|
175
|
-
function unsetCryptorParticipant(trackId: string) {
|
176
|
-
participantCryptors
|
177
|
+
function unsetCryptorParticipant(trackId: string, participantIdentity: string) {
|
178
|
+
participantCryptors
|
179
|
+
.find((c) => c.getParticipantIdentity() === participantIdentity && c.getTrackId() === trackId)
|
180
|
+
?.unsetParticipant();
|
177
181
|
}
|
178
182
|
|
179
183
|
function setEncryptionEnabled(enable: boolean, participantIdentity: string) {
|