livekit-client 2.7.2 → 2.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/livekit-client.esm.mjs +50 -19
- 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/e2ee/E2eeManager.d.ts +10 -3
- package/dist/src/e2ee/E2eeManager.d.ts.map +1 -1
- package/dist/src/e2ee/types.d.ts +6 -1
- package/dist/src/e2ee/types.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/room/PCTransport.d.ts.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/participant/Participant.d.ts +1 -1
- package/dist/src/room/participant/Participant.d.ts.map +1 -1
- package/dist/src/room/participant/RemoteParticipant.d.ts +1 -1
- package/dist/src/room/participant/RemoteParticipant.d.ts.map +1 -1
- package/dist/ts4.2/src/e2ee/E2eeManager.d.ts +10 -3
- package/dist/ts4.2/src/e2ee/types.d.ts +6 -1
- package/dist/ts4.2/src/index.d.ts +1 -0
- package/dist/ts4.2/src/room/participant/Participant.d.ts +1 -1
- package/dist/ts4.2/src/room/participant/RemoteParticipant.d.ts +1 -1
- package/package.json +1 -1
- package/src/e2ee/E2eeManager.ts +14 -3
- package/src/e2ee/types.ts +8 -1
- package/src/index.ts +1 -0
- package/src/room/PCTransport.ts +16 -0
- package/src/room/Room.ts +27 -11
- package/src/room/participant/LocalParticipant.test.ts +4 -0
- package/src/room/participant/LocalParticipant.ts +14 -4
- package/src/room/participant/Participant.ts +2 -1
- package/src/room/participant/RemoteParticipant.ts +3 -1
- package/src/room/track/utils.ts +2 -2
@@ -44,6 +44,7 @@ export default class RemoteParticipant extends Participant {
|
|
44
44
|
pi.identity,
|
45
45
|
pi.name,
|
46
46
|
pi.metadata,
|
47
|
+
pi.attributes,
|
47
48
|
loggerOptions,
|
48
49
|
pi.kind,
|
49
50
|
);
|
@@ -64,10 +65,11 @@ export default class RemoteParticipant extends Participant {
|
|
64
65
|
identity?: string,
|
65
66
|
name?: string,
|
66
67
|
metadata?: string,
|
68
|
+
attributes?: Record<string, string>,
|
67
69
|
loggerOptions?: LoggerOptions,
|
68
70
|
kind: ParticipantKind = ParticipantKind.STANDARD,
|
69
71
|
) {
|
70
|
-
super(sid, identity || '', name, metadata, loggerOptions, kind);
|
72
|
+
super(sid, identity || '', name, metadata, attributes, loggerOptions, kind);
|
71
73
|
this.signalClient = signalClient;
|
72
74
|
this.trackPublications = new Map();
|
73
75
|
this.audioTrackPublications = new Map();
|
package/src/room/track/utils.ts
CHANGED
@@ -279,11 +279,11 @@ export function extractProcessorsFromOptions(options: CreateLocalTracksOptions)
|
|
279
279
|
|
280
280
|
if (typeof newOptions.audio === 'object' && newOptions.audio.processor) {
|
281
281
|
audioProcessor = newOptions.audio.processor;
|
282
|
-
newOptions.audio.processor
|
282
|
+
newOptions.audio = { ...newOptions.audio, processor: undefined };
|
283
283
|
}
|
284
284
|
if (typeof newOptions.video === 'object' && newOptions.video.processor) {
|
285
285
|
videoProcessor = newOptions.video.processor;
|
286
|
-
newOptions.video.processor
|
286
|
+
newOptions.video = { ...newOptions.video, processor: undefined };
|
287
287
|
}
|
288
288
|
|
289
289
|
return { audioProcessor, videoProcessor, optionsWithoutProcessor: newOptions };
|