livekit-client 2.5.5 → 2.5.7
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 +5443 -736
- package/dist/livekit-client.e2ee.worker.mjs.map +1 -1
- package/dist/livekit-client.esm.mjs +2129 -1954
- 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/worker/FrameCryptor.d.ts +2 -2
- package/dist/src/e2ee/worker/FrameCryptor.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/room/Room.d.ts +2 -1
- package/dist/src/room/Room.d.ts.map +1 -1
- package/dist/src/room/events.d.ts +2 -2
- 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/track/Track.d.ts +1 -1
- package/dist/src/room/track/Track.d.ts.map +1 -1
- package/dist/src/room/utils.d.ts +1 -1
- package/dist/src/room/utils.d.ts.map +1 -1
- package/dist/src/test/mocks.d.ts +1 -1
- package/dist/src/test/mocks.d.ts.map +1 -1
- package/dist/ts4.2/src/e2ee/worker/FrameCryptor.d.ts +2 -2
- package/dist/ts4.2/src/index.d.ts +2 -2
- package/dist/ts4.2/src/room/Room.d.ts +2 -1
- package/dist/ts4.2/src/room/events.d.ts +2 -2
- package/dist/ts4.2/src/room/participant/Participant.d.ts +1 -1
- package/dist/ts4.2/src/room/track/Track.d.ts +1 -1
- package/dist/ts4.2/src/room/utils.d.ts +1 -1
- package/dist/ts4.2/src/test/mocks.d.ts +1 -1
- package/package.json +10 -11
- package/src/e2ee/E2eeManager.ts +8 -8
- package/src/e2ee/worker/FrameCryptor.test.ts +249 -2
- package/src/e2ee/worker/FrameCryptor.ts +13 -7
- package/src/e2ee/worker/ParticipantKeyHandler.test.ts +122 -0
- package/src/e2ee/worker/ParticipantKeyHandler.ts +1 -1
- package/src/e2ee/worker/e2ee.worker.ts +82 -78
- package/src/index.ts +2 -0
- package/src/room/Room.ts +16 -10
- package/src/room/events.ts +2 -2
- package/src/room/participant/Participant.ts +3 -2
- package/src/room/track/Track.ts +1 -1
- package/src/room/track/utils.ts +1 -1
- package/src/room/utils.ts +1 -1
- package/src/test/mocks.ts +1 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
import type TypedEventEmitter from 'typed-emitter';
|
2
2
|
import type { VideoCodec } from '../../room/track/options';
|
3
|
-
import { CryptorCallbacks } from '../events';
|
3
|
+
import { type CryptorCallbacks } from '../events';
|
4
4
|
import type { KeyProviderOptions } from '../types';
|
5
5
|
import type { ParticipantKeyHandler } from './ParticipantKeyHandler';
|
6
6
|
export declare const encryptionEnabledMap: Map<string, boolean>;
|
@@ -64,7 +64,7 @@ export declare class FrameCryptor extends BaseFrameCryptor {
|
|
64
64
|
* @param map
|
65
65
|
*/
|
66
66
|
setRtpMap(map: Map<number, VideoCodec>): void;
|
67
|
-
setupTransform(operation: 'encode' | 'decode', readable: ReadableStream
|
67
|
+
setupTransform(operation: 'encode' | 'decode', readable: ReadableStream<RTCEncodedVideoFrame | RTCEncodedAudioFrame>, writable: WritableStream<RTCEncodedVideoFrame | RTCEncodedAudioFrame>, trackId: string, codec?: VideoCodec): void;
|
68
68
|
setSifTrailer(trailer: Uint8Array): void;
|
69
69
|
/**
|
70
70
|
* Function that will be injected in a stream and will encrypt the given encoded frames.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"FrameCryptor.d.ts","sourceRoot":"","sources":["../../../../src/e2ee/worker/FrameCryptor.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAC;AAEnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAG3D,OAAO,EAAE,gBAAgB,EAAgB,MAAM,WAAW,CAAC;
|
1
|
+
{"version":3,"file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EG;IACH,OAAO,CAAC,aAAa;CAQtB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,EAAE,CA0B5D;AAED,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,QAAQ,CAEzD;AAID,oBAAY,QAAQ;IAClB,uCAAuC;IACvC,aAAa,IAAI;IACjB,mCAAmC;IACnC,iBAAiB,IAAI;IACrB,mCAAmC;IACnC,iBAAiB,IAAI;IACrB,mCAAmC;IACnC,iBAAiB,IAAI;IACrB,oCAAoC;IACpC,SAAS,IAAI;IACb,2CAA2C;IAC3C,GAAG,IAAI;IACP,6BAA6B;IAC7B,GAAG,IAAI;IACP,4BAA4B;IAC5B,GAAG,IAAI;IACP,4BAA4B;IAC5B,GAAG,IAAI;IACP,sBAAsB;IACtB,OAAO,KAAK;IACZ,oBAAoB;IACpB,UAAU,KAAK;IACf,kBAAkB;IAClB,WAAW,KAAK;IAChB,uCAAuC;IACvC,OAAO,KAAK;IACZ,sBAAsB;IACtB,WAAW,KAAK;IAChB,oCAAoC;IACpC,UAAU,KAAK;IACf,0BAA0B;IAC1B,GAAG,KAAK;IAIR,qEAAqE;IACrE,SAAS,KAAK;IACd,4BAA4B;IAC5B,SAAS,KAAK;IACd,0FAA0F;IAC1F,eAAe,KAAK;CAGrB;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,GAAG,OAAO,CAQ/F"}
|
package/dist/src/index.d.ts
CHANGED
@@ -20,7 +20,7 @@ import RemoteVideoTrack from './room/track/RemoteVideoTrack';
|
|
20
20
|
import { TrackPublication } from './room/track/TrackPublication';
|
21
21
|
import type { LiveKitReactNativeInfo } from './room/types';
|
22
22
|
import type { AudioAnalyserOptions } from './room/utils';
|
23
|
-
import { Mutex, createAudioAnalyser, getEmptyAudioStreamTrack, getEmptyVideoStreamTrack, isBrowserSupported, supportsAV1, supportsAdaptiveStream, supportsDynacast, supportsVP9 } from './room/utils';
|
23
|
+
import { Mutex, compareVersions, createAudioAnalyser, getEmptyAudioStreamTrack, getEmptyVideoStreamTrack, isBrowserSupported, supportsAV1, supportsAdaptiveStream, supportsDynacast, supportsVP9 } from './room/utils';
|
24
24
|
import { getBrowser } from './utils/browserParser';
|
25
25
|
export * from './connectionHelper/ConnectionCheck';
|
26
26
|
export * from './connectionHelper/checks/Checker';
|
@@ -36,6 +36,6 @@ export * from './room/track/processor/types';
|
|
36
36
|
export * from './room/track/types';
|
37
37
|
export type { DataPublishOptions, SimulationScenario, TranscriptionSegment, ChatMessage, } from './room/types';
|
38
38
|
export * from './version';
|
39
|
-
export { ConnectionQuality, ConnectionState, CriticalTimers, DataPacket_Kind, DefaultReconnectPolicy, DisconnectReason, LocalAudioTrack, LocalParticipant, LocalTrack, LocalTrackPublication, LocalVideoTrack, LogLevel, LoggerNames, Participant, RemoteAudioTrack, RemoteParticipant, ParticipantKind, RemoteTrack, RemoteTrackPublication, RemoteVideoTrack, Room, SubscriptionError, TrackPublication, createAudioAnalyser, getBrowser, getEmptyAudioStreamTrack, getEmptyVideoStreamTrack, getLogger, isBrowserSupported, setLogExtension, setLogLevel, supportsAV1, supportsAdaptiveStream, supportsDynacast, supportsVP9, Mutex, };
|
39
|
+
export { ConnectionQuality, ConnectionState, CriticalTimers, DataPacket_Kind, DefaultReconnectPolicy, DisconnectReason, LocalAudioTrack, LocalParticipant, LocalTrack, LocalTrackPublication, LocalVideoTrack, LogLevel, LoggerNames, Participant, RemoteAudioTrack, RemoteParticipant, ParticipantKind, RemoteTrack, RemoteTrackPublication, RemoteVideoTrack, Room, SubscriptionError, TrackPublication, compareVersions, createAudioAnalyser, getBrowser, getEmptyAudioStreamTrack, getEmptyVideoStreamTrack, getLogger, isBrowserSupported, setLogExtension, setLogLevel, supportsAV1, supportsAdaptiveStream, supportsDynacast, supportsVP9, Mutex, };
|
40
40
|
export type { AudioAnalyserOptions, ElementInfo, LiveKitReactNativeInfo, ParticipantTrackPermission, AudioReceiverStats, AudioSenderStats, VideoReceiverStats, VideoSenderStats, };
|
41
41
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACzF,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC1F,OAAO,sBAAsB,MAAM,+BAA+B,CAAC;AACnE,OAAO,IAAI,EAAE,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,gBAAgB,MAAM,qCAAqC,CAAC;AACnE,OAAO,WAAW,EAAE,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAChG,OAAO,iBAAiB,MAAM,sCAAsC,CAAC;AACrE,OAAO,KAAK,EACV,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,cAAc,CAAC;AACtB,OAAO,cAAc,MAAM,eAAe,CAAC;AAC3C,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAC3D,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,qBAAqB,MAAM,oCAAoC,CAAC;AACvE,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAC3D,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAC7D,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,sBAAsB,MAAM,qCAAqC,CAAC;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAC7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,EAChB,eAAe,EACf,mBAAmB,EACnB,UAAU,EACV,wBAAwB,EACxB,wBAAwB,EACxB,SAAS,EACT,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,WAAW,EACX,sBAAsB,EACtB,gBAAgB,EAChB,WAAW,EACX,KAAK,GACN,CAAC;AACF,YAAY,EACV,oBAAoB,EACpB,WAAW,EACX,sBAAsB,EACtB,0BAA0B,EAC1B,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,GACjB,CAAC"}
|
package/dist/src/room/Room.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { DataPacket_Kind, DisconnectReason, ParticipantPermission, SipDTMF, SubscriptionError, TranscriptionSegment as TranscriptionSegmentModel } from '@livekit/protocol';
|
1
|
+
import { DataPacket_Kind, DisconnectReason, ParticipantPermission, ServerInfo, SipDTMF, SubscriptionError, TranscriptionSegment as TranscriptionSegmentModel } from '@livekit/protocol';
|
2
2
|
import type TypedEmitter from 'typed-emitter';
|
3
3
|
import 'webrtc-adapter';
|
4
4
|
import type { InternalRoomOptions, RoomConnectOptions, RoomOptions } from '../options';
|
@@ -48,6 +48,7 @@ declare class Room extends Room_base {
|
|
48
48
|
options: InternalRoomOptions;
|
49
49
|
/** reflects the sender encryption status of the local participant */
|
50
50
|
isE2EEEnabled: boolean;
|
51
|
+
serverInfo?: Partial<ServerInfo>;
|
51
52
|
private roomInfo?;
|
52
53
|
private sidToIdentity;
|
53
54
|
/** connect options of room */
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Room.d.ts","sourceRoot":"","sources":["../../../src/room/Room.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,eAAe,EACf,gBAAgB,EAMhB,qBAAqB,
|
1
|
+
{"version":3,"file":"Room.d.ts","sourceRoot":"","sources":["../../../src/room/Room.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,eAAe,EACf,gBAAgB,EAMhB,qBAAqB,EAErB,UAAU,EAEV,OAAO,E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kC,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,WAAW,CAAC,EAAE,WAAW,KAAK,IAAI,CAAC;IAC5F,eAAe,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACxC,qBAAqB,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IACvE,mBAAmB,EAAE,CAAC,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACvE,WAAW,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,WAAW,CAAC,EAAE,iBAAiB,GAAG,gBAAgB,KAAK,IAAI,CAAC;IAChG,oBAAoB,EAAE,CAAC,WAAW,EAAE,qBAAqB,EAAE,WAAW,EAAE,gBAAgB,KAAK,IAAI,CAAC;CACnG,CAAC"}
|
@@ -259,7 +259,7 @@ export declare enum RoomEvent {
|
|
259
259
|
*/
|
260
260
|
MediaDevicesError = "mediaDevicesError",
|
261
261
|
/**
|
262
|
-
* A participant's permission has changed.
|
262
|
+
* A participant's permission has changed.
|
263
263
|
* args: (prevPermissions: [[ParticipantPermission]], participant: [[Participant]])
|
264
264
|
*/
|
265
265
|
ParticipantPermissionsChanged = "participantPermissionsChanged",
|
@@ -437,7 +437,7 @@ export declare enum ParticipantEvent {
|
|
437
437
|
/** @internal */
|
438
438
|
AudioStreamAcquired = "audioStreamAcquired",
|
439
439
|
/**
|
440
|
-
* A participant's permission has changed.
|
440
|
+
* A participant's permission has changed.
|
441
441
|
* args: (prevPermissions: [[ParticipantPermission]])
|
442
442
|
*/
|
443
443
|
ParticipantPermissionsChanged = "participantPermissionsChanged",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { DataPacket_Kind, ParticipantInfo, ParticipantInfo_Kind as ParticipantKind, ParticipantPermission, ConnectionQuality as ProtoQuality, type SipDTMF, SubscriptionError } from '@livekit/protocol';
|
2
2
|
import type TypedEmitter from 'typed-emitter';
|
3
|
-
import { StructuredLogger } from '../../logger';
|
3
|
+
import { type StructuredLogger } from '../../logger';
|
4
4
|
import type LocalTrackPublication from '../track/LocalTrackPublication';
|
5
5
|
import type RemoteTrack from '../track/RemoteTrack';
|
6
6
|
import type RemoteTrackPublication from '../track/RemoteTrackPublication';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Participant.d.ts","sourceRoot":"","sources":["../../../../src/room/participant/Participant.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,eAAe,EACf,oBAAoB,IAAI,eAAe,EACvC,qBAAqB,EACrB,iBAAiB,IAAI,YAAY,EACjC,KAAK,OAAO,EACZ,iBAAiB,EAClB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAY,EAAe,gBAAgB,EAAa,MAAM,cAAc,CAAC;
|
1
|
+
{"version":3,"file":"Participant.d.ts","sourceRoot":"","sources":["../../../../src/room/participant/Participant.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,eAAe,EACf,oBAAoB,IAAI,eAAe,EACvC,qBAAqB,EACrB,iBAAiB,IAAI,YAAY,EACjC,KAAK,OAAO,EACZ,iBAAiB,EAClB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAY,EAAe,KAAK,gBAAgB,EAAa,MAAM,cAAc,CAAC;AAGlF,OAAO,KAAK,qBAAqB,MAAM,gCAAgC,CAAC;AAExE,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,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEjF,oBAAY,iBAAiB;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,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,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,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;IACV,iBAAiB,EAAE,CAAC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IACvE,oBAAoB,EAAE,CAAC,gBAAgB,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACxE,WAAW,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAC;CACzC,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { AudioTrackFeature, StreamState as ProtoStreamState, TrackSource, TrackType } from '@livekit/protocol';
|
2
2
|
import type TypedEventEmitter from 'typed-emitter';
|
3
3
|
import type { SignalClient } from '../../api/SignalClient';
|
4
|
-
import { StructuredLogger } from '../../logger';
|
4
|
+
import { type StructuredLogger } from '../../logger';
|
5
5
|
import type { LoggerOptions } from '../types';
|
6
6
|
import type { TrackProcessor } from './processor/types';
|
7
7
|
export declare enum VideoQuality {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Track.d.ts","sourceRoot":"","sources":["../../../../src/room/track/Track.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EAEjB,WAAW,IAAI,gBAAgB,EAC/B,WAAW,EACX,SAAS,EACV,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAA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1,7 @@
|
|
1
1
|
import { ChatMessage as ChatMessageModel, ClientInfo, Transcription as TranscriptionModel } from '@livekit/protocol';
|
2
2
|
import type LocalAudioTrack from './track/LocalAudioTrack';
|
3
3
|
import type RemoteAudioTrack from './track/RemoteAudioTrack';
|
4
|
-
import { VideoCodec } from './track/options';
|
4
|
+
import { type VideoCodec } from './track/options';
|
5
5
|
import type { ChatMessage, TranscriptionSegment } from './types';
|
6
6
|
export declare const ddExtensionURI = "https://aomediacodec.github.io/av1-rtp-spec/#dependency-descriptor-rtp-header-extension";
|
7
7
|
export declare function unpackStreamId(packed: string): string[];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/room/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,IAAI,gBAAgB,EAC/B,UAAU,EAEV,aAAa,IAAI,kBAAkB,EACpC,MAAM,mBAAmB,CAAC;AAI3B,OAAO,KAAK,eAAe,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,gBAAgB,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAe,MAAM,iBAAiB,CAAC;
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/room/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,IAAI,gBAAgB,EAC/B,UAAU,EAEV,aAAa,IAAI,kBAAkB,EACpC,MAAM,mBAAmB,CAAC;AAI3B,OAAO,KAAK,eAAe,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,gBAAgB,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,KAAK,UAAU,EAAe,MAAM,iBAAiB,CAAC;AAE/D,OAAO,KAAK,EAAE,WAAW,EAA0B,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAGzF,eAAO,MAAM,cAAc,4FACgE,CAAC;AAE5F,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CA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;IAIR,IAAI,kBAGoB,IAAI;CAgB7B;AAED,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,IAAI,UAAU,CAEzE;AAED,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,kBAAkB,GAAG,MAAM,CAAC;AACzE,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,cAAc,GAAG,MAAM,CAAC;AAwBrE,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAKlD;AAED,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAK7C;AAED,wBAAgB,4BAA4B,CAC1C,aAAa,EAAE,kBAAkB,EACjC,qBAAqB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GACzC,oBAAoB,EAAE,CAoBxB;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,gBAAgB,GAAG,WAAW,CAQrE"}
|
package/dist/src/test/mocks.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mocks.d.ts","sourceRoot":"","sources":["../../../src/test/mocks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAM,MAAM,QAAQ,CAAC;
|
1
|
+
{"version":3,"file":"mocks.d.ts","sourceRoot":"","sources":["../../../src/test/mocks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAM,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,SAAS,MAAM,mBAAmB,CAAC;AAO1C,QAAA,MAAM,KAAK,EAAE;IACX,YAAY,EAAE,WAAW,CAAC,OAAO,YAAY,CAAC,CAAC;IAC/C,SAAS,EAAE,WAAW,CAAC,OAAO,SAAS,CAAC,CAAC;IACzC,mBAAmB,EAAE;QAAE,IAAI,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC;CAO3C,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type TypedEventEmitter from 'typed-emitter';
|
2
2
|
import type { VideoCodec } from '../../room/track/options';
|
3
|
-
import { CryptorCallbacks } from '../events';
|
3
|
+
import type { CryptorCallbacks } from '../events';
|
4
4
|
import type { KeyProviderOptions } from '../types';
|
5
5
|
import type { ParticipantKeyHandler } from './ParticipantKeyHandler';
|
6
6
|
export declare const encryptionEnabledMap: Map<string, boolean>;
|
@@ -64,7 +64,7 @@ export declare class FrameCryptor extends BaseFrameCryptor {
|
|
64
64
|
* @param map
|
65
65
|
*/
|
66
66
|
setRtpMap(map: Map<number, VideoCodec>): void;
|
67
|
-
setupTransform(operation: 'encode' | 'decode', readable: ReadableStream
|
67
|
+
setupTransform(operation: 'encode' | 'decode', readable: ReadableStream<RTCEncodedVideoFrame | RTCEncodedAudioFrame>, writable: WritableStream<RTCEncodedVideoFrame | RTCEncodedAudioFrame>, trackId: string, codec?: VideoCodec): void;
|
68
68
|
setSifTrailer(trailer: Uint8Array): void;
|
69
69
|
/**
|
70
70
|
* Function that will be injected in a stream and will encrypt the given encoded frames.
|
@@ -20,7 +20,7 @@ import RemoteVideoTrack from './room/track/RemoteVideoTrack';
|
|
20
20
|
import { TrackPublication } from './room/track/TrackPublication';
|
21
21
|
import type { LiveKitReactNativeInfo } from './room/types';
|
22
22
|
import type { AudioAnalyserOptions } from './room/utils';
|
23
|
-
import { Mutex, createAudioAnalyser, getEmptyAudioStreamTrack, getEmptyVideoStreamTrack, isBrowserSupported, supportsAV1, supportsAdaptiveStream, supportsDynacast, supportsVP9 } from './room/utils';
|
23
|
+
import { Mutex, compareVersions, createAudioAnalyser, getEmptyAudioStreamTrack, getEmptyVideoStreamTrack, isBrowserSupported, supportsAV1, supportsAdaptiveStream, supportsDynacast, supportsVP9 } from './room/utils';
|
24
24
|
import { getBrowser } from './utils/browserParser';
|
25
25
|
export * from './connectionHelper/ConnectionCheck';
|
26
26
|
export * from './connectionHelper/checks/Checker';
|
@@ -36,6 +36,6 @@ export * from './room/track/processor/types';
|
|
36
36
|
export * from './room/track/types';
|
37
37
|
export type { DataPublishOptions, SimulationScenario, TranscriptionSegment, ChatMessage, } from './room/types';
|
38
38
|
export * from './version';
|
39
|
-
export { ConnectionQuality, ConnectionState, CriticalTimers, DataPacket_Kind, DefaultReconnectPolicy, DisconnectReason, LocalAudioTrack, LocalParticipant, LocalTrack, LocalTrackPublication, LocalVideoTrack, LogLevel, LoggerNames, Participant, RemoteAudioTrack, RemoteParticipant, ParticipantKind, RemoteTrack, RemoteTrackPublication, RemoteVideoTrack, Room, SubscriptionError, TrackPublication, createAudioAnalyser, getBrowser, getEmptyAudioStreamTrack, getEmptyVideoStreamTrack, getLogger, isBrowserSupported, setLogExtension, setLogLevel, supportsAV1, supportsAdaptiveStream, supportsDynacast, supportsVP9, Mutex, };
|
39
|
+
export { ConnectionQuality, ConnectionState, CriticalTimers, DataPacket_Kind, DefaultReconnectPolicy, DisconnectReason, LocalAudioTrack, LocalParticipant, LocalTrack, LocalTrackPublication, LocalVideoTrack, LogLevel, LoggerNames, Participant, RemoteAudioTrack, RemoteParticipant, ParticipantKind, RemoteTrack, RemoteTrackPublication, RemoteVideoTrack, Room, SubscriptionError, TrackPublication, compareVersions, createAudioAnalyser, getBrowser, getEmptyAudioStreamTrack, getEmptyVideoStreamTrack, getLogger, isBrowserSupported, setLogExtension, setLogLevel, supportsAV1, supportsAdaptiveStream, supportsDynacast, supportsVP9, Mutex, };
|
40
40
|
export type { AudioAnalyserOptions, ElementInfo, LiveKitReactNativeInfo, ParticipantTrackPermission, AudioReceiverStats, AudioSenderStats, VideoReceiverStats, VideoSenderStats, };
|
41
41
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { DataPacket_Kind, DisconnectReason, ParticipantPermission, SipDTMF, SubscriptionError, TranscriptionSegment as TranscriptionSegmentModel } from '@livekit/protocol';
|
1
|
+
import { DataPacket_Kind, DisconnectReason, ParticipantPermission, ServerInfo, SipDTMF, SubscriptionError, TranscriptionSegment as TranscriptionSegmentModel } from '@livekit/protocol';
|
2
2
|
import type TypedEmitter from 'typed-emitter';
|
3
3
|
import 'webrtc-adapter';
|
4
4
|
import type { InternalRoomOptions, RoomConnectOptions, RoomOptions } from '../options';
|
@@ -48,6 +48,7 @@ declare class Room extends Room_base {
|
|
48
48
|
options: InternalRoomOptions;
|
49
49
|
/** reflects the sender encryption status of the local participant */
|
50
50
|
isE2EEEnabled: boolean;
|
51
|
+
serverInfo?: Partial<ServerInfo>;
|
51
52
|
private roomInfo?;
|
52
53
|
private sidToIdentity;
|
53
54
|
/** connect options of room */
|
@@ -259,7 +259,7 @@ export declare enum RoomEvent {
|
|
259
259
|
*/
|
260
260
|
MediaDevicesError = "mediaDevicesError",
|
261
261
|
/**
|
262
|
-
* A participant's permission has changed.
|
262
|
+
* A participant's permission has changed.
|
263
263
|
* args: (prevPermissions: [[ParticipantPermission]], participant: [[Participant]])
|
264
264
|
*/
|
265
265
|
ParticipantPermissionsChanged = "participantPermissionsChanged",
|
@@ -437,7 +437,7 @@ export declare enum ParticipantEvent {
|
|
437
437
|
/** @internal */
|
438
438
|
AudioStreamAcquired = "audioStreamAcquired",
|
439
439
|
/**
|
440
|
-
* A participant's permission has changed.
|
440
|
+
* A participant's permission has changed.
|
441
441
|
* args: (prevPermissions: [[ParticipantPermission]])
|
442
442
|
*/
|
443
443
|
ParticipantPermissionsChanged = "participantPermissionsChanged",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { SipDTMF } from '@livekit/protocol';
|
2
2
|
import { DataPacket_Kind, ParticipantInfo, ParticipantInfo_Kind as ParticipantKind, ParticipantPermission, ConnectionQuality as ProtoQuality, SubscriptionError } from '@livekit/protocol';
|
3
3
|
import type TypedEmitter from 'typed-emitter';
|
4
|
-
import { StructuredLogger } from '../../logger';
|
4
|
+
import type { StructuredLogger } from '../../logger';
|
5
5
|
import type LocalTrackPublication from '../track/LocalTrackPublication';
|
6
6
|
import type RemoteTrack from '../track/RemoteTrack';
|
7
7
|
import type RemoteTrackPublication from '../track/RemoteTrackPublication';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { AudioTrackFeature, StreamState as ProtoStreamState, TrackSource, TrackType } from '@livekit/protocol';
|
2
2
|
import type TypedEventEmitter from 'typed-emitter';
|
3
3
|
import type { SignalClient } from '../../api/SignalClient';
|
4
|
-
import { StructuredLogger } from '../../logger';
|
4
|
+
import type { StructuredLogger } from '../../logger';
|
5
5
|
import type { LoggerOptions } from '../types';
|
6
6
|
import type { TrackProcessor } from './processor/types';
|
7
7
|
export declare enum VideoQuality {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ChatMessage as ChatMessageModel, ClientInfo, Transcription as TranscriptionModel } from '@livekit/protocol';
|
2
2
|
import type LocalAudioTrack from './track/LocalAudioTrack';
|
3
3
|
import type RemoteAudioTrack from './track/RemoteAudioTrack';
|
4
|
-
import { VideoCodec } from './track/options';
|
4
|
+
import type { VideoCodec } from './track/options';
|
5
5
|
import type { ChatMessage, TranscriptionSegment } from './types';
|
6
6
|
export declare const ddExtensionURI = "https://aomediacodec.github.io/av1-rtp-spec/#dependency-descriptor-rtp-header-extension";
|
7
7
|
export declare function unpackStreamId(packed: string): string[];
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "livekit-client",
|
3
|
-
"version": "2.5.
|
3
|
+
"version": "2.5.7",
|
4
4
|
"description": "JavaScript/TypeScript client SDK for LiveKit",
|
5
5
|
"main": "./dist/livekit-client.umd.js",
|
6
6
|
"unpkg": "./dist/livekit-client.umd.js",
|
@@ -36,7 +36,7 @@
|
|
36
36
|
"author": "David Zhao <david@davidzhao.com>",
|
37
37
|
"license": "Apache-2.0",
|
38
38
|
"dependencies": {
|
39
|
-
"@livekit/protocol": "1.
|
39
|
+
"@livekit/protocol": "1.23.0",
|
40
40
|
"events": "^3.3.0",
|
41
41
|
"loglevel": "^1.8.0",
|
42
42
|
"sdp-transform": "^2.14.1",
|
@@ -49,12 +49,12 @@
|
|
49
49
|
"@babel/core": "7.25.2",
|
50
50
|
"@babel/preset-env": "7.25.4",
|
51
51
|
"@bufbuild/protoc-gen-es": "^1.3.0",
|
52
|
-
"@changesets/cli": "2.27.
|
52
|
+
"@changesets/cli": "2.27.8",
|
53
53
|
"@livekit/changesets-changelog-github": "^0.0.4",
|
54
54
|
"@rollup/plugin-babel": "6.0.4",
|
55
|
-
"@rollup/plugin-commonjs": "
|
55
|
+
"@rollup/plugin-commonjs": "28.0.0",
|
56
56
|
"@rollup/plugin-json": "6.1.0",
|
57
|
-
"@rollup/plugin-node-resolve": "15.
|
57
|
+
"@rollup/plugin-node-resolve": "15.3.0",
|
58
58
|
"@rollup/plugin-terser": "^0.4.0",
|
59
59
|
"@size-limit/file": "^8.2.4",
|
60
60
|
"@size-limit/webpack": "^8.2.4",
|
@@ -65,7 +65,7 @@
|
|
65
65
|
"@typescript-eslint/eslint-plugin": "7.18.0",
|
66
66
|
"@typescript-eslint/parser": "7.18.0",
|
67
67
|
"downlevel-dts": "^0.11.0",
|
68
|
-
"eslint": "8.57.
|
68
|
+
"eslint": "8.57.1",
|
69
69
|
"eslint-config-airbnb-typescript": "18.0.0",
|
70
70
|
"eslint-config-prettier": "9.1.0",
|
71
71
|
"eslint-plugin-ecmascript-compat": "^3.0.0",
|
@@ -73,15 +73,14 @@
|
|
73
73
|
"gh-pages": "6.1.1",
|
74
74
|
"jsdom": "^24.0.0",
|
75
75
|
"prettier": "^3.0.0",
|
76
|
-
"rollup": "4.
|
76
|
+
"rollup": "4.24.0",
|
77
77
|
"rollup-plugin-delete": "^2.0.0",
|
78
|
-
"rollup-plugin-re": "1.0.7",
|
79
78
|
"rollup-plugin-typescript2": "0.36.0",
|
80
79
|
"size-limit": "^8.2.4",
|
81
|
-
"typedoc": "0.26.
|
80
|
+
"typedoc": "0.26.7",
|
82
81
|
"typedoc-plugin-no-inherit": "1.4.0",
|
83
|
-
"typescript": "5.
|
84
|
-
"vite": "5.4.
|
82
|
+
"typescript": "5.6.2",
|
83
|
+
"vite": "5.4.8",
|
85
84
|
"vitest": "^1.0.0"
|
86
85
|
},
|
87
86
|
"scripts": {
|
package/src/e2ee/E2eeManager.ts
CHANGED
@@ -115,6 +115,11 @@ export class E2EEManager extends (EventEmitter as new () => TypedEventEmitter<E2
|
|
115
115
|
break;
|
116
116
|
|
117
117
|
case 'enable':
|
118
|
+
if (data.enabled) {
|
119
|
+
this.keyProvider.getKeys().forEach((keyInfo) => {
|
120
|
+
this.postKey(keyInfo);
|
121
|
+
});
|
122
|
+
}
|
118
123
|
if (
|
119
124
|
this.encryptionEnabled !== data.enabled &&
|
120
125
|
data.participantIdentity === this.room?.localParticipant.identity
|
@@ -134,11 +139,6 @@ export class E2EEManager extends (EventEmitter as new () => TypedEventEmitter<E2
|
|
134
139
|
}
|
135
140
|
this.emit(EncryptionEvent.ParticipantEncryptionStatusChanged, data.enabled, participant);
|
136
141
|
}
|
137
|
-
if (this.encryptionEnabled) {
|
138
|
-
this.keyProvider.getKeys().forEach((keyInfo) => {
|
139
|
-
this.postKey(keyInfo);
|
140
|
-
});
|
141
|
-
}
|
142
142
|
break;
|
143
143
|
case 'ratchetKey':
|
144
144
|
this.keyProvider.emit(KeyProviderEvent.KeyRatcheted, data.material, data.keyIndex);
|
@@ -196,13 +196,13 @@ export class E2EEManager extends (EventEmitter as new () => TypedEventEmitter<E2
|
|
196
196
|
if (!this.room) {
|
197
197
|
throw new TypeError(`expected room to be present on signal connect`);
|
198
198
|
}
|
199
|
+
keyProvider.getKeys().forEach((keyInfo) => {
|
200
|
+
this.postKey(keyInfo);
|
201
|
+
});
|
199
202
|
this.setParticipantCryptorEnabled(
|
200
203
|
this.room.localParticipant.isE2EEEnabled,
|
201
204
|
this.room.localParticipant.identity,
|
202
205
|
);
|
203
|
-
keyProvider.getKeys().forEach((keyInfo) => {
|
204
|
-
this.postKey(keyInfo);
|
205
|
-
});
|
206
206
|
});
|
207
207
|
room.localParticipant.on(ParticipantEvent.LocalTrackPublished, async (publication) => {
|
208
208
|
this.setupE2EESender(publication.track!, publication.track!.sender!);
|