livekit-client 2.4.2 → 2.5.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +8 -4
- package/dist/livekit-client.e2ee.worker.js.map +1 -1
- package/dist/livekit-client.e2ee.worker.mjs.map +1 -1
- package/dist/livekit-client.esm.mjs +374 -102
- 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/api/SignalClient.d.ts +3 -2
- package/dist/src/api/SignalClient.d.ts.map +1 -1
- package/dist/src/connectionHelper/checks/publishAudio.d.ts.map +1 -1
- package/dist/src/connectionHelper/checks/publishVideo.d.ts.map +1 -1
- package/dist/src/room/PCTransport.d.ts +1 -1
- package/dist/src/room/PCTransport.d.ts.map +1 -1
- package/dist/src/room/RTCEngine.d.ts +4 -3
- package/dist/src/room/RTCEngine.d.ts.map +1 -1
- package/dist/src/room/Room.d.ts +5 -0
- package/dist/src/room/Room.d.ts.map +1 -1
- package/dist/src/room/errors.d.ts +4 -3
- package/dist/src/room/errors.d.ts.map +1 -1
- package/dist/src/room/events.d.ts +12 -3
- package/dist/src/room/events.d.ts.map +1 -1
- package/dist/src/room/participant/LocalParticipant.d.ts +5 -2
- package/dist/src/room/participant/LocalParticipant.d.ts.map +1 -1
- package/dist/src/room/participant/Participant.d.ts +1 -0
- 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/src/room/timers.d.ts +4 -4
- package/dist/src/room/timers.d.ts.map +1 -1
- package/dist/src/room/track/RemoteAudioTrack.d.ts +1 -1
- package/dist/src/room/track/RemoteAudioTrack.d.ts.map +1 -1
- package/dist/src/room/track/RemoteTrack.d.ts +12 -2
- package/dist/src/room/track/RemoteTrack.d.ts.map +1 -1
- package/dist/src/room/track/RemoteVideoTrack.d.ts +1 -1
- package/dist/src/room/track/RemoteVideoTrack.d.ts.map +1 -1
- package/dist/src/room/track/options.d.ts +1 -1
- package/dist/src/room/types.d.ts +2 -0
- package/dist/src/room/types.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/version.d.ts +1 -1
- package/dist/ts4.2/src/api/SignalClient.d.ts +3 -2
- package/dist/ts4.2/src/room/PCTransport.d.ts +1 -1
- package/dist/ts4.2/src/room/RTCEngine.d.ts +4 -3
- package/dist/ts4.2/src/room/Room.d.ts +5 -0
- package/dist/ts4.2/src/room/errors.d.ts +4 -3
- package/dist/ts4.2/src/room/events.d.ts +12 -3
- package/dist/ts4.2/src/room/participant/LocalParticipant.d.ts +5 -2
- package/dist/ts4.2/src/room/participant/Participant.d.ts +1 -0
- package/dist/ts4.2/src/room/participant/RemoteParticipant.d.ts +1 -1
- package/dist/ts4.2/src/room/timers.d.ts +4 -4
- package/dist/ts4.2/src/room/track/RemoteAudioTrack.d.ts +1 -1
- package/dist/ts4.2/src/room/track/RemoteTrack.d.ts +12 -2
- package/dist/ts4.2/src/room/track/RemoteVideoTrack.d.ts +1 -1
- package/dist/ts4.2/src/room/track/options.d.ts +1 -1
- package/dist/ts4.2/src/room/types.d.ts +2 -0
- package/dist/ts4.2/src/room/utils.d.ts +1 -1
- package/dist/ts4.2/src/version.d.ts +1 -1
- package/package.json +10 -10
- package/src/api/SignalClient.ts +12 -6
- package/src/connectionHelper/checks/publishAudio.ts +4 -1
- package/src/connectionHelper/checks/publishVideo.ts +6 -3
- package/src/room/PCTransport.ts +4 -1
- package/src/room/RTCEngine.ts +11 -5
- package/src/room/Room.ts +42 -5
- package/src/room/errors.ts +7 -3
- package/src/room/events.ts +12 -1
- package/src/room/participant/LocalParticipant.ts +125 -84
- package/src/room/participant/Participant.ts +1 -0
- package/src/room/participant/RemoteParticipant.ts +1 -1
- package/src/room/timers.ts +15 -6
- package/src/room/track/LocalVideoTrack.test.ts +60 -0
- package/src/room/track/LocalVideoTrack.ts +1 -1
- package/src/room/track/RemoteAudioTrack.ts +1 -1
- package/src/room/track/RemoteTrack.ts +38 -2
- package/src/room/track/RemoteVideoTrack.ts +2 -2
- package/src/room/track/options.ts +1 -1
- package/src/room/types.ts +2 -0
- package/src/room/utils.ts +10 -0
- package/src/version.ts +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import { AddTrackRequest, AudioTrackFeature, ConnectionQualityUpdate,
|
1
|
+
import { AddTrackRequest, AudioTrackFeature, ConnectionQualityUpdate, JoinResponse, LeaveRequest, ParticipantInfo, ReconnectReason, ReconnectResponse, RequestResponse, Room, SessionDescription, SignalRequest, SignalTarget, SimulateScenario, SpeakerInfo, StreamStateUpdate, SubscribedQualityUpdate, SubscriptionPermissionUpdate, SubscriptionResponse, SyncState, TrackPermission, TrackPublishedResponse, TrackUnpublishedResponse, UpdateSubscription, UpdateTrackSettings, VideoLayer } from '@livekit/protocol';
|
2
2
|
import type { LoggerOptions } from '../room/types';
|
3
3
|
import { AsyncQueue } from '../utils/AsyncQueue';
|
4
4
|
interface ConnectOpts extends SignalOptions {
|
@@ -51,7 +51,8 @@ export declare class SignalClient {
|
|
51
51
|
onLocalTrackUnpublished?: (res: TrackUnpublishedResponse) => void;
|
52
52
|
onTokenRefresh?: (token: string) => void;
|
53
53
|
onLeave?: (leave: LeaveRequest) => void;
|
54
|
-
|
54
|
+
onRequestResponse?: (response: RequestResponse) => void;
|
55
|
+
onLocalTrackSubscribed?: (trackSid: string) => void;
|
55
56
|
connectOptions?: ConnectOpts;
|
56
57
|
ws?: WebSocket;
|
57
58
|
get currentState(): SignalConnectionState;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SignalClient.d.ts","sourceRoot":"","sources":["../../../src/api/SignalClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,iBAAiB,EAEjB,uBAAuB,EAEvB,
|
1
|
+
{"version":3,"file":"SignalClient.d.ts","sourceRoot":"","sources":["../../../src/api/SignalClient.ts"],"names":[],"mappings":"AA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@@
|
|
1
|
-
{"version":3,"file":"publishAudio.d.ts","sourceRoot":"","sources":["../../../../src/connectionHelper/checks/publishAudio.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,qBAAa,iBAAkB,SAAQ,OAAO;IAC5C,IAAI,WAAW,IAAI,MAAM,CAExB;IAEK,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;
|
1
|
+
{"version":3,"file":"publishAudio.d.ts","sourceRoot":"","sources":["../../../../src/connectionHelper/checks/publishAudio.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,qBAAa,iBAAkB,SAAQ,OAAO;IAC5C,IAAI,WAAW,IAAI,MAAM,CAExB;IAEK,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CA2B/B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"publishVideo.d.ts","sourceRoot":"","sources":["../../../../src/connectionHelper/checks/publishVideo.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,qBAAa,iBAAkB,SAAQ,OAAO;IAC5C,IAAI,WAAW,IAAI,MAAM,CAExB;IAEK,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;
|
1
|
+
{"version":3,"file":"publishVideo.d.ts","sourceRoot":"","sources":["../../../../src/connectionHelper/checks/publishVideo.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,qBAAa,iBAAkB,SAAQ,OAAO;IAC5C,IAAI,WAAW,IAAI,MAAM,CAExB;IAEK,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CA2B/B"}
|
@@ -40,7 +40,7 @@ export default class PCTransport extends EventEmitter {
|
|
40
40
|
addIceCandidate(candidate: RTCIceCandidateInit): Promise<void>;
|
41
41
|
setRemoteDescription(sd: RTCSessionDescriptionInit): Promise<void>;
|
42
42
|
negotiate: {
|
43
|
-
(this: unknown, ...args: [onError?: ((e: Error) => void) | undefined] & any[]): Promise<
|
43
|
+
(this: unknown, ...args: [onError?: ((e: Error) => void) | undefined] & any[]): Promise<Promise<void>>;
|
44
44
|
cancel: (reason?: any) => void;
|
45
45
|
};
|
46
46
|
createAndSendOffer(options?: RTCOfferOptions): Promise<void>;
|
@@ -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;AAMtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAG7C,gBAAgB;AAChB,UAAU,gBAAgB;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;
|
1
|
+
{"version":3,"file":"PCTransport.d.ts","sourceRoot":"","sources":["../../../src/room/PCTransport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAMtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAG7C,gBAAgB;AAChB,UAAU,gBAAgB;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAYD,eAAO,MAAM,QAAQ;;;;CAIX,CAAC;AAEX,gBAAgB;AAChB,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,YAAY;IACnD,OAAO,CAAC,GAAG,CAA2B;IAEtC,OAAO,KAAK,EAAE,GAKb;IAED,OAAO,CAAC,MAAM,CAAC,CAAmB;IAElC,OAAO,CAAC,GAAG,CAAO;IAElB,OAAO,CAAC,aAAa,CAAgB;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IAY9D,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,kBAAkB;IAIpE,cAAc,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,eAAe,EAAE,qBAAqB;IAIzF,QAAQ,CAAC,KAAK,EAAE,gBAAgB;IAOhC,oBAAoB,CAAC,IAAI,EAAE,gBAAgB;IAI3C,gBAAgB,CAAC,SAAS,EAAE,gBAAgB;IAO5C,cAAc,IAAI,OAAO;IAIzB,WAAW,CAAC,MAAM,EAAE,YAAY;IAIhC,kBAAkB;IAIlB,qBAAqB;IAIrB,kBAAkB;IAIlB,eAAe;IAIf,UAAU;IAIV,mBAAmB;IAInB,oBAAoB;IAIpB,QAAQ;IAIF,mBAAmB,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAqCxD,KAAK,aAiBH;YAEY,YAAY;CAkD3B"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { type AddTrackRequest, type ConnectionQualityUpdate, DataPacket, DataPacket_Kind, DisconnectReason,
|
1
|
+
import { type AddTrackRequest, type ConnectionQualityUpdate, DataPacket, DataPacket_Kind, DisconnectReason, type JoinResponse, ParticipantInfo, RequestResponse, Room as RoomModel, SpeakerInfo, type StreamStateUpdate, SubscribedQualityUpdate, type SubscriptionPermissionUpdate, type SubscriptionResponse, TrackInfo, TrackUnpublishedResponse, Transcription } from '@livekit/protocol';
|
2
2
|
import type TypedEventEmitter from 'typed-emitter';
|
3
3
|
import type { SignalOptions } from '../api/SignalClient';
|
4
4
|
import { SignalClient } from '../api/SignalClient';
|
@@ -135,7 +135,7 @@ export type EngineEventCallbacks = {
|
|
135
135
|
signalResumed: () => void;
|
136
136
|
signalRestarted: (joinResp: JoinResponse) => void;
|
137
137
|
closing: () => void;
|
138
|
-
mediaTrackAdded: (track: MediaStreamTrack, streams: MediaStream, receiver
|
138
|
+
mediaTrackAdded: (track: MediaStreamTrack, streams: MediaStream, receiver: RTCRtpReceiver) => void;
|
139
139
|
activeSpeakersUpdate: (speakers: Array<SpeakerInfo>) => void;
|
140
140
|
dataPacketReceived: (packet: DataPacket) => void;
|
141
141
|
transcriptionReceived: (transcription: Transcription) => void;
|
@@ -153,9 +153,10 @@ export type EngineEventCallbacks = {
|
|
153
153
|
subscriptionPermissionUpdate: (update: SubscriptionPermissionUpdate) => void;
|
154
154
|
subscribedQualityUpdate: (update: SubscribedQualityUpdate) => void;
|
155
155
|
localTrackUnpublished: (unpublishedResponse: TrackUnpublishedResponse) => void;
|
156
|
+
localTrackSubscribed: (trackSid: string) => void;
|
156
157
|
remoteMute: (trackSid: string, muted: boolean) => void;
|
157
158
|
offline: () => void;
|
158
|
-
|
159
|
+
signalRequestResponse: (response: RequestResponse) => void;
|
159
160
|
};
|
160
161
|
export {};
|
161
162
|
//# sourceMappingURL=RTCEngine.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RTCEngine.d.ts","sourceRoot":"","sources":["../../../src/room/RTCEngine.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,eAAe,EAGpB,KAAK,uBAAuB,EAE5B,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,
|
1
|
+
{"version":3,"file":"RTCEngine.d.ts","sourceRoot":"","sources":["../../../src/room/RTCEngine.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,eAAe,EAGpB,KAAK,uBAAuB,EAE5B,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,KAAK,YAAY,EAGjB,eAAe,EAGf,eAAe,EACf,IAAI,IAAI,SAAS,EAEjB,WAAW,EACX,KAAK,iBAAiB,EACtB,uBAAuB,EACvB,KAAK,4BAA4B,EACjC,KAAK,oBAAoB,EAEzB,SAAS,EAET,wBAAwB,EACxB,aAAa,EAGd,MAAM,mBAAmB,CAAC;AAG3B,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EACL,YAAY,E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
+
/**
|
71
|
+
* map to store first point in time when a particular transcription segment was received
|
72
|
+
*/
|
73
|
+
private transcriptionReceivedTimes;
|
70
74
|
/**
|
71
75
|
* Creates a new Room, the primary construct for a LiveKit session.
|
72
76
|
* @param options
|
@@ -264,5 +268,6 @@ export type RoomEventCallbacks = {
|
|
264
268
|
encryptionError: (error: Error) => void;
|
265
269
|
dcBufferStatusChanged: (isLow: boolean, kind: DataPacket_Kind) => void;
|
266
270
|
activeDeviceChanged: (kind: MediaDeviceKind, deviceId: string) => void;
|
271
|
+
localTrackSubscribed: (publication: LocalTrackPublication, participant: LocalParticipant) => void;
|
267
272
|
};
|
268
273
|
//# sourceMappingURL=Room.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Room.d.ts","sourceRoot":"","sources":["../../../src/room/Room.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,eAAe,EACf,gBAAgB,EAMhB,qBAAqB,EAIrB,OAAO,EAGP,iBAAiB,EAOjB,oBAAoB,IAAI,yBAAyB,EAGlD,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAO,gBAAgB,CAAC;AAIxB,OAAO,KAAK,EAEV,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACZ,MAAM,YAAY,CAAC;AAGpB,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,gCAAgC,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO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D,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,sBAAsB,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IACrD,kCAAkC,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,oBAAoB,EAAE,CAAC,WAAW,EAAE,qBAAqB,EAAE,WAAW,EAAE,gBAAgB,KAAK,IAAI,CAAC;CACnG,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { RequestResponse_Reason } from '@livekit/protocol';
|
2
2
|
export declare class LivekitError extends Error {
|
3
3
|
code: number;
|
4
4
|
constructor(code: number, message?: string);
|
@@ -33,9 +33,10 @@ export declare class NegotiationError extends LivekitError {
|
|
33
33
|
export declare class PublishDataError extends LivekitError {
|
34
34
|
constructor(message?: string);
|
35
35
|
}
|
36
|
+
export type RequestErrorReason = Exclude<RequestResponse_Reason, RequestResponse_Reason.OK> | 'TimeoutError';
|
36
37
|
export declare class SignalRequestError extends LivekitError {
|
37
|
-
reason:
|
38
|
-
constructor(message: string, reason
|
38
|
+
reason: RequestErrorReason;
|
39
|
+
constructor(message: string, reason: RequestErrorReason);
|
39
40
|
}
|
40
41
|
export declare enum MediaDeviceFailure {
|
41
42
|
PermissionDenied = "PermissionDenied",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/room/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../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AgB,qBAAqB;IAErC,QAAQ,aAAa;IAErB,WAAW,gBAAgB;IAC3B,KAAK,UAAU;CAChB;AAED,yBAAiB,kBAAkB,CAAC;IAClC,SAAgB,UAAU,CAAC,KAAK,EAAE,GAAG,GAAG,kBAAkB,GAAG,SAAS,CAarE;CACF"}
|
@@ -282,7 +282,11 @@ export declare enum RoomEvent {
|
|
282
282
|
* Triggered by a call to room.switchActiveDevice
|
283
283
|
* args: (kind: MediaDeviceKind, deviceId: string)
|
284
284
|
*/
|
285
|
-
ActiveDeviceChanged = "activeDeviceChanged"
|
285
|
+
ActiveDeviceChanged = "activeDeviceChanged",
|
286
|
+
/**
|
287
|
+
* fired when the first remote participant has subscribed to the localParticipant's track
|
288
|
+
*/
|
289
|
+
LocalTrackSubscribed = "localTrackSubscribed"
|
286
290
|
}
|
287
291
|
export declare enum ParticipantEvent {
|
288
292
|
/**
|
@@ -442,7 +446,11 @@ export declare enum ParticipantEvent {
|
|
442
446
|
* all users.
|
443
447
|
* When a participant's attributes changed, this event will be emitted with the changed attributes
|
444
448
|
*/
|
445
|
-
AttributesChanged = "attributesChanged"
|
449
|
+
AttributesChanged = "attributesChanged",
|
450
|
+
/**
|
451
|
+
* fired on local participant only, when the first remote participant has subscribed to the track specified in the payload
|
452
|
+
*/
|
453
|
+
LocalTrackSubscribed = "localTrackSubscribed"
|
446
454
|
}
|
447
455
|
/** @internal */
|
448
456
|
export declare enum EngineEvent {
|
@@ -471,8 +479,9 @@ export declare enum EngineEvent {
|
|
471
479
|
RemoteMute = "remoteMute",
|
472
480
|
SubscribedQualityUpdate = "subscribedQualityUpdate",
|
473
481
|
LocalTrackUnpublished = "localTrackUnpublished",
|
482
|
+
LocalTrackSubscribed = "localTrackSubscribed",
|
474
483
|
Offline = "offline",
|
475
|
-
|
484
|
+
SignalRequestResponse = "signalRequestResponse"
|
476
485
|
}
|
477
486
|
export declare enum TrackEvent {
|
478
487
|
Message = "message",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3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C/C,oBAAoB,yBAAyB;IAC7C,OAAO,YAAY;IACnB,qBAAqB,0BAA0B;CAChD;AAED,oBAAY,UAAU;IACpB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB;;OAEG;IACH,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAC7B,gBAAgB;IAChB,cAAc,mBAAmB;IACjC,gBAAgB;IAChB,kBAAkB,uBAAuB;IACzC,gBAAgB;IAChB,oBAAoB,yBAAyB;IAC7C,gBAAgB;IAChB,mBAAmB,wBAAwB;IAC3C;;;OAGG;IACH,oBAAoB,yBAAyB;IAC7C,gBAAgB;IAChB,iBAAiB,sBAAsB;IACvC,gBAAgB;IAChB,sBAAsB,2BAA2B;IACjD,gBAAgB;IAChB,oBAAoB,yBAAyB;IAC7C,gBAAgB;IAChB,mBAAmB,wBAAwB;IAC3C,gBAAgB;IAChB,eAAe,oBAAoB;IACnC,gBAAgB;IAChB,eAAe,oBAAoB;IACnC;;;OAGG;IACH,cAAc,mBAAmB;IACjC;;;OAGG;IACH,eAAe,oBAAoB;IACnC;;;OAGG;IACH,6BAA6B,kCAAkC;IAC/D;;OAEG;IACH,yBAAyB,8BAA8B;IACvD;;OAEG;IACH,kBAAkB,uBAAuB;IACzC;;OAEG;IACH,oBAAoB,yBAAyB;IAE7C;;OAEG;IACH,uBAAuB,4BAA4B;IAEnD;;OAEG;IACH,qBAAqB,0BAA0B;IAE/C;;OAEG;IACH,cAAc,mBAAmB;CAClC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ParticipantInfo, ParticipantPermission } from '@livekit/protocol';
|
1
|
+
import { Codec, ParticipantInfo, ParticipantPermission } from '@livekit/protocol';
|
2
2
|
import type { InternalRoomOptions } from '../../options';
|
3
3
|
import type RTCEngine from '../RTCEngine';
|
4
4
|
import LocalTrack from '../track/LocalTrack';
|
@@ -27,6 +27,7 @@ export default class LocalParticipant extends Participant {
|
|
27
27
|
private encryptionType;
|
28
28
|
private reconnectFuture?;
|
29
29
|
private pendingSignalRequests;
|
30
|
+
private enabledPublishVideoCodecs;
|
30
31
|
/** @internal */
|
31
32
|
constructor(sid: string, identity: string, engine: RTCEngine, options: InternalRoomOptions);
|
32
33
|
get lastCameraError(): Error | undefined;
|
@@ -41,7 +42,7 @@ export default class LocalParticipant extends Participant {
|
|
41
42
|
private handleReconnecting;
|
42
43
|
private handleReconnected;
|
43
44
|
private handleDisconnected;
|
44
|
-
private
|
45
|
+
private handleSignalRequestResponse;
|
45
46
|
/**
|
46
47
|
* Sets and updates the metadata of the local participant.
|
47
48
|
* Note: this requires `canUpdateOwnMetadata` permission.
|
@@ -152,6 +153,8 @@ export default class LocalParticipant extends Participant {
|
|
152
153
|
*/
|
153
154
|
setTrackSubscriptionPermissions(allParticipantsAllowed: boolean, participantTrackPermissions?: ParticipantTrackPermission[]): void;
|
154
155
|
/** @internal */
|
156
|
+
setEnabledPublishCodecs(codecs: Codec[]): void;
|
157
|
+
/** @internal */
|
155
158
|
updateInfo(info: ParticipantInfo): boolean;
|
156
159
|
private updateTrackSubscriptionPermissions;
|
157
160
|
/** @internal */
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LocalParticipant.d.ts","sourceRoot":"","sources":["../../../../src/room/participant/LocalParticipant.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"LocalParticipant.d.ts","sourceRoot":"","sources":["../../../../src/room/participant/LocalParticipant.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,EAIL,eAAe,EACf,qBAAqB,EAQtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEzD,OAAO,KAAK,SAAS,MAAM,cAAc,CAAC;AAW1C,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,qBAAqB,MAAM,gCAAgC,CAAC;AAEnE,OAAO,EAAE,KAAK,EA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BAAgB;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,oBAAoB,CAU1B;IAEF,OAAO,CAAC,6BAA6B,CA6BnC;IAEF,OAAO,CAAC,2BAA2B,CAUjC;IAEF,OAAO,CAAC,gBAAgB,CAyDtB;IAEF,OAAO,CAAC,sBAAsB;CAuB/B"}
|
@@ -120,5 +120,6 @@ export type ParticipantEventCallbacks = {
|
|
120
120
|
participantPermissionsChanged: (prevPermissions?: ParticipantPermission) => void;
|
121
121
|
trackSubscriptionStatusChanged: (publication: RemoteTrackPublication, status: TrackPublication.SubscriptionStatus) => void;
|
122
122
|
attributesChanged: (changedAttributes: Record<string, string>) => void;
|
123
|
+
localTrackSubscribed: (trackPublication: LocalTrackPublication) => void;
|
123
124
|
};
|
124
125
|
//# sourceMappingURL=Participant.d.ts.map
|
@@ -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;AAG7E,OAAO,KAAK,qBAAqB,MAAM,gCAAgC,CAAC;AAExE,OAAO,KAAK,WAAW,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,sBAAsB,MAAM,iCAAiC,CAAC;AAC1E,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W,CAAC,EAAE,gBAAgB,KAC3B,IAAI,CAAC;IACV,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,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;CACzE,CAAC"}
|
@@ -37,7 +37,7 @@ export default class RemoteParticipant extends Participant {
|
|
37
37
|
*/
|
38
38
|
getVolume(source?: Track.Source.Microphone | Track.Source.ScreenShareAudio): number | undefined;
|
39
39
|
/** @internal */
|
40
|
-
addSubscribedMediaTrack(mediaTrack: MediaStreamTrack, sid: Track.SID, mediaStream: MediaStream, receiver
|
40
|
+
addSubscribedMediaTrack(mediaTrack: MediaStreamTrack, sid: Track.SID, mediaStream: MediaStream, receiver: RTCRtpReceiver, adaptiveStreamSettings?: AdaptiveStreamSettings, triesLeft?: number): RemoteTrackPublication | undefined;
|
41
41
|
/** @internal */
|
42
42
|
get hasMet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,CAAC,MAAM,CAAC,gBAA0C;IAS3F,gBAAgB;IAChB,uBAAuB,CACrB,UAAU,EAAE,gBAAgB,EAC5B,GAAG,EAAE,KAAK,CAAC,GAAG,EACd,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,cAAc,EACxB,sBAAsB,CAAC,EAAE,sBAAsB,EAC/C,SAAS,CAAC,EAAE,MAAM;IA8EpB,gBAAgB;IAChB,IAAI,WAAW,IAAI,OAAO,CAEzB;IAED;;OAEG;IACH,wBAAwB,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,GAAG,sBAAsB,GAAG,SAAS;IAI5E,gBAAgB;IAChB,UAAU,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO;IAmE1C,gBAAgB;IAChB,cAAc,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE,aAAa,CAAC,EAAE,OAAO;IAiCtD;;OAEG;IACG,cAAc,CAAC,MAAM,EAAE,kBAAkB;IAW/C,gBAAgB;IAChB,IAAI,CAAC,CAAC,SAAS,MAAM,yBAAyB,EAC5C,KAAK,EAAE,CAAC,EACR,GAAG,IAAI,EAAE,UAAU,CAAC,yBAAyB,CAAC,CAAC,CAAC,CAAC,GAChD,OAAO;CAIX"}
|
@@ -4,9 +4,9 @@
|
|
4
4
|
* that the timer fires on time.
|
5
5
|
*/
|
6
6
|
export default class CriticalTimers {
|
7
|
-
static setTimeout: (
|
8
|
-
static setInterval: (
|
9
|
-
static clearTimeout: (
|
10
|
-
static clearInterval: (
|
7
|
+
static setTimeout: (...args: Parameters<typeof setTimeout>) => ReturnType<typeof setTimeout>;
|
8
|
+
static setInterval: (...args: Parameters<typeof setInterval>) => ReturnType<typeof setInterval>;
|
9
|
+
static clearTimeout: (...args: Parameters<typeof clearTimeout>) => ReturnType<typeof clearTimeout>;
|
10
|
+
static clearInterval: (...args: Parameters<typeof clearInterval>) => ReturnType<typeof clearInterval>;
|
11
11
|
}
|
12
12
|
//# sourceMappingURL=timers.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"timers.d.ts","sourceRoot":"","sources":["../../../src/room/timers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,cAAc;
|
1
|
+
{"version":3,"file":"timers.d.ts","sourceRoot":"","sources":["../../../src/room/timers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,cAAc;IACjC,MAAM,CAAC,UAAU,EAAE,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,KAAK,UAAU,CAAC,OAAO,UAAU,CAAC,CAGnE;IAEzB,MAAM,CAAC,WAAW,EAAE,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,KAAK,UAAU,CAAC,OAAO,WAAW,CAAC,CAE3B;IAEpE,MAAM,CAAC,YAAY,EAAE,CACnB,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,KACrC,UAAU,CAAC,OAAO,YAAY,CAAC,CACZ;IAExB,MAAM,CAAC,aAAa,EAAE,CACpB,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,KACtC,UAAU,CAAC,OAAO,aAAa,CAAC,CACZ;CAC1B"}
|
@@ -11,7 +11,7 @@ export default class RemoteAudioTrack extends RemoteTrack<Track.Kind.Audio> {
|
|
11
11
|
private sourceNode?;
|
12
12
|
private webAudioPluginNodes;
|
13
13
|
private sinkId?;
|
14
|
-
constructor(mediaTrack: MediaStreamTrack, sid: string, receiver
|
14
|
+
constructor(mediaTrack: MediaStreamTrack, sid: string, receiver: RTCRtpReceiver, audioContext?: AudioContext, audioOutput?: AudioOutputOptions, loggerOptions?: LoggerOptions);
|
15
15
|
/**
|
16
16
|
* sets the volume for all attached audio elements
|
17
17
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RemoteAudioTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/RemoteAudio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AY,CAAC,CAAe;IAEpC,OAAO,CAAC,QAAQ,CAAC,CAAW;IAE5B,OAAO,CAAC,UAAU,CAAC,CAA6B;IAEhD,OAAO,CAAC,mBAAmB,CAAc;IAEzC,OAAO,CAAC,MAAM,CAAC,CAAS;gBAGtB,UAAU,EAAE,gBAAgB,EAC5B,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,cAAc,EACxB,YAAY,CAAC,EAAE,YAAY,EAC3B,WAAW,CAAC,EAAE,kBAAkB,EAChC,aAAa,CAAC,EAAE,aAAa;IAU/B;;OAEG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM;IAexB;;OAEG;IACH,SAAS,IAAI,MAAM;IAiBnB;;;OAGG;IACG,SAAS,CAAC,QAAQ,EAAE,MAAM;IAahC,MAAM,IAAI,gBAAgB;IAC1B,MAAM,CAAC,OAAO,EAAE,gBAAgB,GAAG,gBAAgB;IA4BnD;;OAEG;IACH,MAAM,IAAI,gBAAgB,EAAE;IAE5B;;;OAGG;IACH,MAAM,CAAC,OAAO,EAAE,gBAAgB,GAAG,gBAAgB;IAqBnD;;;OAGG;IACH,eAAe,CAAC,YAAY,EAAE,YAAY,GAAG,SAAS;IAStD;;;;OAIG;IACH,kBAAkB,CAAC,KAAK,EAAE,SAAS,EAAE;IAOrC,OAAO,CAAC,eAAe;IAmCvB,OAAO,CAAC,kBAAkB;IAO1B,SAAS,CAAC,eAAe,sBAYvB;cAEc,gBAAgB,IAAI,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC;CAyB5E"}
|
@@ -2,8 +2,8 @@ import type { LoggerOptions } from '../types';
|
|
2
2
|
import { Track } from './Track';
|
3
3
|
export default abstract class RemoteTrack<TrackKind extends Track.Kind = Track.Kind> extends Track<TrackKind> {
|
4
4
|
/** @internal */
|
5
|
-
receiver
|
6
|
-
constructor(mediaTrack: MediaStreamTrack, sid: string, kind: TrackKind, receiver
|
5
|
+
receiver: RTCRtpReceiver | undefined;
|
6
|
+
constructor(mediaTrack: MediaStreamTrack, sid: string, kind: TrackKind, receiver: RTCRtpReceiver, loggerOptions?: LoggerOptions);
|
7
7
|
/** @internal */
|
8
8
|
setMuted(muted: boolean): void;
|
9
9
|
/** @internal */
|
@@ -17,6 +17,16 @@ export default abstract class RemoteTrack<TrackKind extends Track.Kind = Track.K
|
|
17
17
|
* @returns Promise<RTCStatsReport> | undefined
|
18
18
|
*/
|
19
19
|
getRTCStatsReport(): Promise<RTCStatsReport | undefined>;
|
20
|
+
/**
|
21
|
+
* Allows to set a playout delay (in seconds) for this track.
|
22
|
+
* A higher value allows for more buffering of the track in the browser
|
23
|
+
* and will result in a delay of media being played back of `delayInSeconds`
|
24
|
+
*/
|
25
|
+
setPlayoutDelay(delayInSeconds: number): void;
|
26
|
+
/**
|
27
|
+
* Returns the current playout delay (in seconds) of this track.
|
28
|
+
*/
|
29
|
+
getPlayoutDelay(): number;
|
20
30
|
startMonitor(): void;
|
21
31
|
protected abstract monitorReceiver(): void;
|
22
32
|
registerTimeSyncUpdate(): void;
|
@@ -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;AAGhC,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,
|
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;AAGhC,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,EAAE,cAAc,GAAG,SAAS,CAAC;gBAGnC,UAAU,EAAE,gBAAgB,EAC5B,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,SAAS,EACf,QAAQ,EAAE,cAAc,EACxB,aAAa,CAAC,EAAE,aAAa;IAQ/B,gBAAgB;IAChB,QAAQ,CAAC,KAAK,EAAE,OAAO;IAQvB,gBAAgB;IAChB,cAAc,CAAC,MAAM,EAAE,WAAW;IAiBlC,KAAK;IAML,IAAI;IAMJ;;;;;OAKG;IACG,iBAAiB,IAAI,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;IAQ9D;;;;OAIG;IACH,eAAe,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI;IAY7C;;OAEG;IACH,eAAe,IAAI,MAAM;IAczB,YAAY;IASZ,SAAS,CAAC,QAAQ,CAAC,eAAe,IAAI,IAAI;IAE1C,sBAAsB;CAcvB"}
|
@@ -8,7 +8,7 @@ export default class RemoteVideoTrack extends RemoteTrack<Track.Kind.Video> {
|
|
8
8
|
private adaptiveStreamSettings?;
|
9
9
|
private lastVisible?;
|
10
10
|
private lastDimensions?;
|
11
|
-
constructor(mediaTrack: MediaStreamTrack, sid: string, receiver
|
11
|
+
constructor(mediaTrack: MediaStreamTrack, sid: string, receiver: RTCRtpReceiver, adaptiveStreamSettings?: AdaptiveStreamSettings, loggerOptions?: LoggerOptions);
|
12
12
|
get isAdaptiveStream(): boolean;
|
13
13
|
/**
|
14
14
|
* Note: When using adaptiveStream, you need to use remoteVideoTrack.attach() to add the track to a HTMLVideoElement, otherwise your video tracks might never start
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RemoteVideoTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/RemoteVideoTr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
* scalability mode for svc codecs, defaults to '
|
56
|
+
* scalability mode for svc codecs, defaults to 'L3T3_KEY'.
|
57
57
|
* for svc codecs, simulcast is disabled.
|
58
58
|
*/
|
59
59
|
scalabilityMode?: ScalabilityMode;
|
package/dist/src/room/types.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/room/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,CAAC,EAAE;QACR,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB,CAAC;IACF,YAAY,CAAC,EAAE;QACb,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAC;IACjC,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IAEnC,QAAQ,EAAE,KAAK,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;IACrE,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAC1B,kBAAkB,GAClB,SAAS,GACT,cAAc,GACd,cAAc,GACd,WAAW,GACX,kBAAkB,GAClB,WAAW,GACX,WAAW,GACX,gBAAgB,GAIhB,sBAAsB,GACtB,6BAA6B,GAC7B,yCAAyC,GAEzC,sBAAsB,CAAC;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AAkB,GAClB,SAAS,GACT,cAAc,GACd,cAAc,GACd,WAAW,GACX,kBAAkB,GAClB,WAAW,GACX,WAAW,GACX,gBAAgB,GAIhB,sBAAsB,GACtB,6BAA6B,GAC7B,yCAAyC,GAEzC,sBAAsB,CAAC;AAE3B,MAAM,MAAM,aAAa,GAAG;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjD,CAAC;AAEF,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;IACf,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;CAC1B"}
|
package/dist/src/room/utils.d.ts
CHANGED
@@ -95,5 +95,5 @@ export declare function unwrapConstraint(constraint: ConstrainDOMString): string
|
|
95
95
|
export declare function unwrapConstraint(constraint: ConstrainULong): number;
|
96
96
|
export declare function toWebsocketUrl(url: string): string;
|
97
97
|
export declare function toHttpUrl(url: string): string;
|
98
|
-
export declare function extractTranscriptionSegments(transcription: TranscriptionModel): TranscriptionSegment[];
|
98
|
+
export declare function extractTranscriptionSegments(transcription: TranscriptionModel, firstReceivedTimesMap: Map<string, number>): TranscriptionSegment[];
|
99
99
|
//# sourceMappingURL=utils.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/room/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkB,aAAa,IAAI,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAIpG,OAAO,KAAK,eAAe,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,gBAAgB,MAAM,0BA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AAgB,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"}
|
package/dist/src/version.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { AddTrackRequest, AudioTrackFeature, ConnectionQualityUpdate,
|
1
|
+
import { AddTrackRequest, AudioTrackFeature, ConnectionQualityUpdate, JoinResponse, LeaveRequest, ParticipantInfo, ReconnectReason, ReconnectResponse, RequestResponse, Room, SessionDescription, SignalRequest, SignalTarget, SimulateScenario, SpeakerInfo, StreamStateUpdate, SubscribedQualityUpdate, SubscriptionPermissionUpdate, SubscriptionResponse, SyncState, TrackPermission, TrackPublishedResponse, TrackUnpublishedResponse, UpdateSubscription, UpdateTrackSettings, VideoLayer } from '@livekit/protocol';
|
2
2
|
import type { LoggerOptions } from '../room/types';
|
3
3
|
import { AsyncQueue } from '../utils/AsyncQueue';
|
4
4
|
interface ConnectOpts extends SignalOptions {
|
@@ -51,7 +51,8 @@ export declare class SignalClient {
|
|
51
51
|
onLocalTrackUnpublished?: (res: TrackUnpublishedResponse) => void;
|
52
52
|
onTokenRefresh?: (token: string) => void;
|
53
53
|
onLeave?: (leave: LeaveRequest) => void;
|
54
|
-
|
54
|
+
onRequestResponse?: (response: RequestResponse) => void;
|
55
|
+
onLocalTrackSubscribed?: (trackSid: string) => void;
|
55
56
|
connectOptions?: ConnectOpts;
|
56
57
|
ws?: WebSocket;
|
57
58
|
get currentState(): SignalConnectionState;
|
@@ -42,7 +42,7 @@ export default class PCTransport extends EventEmitter {
|
|
42
42
|
negotiate: {
|
43
43
|
(this: unknown, ...args: [
|
44
44
|
onError?: ((e: Error) => void) | undefined
|
45
|
-
] & any[]): Promise<
|
45
|
+
] & any[]): Promise<Promise<void>>;
|
46
46
|
cancel: (reason?: any) => void;
|
47
47
|
};
|
48
48
|
createAndSendOffer(options?: RTCOfferOptions): Promise<void>;
|