livekit-client 1.9.0 → 1.9.2
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +6 -5
- package/dist/livekit-client.esm.mjs +200 -58
- 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 +1 -0
- package/dist/src/api/SignalClient.d.ts.map +1 -1
- package/dist/src/room/PCTransport.d.ts.map +1 -1
- package/dist/src/room/RTCEngine.d.ts +1 -0
- package/dist/src/room/RTCEngine.d.ts.map +1 -1
- package/dist/src/room/Room.d.ts +4 -0
- 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/publishUtils.d.ts.map +1 -1
- package/dist/src/room/track/options.d.ts +7 -1
- package/dist/src/room/track/options.d.ts.map +1 -1
- package/dist/src/room/utils.d.ts +3 -0
- package/dist/src/room/utils.d.ts.map +1 -1
- package/dist/ts4.2/src/api/SignalClient.d.ts +1 -0
- package/dist/ts4.2/src/room/RTCEngine.d.ts +1 -0
- package/dist/ts4.2/src/room/Room.d.ts +4 -0
- package/dist/ts4.2/src/room/track/options.d.ts +7 -0
- package/dist/ts4.2/src/room/utils.d.ts +3 -0
- package/package.json +1 -1
- package/src/api/SignalClient.ts +15 -11
- package/src/room/PCTransport.ts +40 -1
- package/src/room/RTCEngine.ts +34 -1
- package/src/room/Room.ts +99 -42
- package/src/room/participant/LocalParticipant.ts +35 -4
- package/src/room/participant/publishUtils.ts +13 -5
- package/src/room/track/options.ts +14 -1
- package/src/room/utils.ts +18 -8
@@ -80,6 +80,7 @@ export declare class SignalClient {
|
|
80
80
|
sendRequest(message: SignalMessage, fromQueue?: boolean): Promise<void>;
|
81
81
|
private handleSignalResponse;
|
82
82
|
setReconnected(): void;
|
83
|
+
private handleOnClose;
|
83
84
|
private handleWSError;
|
84
85
|
/**
|
85
86
|
* Resets the ping timeout and starts a new timeout.
|
@@ -1 +1 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AQ;IAiBR,SAAS;IAUH,WAAW,CAAC,OAAO,EAAE,aAAa,EAAE,SAAS,GAAE,OAAe;IAoCpE,OAAO,CAAC,oBAAoB;IA+E5B,cAAc;IAUd,OAAO,CAAC,aAAa;IAarB,OAAO,CAAC,aAAa;IAIrB;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IAgBxB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAMxB,OAAO,CAAC,iBAAiB;IAazB,OAAO,CAAC,iBAAiB;CAO1B;AAoBD,wBAAgB,yBAAyB,CACvC,GAAG,EAAE,qBAAqB,GAAG,yBAAyB,GACrD,kBAAkB,CAMpB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PCTransport.d.ts","sourceRoot":"","sources":["../../../src/room/PCTransport.ts"],"names":[],"mappings":";AAAA,OAAO,YAAY,MAAM,QAAQ,CAAC;
|
1
|
+
{"version":3,"file":"PCTransport.d.ts","sourceRoot":"","sources":["../../../src/room/PCTransport.ts"],"names":[],"mappings":";AAAA,OAAO,YAAY,MAAM,QAAQ,CAAC;AAOlC,gBAAgB;AAChB,UAAU,gBAAgB;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,QAAQ;;;CAGX,CAAC;AAEX,gBAAgB;AAChB,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,YAAY;IACnD,EAAE,EAAE,iBAAiB,CAAC;IAEtB,iBAAiB,EAAE,mBAAmB,EAAE,CAAM;IAE9C,aAAa,EAAE,OAAO,CAAS;IAE/B,WAAW,EAAE,OAAO,CAAS;IAE7B,aAAa,EAAE,gBAAgB,EAAE,CAAM;IAEvC,gBAAgB,EAAE,MAAM,EAAE,CAAM;IAEhC,cAAc,EAAE,MAAM,EAAE,CAAM;IAE9B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;gBAEzC,MAAM,CAAC,EAAE,gBAAgB;IAKrC,IAAI,cAAc,IAAI,OAAO,CAE5B;IAEK,eAAe,CAAC,SAAS,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC;IAO9D,oBAAoB,CAAC,EAAE,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC;IAuBxE,SAAS;iDAA2B,KAAK,KAAK,IAAI;;MAW1C;IAEF,kBAAkB,CAAC,OAAO,CAAC,EAAE,eAAe;IAwF5C,kBAAkB,IAAI,OAAO,CAAC,yBAAyB,CAAC;IAY9D,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAQ9D,KAAK;YAMS,yBAAyB;CA4BxC"}
|
@@ -91,6 +91,7 @@ export default class RTCEngine extends RTCEngine_base {
|
|
91
91
|
*/
|
92
92
|
ensureDataTransportConnected(kind: DataPacket_Kind, subscriber?: boolean): Promise<void>;
|
93
93
|
private ensurePublisherConnected;
|
94
|
+
verifyTransport(): boolean;
|
94
95
|
/** @internal */
|
95
96
|
negotiate(): Promise<void>;
|
96
97
|
dataChannelForKind(kind: DataPacket_Kind, sub?: boolean): RTCDataChannel | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RTCEngine.d.ts","sourceRoot":"","sources":["../../../src/room/RTCEngine.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAElE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAGL,UAAU,EACV,eAAe,EACf,gBAAgB,EAEhB,WAAW,EACX,SAAS,EACT,UAAU,EACX,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,eAAe,EACf,YAAY,EAKb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,WAAyB,MAAM,eAAe,CAAC;A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ACV,oBAAoB,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAC7D,kBAAkB,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IAC5E,iBAAiB,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,KAAK,IAAI,CAAC;IAC7E,qBAAqB,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;CACxE,CAAC"}
|
package/dist/src/room/Room.d.ts
CHANGED
@@ -55,6 +55,8 @@ declare class Room extends Room_base {
|
|
55
55
|
/** future holding client initiated connection attempt */
|
56
56
|
private connectFuture?;
|
57
57
|
private disconnectLock;
|
58
|
+
private cachedParticipantSids;
|
59
|
+
private connectionReconcileInterval?;
|
58
60
|
/**
|
59
61
|
* Creates a new Room, the primary construct for a LiveKit session.
|
60
62
|
* @param options
|
@@ -169,6 +171,8 @@ declare class Room extends Room_base {
|
|
169
171
|
* subscription settings.
|
170
172
|
*/
|
171
173
|
private updateSubscriptions;
|
174
|
+
private registerConnectionReconcile;
|
175
|
+
private clearConnectionReconcile;
|
172
176
|
private setAndEmitConnectionState;
|
173
177
|
private emitWhenConnected;
|
174
178
|
private onLocalParticipantMetadataChanged;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Room.d.ts","sourceRoot":"","sources":["../../../src/room/Room.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAG9C,OAAO,KAAK,EAEV,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACZ,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,eAAe,EACf,gBAAgB,EAGhB,qBAAqB,EAQtB,MAAM,yBAAyB,CAAC;AASjC,OAAO,SAAS,MAAM,aAAa,CAAC;AAWpC,OAAO,gBAAgB,MAAM,gCAAgC,CAAC;AAC9D,OAAO,K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3,"file":"LocalParticipant.d.ts","sourceRoot":"","sources":["../../../../src/room/participant/LocalParticipant.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAc,eAAe,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC1F,OAAO,EAEL,eAAe,EAGf,sBAAsB,EAEvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,SAAS,MAAM,cAAc,CAAC;AAI1C,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,qBAAqB,MAAM,gCAAgC,CAAC;AAEnE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,wBAAwB,EACxB,yBAAyB,EAEzB,mBAAmB,EACnB,mBAAmB,
|
1
|
+
{"version":3,"file":"LocalParticipant.d.ts","sourceRoot":"","sources":["../../../../src/room/participant/LocalParticipant.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAc,eAAe,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC1F,OAAO,EAEL,eAAe,EAGf,sBAAsB,EAEvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,SAAS,MAAM,cAAc,CAAC;AAI1C,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,qBAAqB,MAAM,gCAAgC,CAAC;AAEnE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,wBAAwB,EACxB,yBAAyB,EAEzB,mBAAmB,EACnB,mBAAmB,EAGpB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAA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/room/participant/publishUtils.ts"],"names":[],"mappings":"AAEA,OAAO,eAAe,MAAM,0BAA0B,CAAC;AACvD,OAAO,eAAe,MAAM,0BAA0B,CAAC;AAEvD,OAAO,EACL,gBAAgB,EAEhB,mBAAmB,EACnB,UAAU,EACV,aAAa,EACb,WAAW,EAGZ,MAAM,kBAAkB,CAAC;
|
1
|
+
{"version":3,"file":"publishUtils.d.ts","sourceRoot":"","sources":["../../../../src/room/participant/publishUtils.ts"],"names":[],"mappings":"AAEA,OAAO,eAAe,MAAM,0BAA0B,CAAC;AACvD,OAAO,eAAe,MAAM,0BAA0B,CAAC;AAEvD,OAAO,EACL,gBAAgB,EAEhB,mBAAmB,EACnB,UAAU,EACV,aAAa,EACb,WAAW,EAGZ,MAAM,kBAAkB,CAAC;AAG1B,gBAAgB;AAChB,wBAAgB,sBAAsB,CACpC,gBAAgB,EAAE,gBAAgB,EAClC,WAAW,CAAC,EAAE,qBAAqB,GAClC,eAAe,GAAG,eAAe,CASnC;AAGD,eAAO,MAAM,UAAU,eAA8B,CAAC;AAGtD,eAAO,MAAM,SAAS,eAAgC,CAAC;AAGvD,eAAO,MAAM,kBAAkB,eAAoC,CAAC;AAGpE,eAAO,MAAM,0BAA0B,eAAyC,CAAC;AAGjF,eAAO,MAAM,yBAAyB,eAA6C,CAAC;AAGpF,eAAO,MAAM,yCAAyC,eAAgB,WAAW,kBAiBhF,CAAC;AAwBF,wBAAgB,qBAAqB,CACnC,aAAa,EAAE,OAAO,EACtB,KAAK,CAAC,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,mBAAmB,GAC5B,wBAAwB,EAAE,CAgG5B;AAED,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,eAAe,EACtB,UAAU,EAAE,gBAAgB,EAC5B,IAAI,EAAE,mBAAmB,0CA4B1B;AAGD,wBAAgB,4BAA4B,CAC1C,aAAa,EAAE,OAAO,EACtB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,UAAU,GACjB,aAAa,CAiCf;AAGD,wBAAgB,oBAAoB,CAClC,aAAa,EAAE,OAAO,EACtB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,GACb,WAAW,EAAE,CASf;AAGD,wBAAgB,sBAAsB,CACpC,aAAa,EAAE,OAAO,EACtB,QAAQ,EAAE,WAAW,GACpB,WAAW,EAAE,CAUf;AA4BD,gBAAgB;AAChB,wBAAgB,WAAW,CAAC,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,GAAG,SAAS,6BAelE"}
|
@@ -122,6 +122,11 @@ export interface ScreenShareCaptureOptions {
|
|
122
122
|
surfaceSwitching?: 'include' | 'exclude';
|
123
123
|
/** specifies whether the browser should include the system audio among the possible audio sources offered to the user */
|
124
124
|
systemAudio?: 'include' | 'exclude';
|
125
|
+
/**
|
126
|
+
* Experimental option to control whether the audio playing in a tab will continue to be played out of a user's
|
127
|
+
* local speakers when the tab is captured.
|
128
|
+
*/
|
129
|
+
suppressLocalAudioPlayback?: boolean;
|
125
130
|
}
|
126
131
|
export interface AudioCaptureOptions {
|
127
132
|
/**
|
@@ -186,11 +191,12 @@ export declare class VideoPreset {
|
|
186
191
|
export interface AudioPreset {
|
187
192
|
maxBitrate: number;
|
188
193
|
}
|
189
|
-
declare const codecs: readonly ["vp8", "h264", "av1"];
|
194
|
+
declare const codecs: readonly ["vp8", "h264", "vp9", "av1"];
|
190
195
|
declare const backupCodecs: readonly ["vp8", "h264"];
|
191
196
|
export type VideoCodec = (typeof codecs)[number];
|
192
197
|
export type BackupVideoCodec = (typeof backupCodecs)[number];
|
193
198
|
export declare function isBackupCodec(codec: string): codec is BackupVideoCodec;
|
199
|
+
export declare function isCodecEqual(c1: string | undefined, c2: string | undefined): boolean;
|
194
200
|
/**
|
195
201
|
* scalability modes for svc, only supprot l3t3 now.
|
196
202
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceR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AAE9C,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjD,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7D,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,CAEtE;AAED,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,EAAE,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAKpF;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC;AAErC,yBAAiB,YAAY,CAAC;IACrB,MAAM,SAAS,EAAE,WAEvB,CAAC;IACK,MAAM,MAAM,EAAE,WAEpB,CAAC;IACK,MAAM,KAAK,EAAE,WAEnB,CAAC;IACK,MAAM,WAAW,EAAE,WAEzB,CAAC;IACK,MAAM,gBAAgB,EAAE,WAE9B,CAAC;IACK,MAAM,sBAAsB,EAAE,WAEpC,CAAC;CACH;AAED;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;CAUf,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;CAUjB,CAAC;AAEX,eAAO,MAAM,kBAAkB;;;;;;CAMrB,CAAC"}
|
package/dist/src/room/utils.d.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import { ClientInfo } from '../proto/livekit_models';
|
2
2
|
import type LocalAudioTrack from './track/LocalAudioTrack';
|
3
3
|
import type RemoteAudioTrack from './track/RemoteAudioTrack';
|
4
|
+
export declare const ddExtensionURI = "https://aomediacodec.github.io/av1-rtp-spec/#dependency-descriptor-rtp-header-extension";
|
4
5
|
export declare function unpackStreamId(packed: string): string[];
|
5
6
|
export declare function sleep(duration: number): Promise<void>;
|
6
7
|
/** @internal */
|
@@ -10,6 +11,8 @@ export declare function supportsAddTrack(): boolean;
|
|
10
11
|
export declare function supportsAdaptiveStream(): boolean;
|
11
12
|
export declare function supportsDynacast(): boolean;
|
12
13
|
export declare function supportsAV1(): boolean;
|
14
|
+
export declare function supportsVP9(): boolean;
|
15
|
+
export declare function isSVCCodec(codec?: string): boolean;
|
13
16
|
export declare function supportsSetSinkId(elm?: HTMLMediaElement): boolean;
|
14
17
|
export declare function supportsSetCodecPreferences(transceiver: RTCRtpTransceiver): boolean;
|
15
18
|
export declare function isBrowserSupported(): boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/room/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAkB,MAAM,yBAAyB,CAAC;AAErE,OAAO,KAAK,eAAe,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,gBAAgB,MAAM,0BAA0B,CAAC;
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/room/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAkB,MAAM,yBAAyB,CAAC;AAErE,OAAO,KAAK,eAAe,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,gBAAgB,MAAM,0BAA0B,CAAC;AAK7D,eAAO,MAAM,cAAc,4FACgE,CAAC;AAE5F,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAMvD;AAED,wBAAsB,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE3D;AAED,gBAAgB;AAChB,wBAAgB,mBAAmB,YAElC;AAED,gBAAgB;AAChB,wBAAgB,gBAAgB,YAE/B;AAED,wBAAgB,sBAAsB,YAErC;AAED,wBAAgB,gBAAgB,YAE/B;AAED,wBAAgB,WAAW,IAAI,OAAO,CAYrC;AAED,wBAAgB,WAAW,IAAI,OAAO,CAYrC;AAED,wBAAgB,UAAU,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAElD;AAED,wBAAgB,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,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAE1B,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;gBAGrB,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,KAAK,IAAI,EAC1E,SAAS,CAAC,EAAE,MAAM,IAAI;CAWzB;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,eAAe,GAAG,gBAAgB,EACzC,OAAO,CAAC,EAAE,oBAAoB;;;;EA+C/B;AAED,qBAAa,KAAK;IAChB,OAAO,CAAC,QAAQ,CAAgB;IAEhC,OAAO,CAAC,MAAM,CAAS;;IAOvB,QAAQ;IAIR,IAAI,kBAGoB,IAAI;CAgB7B"}
|
@@ -83,6 +83,7 @@ export declare class SignalClient {
|
|
83
83
|
sendRequest(message: SignalMessage, fromQueue?: boolean): Promise<void>;
|
84
84
|
private handleSignalResponse;
|
85
85
|
setReconnected(): void;
|
86
|
+
private handleOnClose;
|
86
87
|
private handleWSError;
|
87
88
|
/**
|
88
89
|
* Resets the ping timeout and starts a new timeout.
|
@@ -91,6 +91,7 @@ export default class RTCEngine extends RTCEngine_base {
|
|
91
91
|
*/
|
92
92
|
ensureDataTransportConnected(kind: DataPacket_Kind, subscriber?: boolean): Promise<void>;
|
93
93
|
private ensurePublisherConnected;
|
94
|
+
verifyTransport(): boolean;
|
94
95
|
/** @internal */
|
95
96
|
negotiate(): Promise<void>;
|
96
97
|
dataChannelForKind(kind: DataPacket_Kind, sub?: boolean): RTCDataChannel | undefined;
|
@@ -55,6 +55,8 @@ declare class Room extends Room_base {
|
|
55
55
|
/** future holding client initiated connection attempt */
|
56
56
|
private connectFuture?;
|
57
57
|
private disconnectLock;
|
58
|
+
private cachedParticipantSids;
|
59
|
+
private connectionReconcileInterval?;
|
58
60
|
/**
|
59
61
|
* Creates a new Room, the primary construct for a LiveKit session.
|
60
62
|
* @param options
|
@@ -169,6 +171,8 @@ declare class Room extends Room_base {
|
|
169
171
|
* subscription settings.
|
170
172
|
*/
|
171
173
|
private updateSubscriptions;
|
174
|
+
private registerConnectionReconcile;
|
175
|
+
private clearConnectionReconcile;
|
172
176
|
private setAndEmitConnectionState;
|
173
177
|
private emitWhenConnected;
|
174
178
|
private onLocalParticipantMetadataChanged;
|
@@ -122,6 +122,11 @@ export interface ScreenShareCaptureOptions {
|
|
122
122
|
surfaceSwitching?: 'include' | 'exclude';
|
123
123
|
/** specifies whether the browser should include the system audio among the possible audio sources offered to the user */
|
124
124
|
systemAudio?: 'include' | 'exclude';
|
125
|
+
/**
|
126
|
+
* Experimental option to control whether the audio playing in a tab will continue to be played out of a user's
|
127
|
+
* local speakers when the tab is captured.
|
128
|
+
*/
|
129
|
+
suppressLocalAudioPlayback?: boolean;
|
125
130
|
}
|
126
131
|
export interface AudioCaptureOptions {
|
127
132
|
/**
|
@@ -189,6 +194,7 @@ export interface AudioPreset {
|
|
189
194
|
declare const codecs: readonly [
|
190
195
|
"vp8",
|
191
196
|
"h264",
|
197
|
+
"vp9",
|
192
198
|
"av1"
|
193
199
|
];
|
194
200
|
declare const backupCodecs: readonly [
|
@@ -198,6 +204,7 @@ declare const backupCodecs: readonly [
|
|
198
204
|
export type VideoCodec = (typeof codecs)[number];
|
199
205
|
export type BackupVideoCodec = (typeof backupCodecs)[number];
|
200
206
|
export declare function isBackupCodec(codec: string): codec is BackupVideoCodec;
|
207
|
+
export declare function isCodecEqual(c1: string | undefined, c2: string | undefined): boolean;
|
201
208
|
/**
|
202
209
|
* scalability modes for svc, only supprot l3t3 now.
|
203
210
|
*/
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { ClientInfo } from '../proto/livekit_models';
|
2
2
|
import type LocalAudioTrack from './track/LocalAudioTrack';
|
3
3
|
import type RemoteAudioTrack from './track/RemoteAudioTrack';
|
4
|
+
export declare const ddExtensionURI = "https://aomediacodec.github.io/av1-rtp-spec/#dependency-descriptor-rtp-header-extension";
|
4
5
|
export declare function unpackStreamId(packed: string): string[];
|
5
6
|
export declare function sleep(duration: number): Promise<void>;
|
6
7
|
/** @internal */
|
@@ -10,6 +11,8 @@ export declare function supportsAddTrack(): boolean;
|
|
10
11
|
export declare function supportsAdaptiveStream(): boolean;
|
11
12
|
export declare function supportsDynacast(): boolean;
|
12
13
|
export declare function supportsAV1(): boolean;
|
14
|
+
export declare function supportsVP9(): boolean;
|
15
|
+
export declare function isSVCCodec(codec?: string): boolean;
|
13
16
|
export declare function supportsSetSinkId(elm?: HTMLMediaElement): boolean;
|
14
17
|
export declare function supportsSetCodecPreferences(transceiver: RTCRtpTransceiver): boolean;
|
15
18
|
export declare function isBrowserSupported(): boolean;
|
package/package.json
CHANGED
package/src/api/SignalClient.ts
CHANGED
@@ -321,14 +321,7 @@ export class SignalClient {
|
|
321
321
|
};
|
322
322
|
|
323
323
|
this.ws.onclose = (ev: CloseEvent) => {
|
324
|
-
|
325
|
-
|
326
|
-
log.debug(`websocket connection closed: ${ev.reason}`);
|
327
|
-
this.isConnected = false;
|
328
|
-
if (this.onClose) {
|
329
|
-
this.onClose(ev.reason);
|
330
|
-
}
|
331
|
-
this.ws = undefined;
|
324
|
+
this.handleOnClose(ev.reason);
|
332
325
|
};
|
333
326
|
});
|
334
327
|
}
|
@@ -618,6 +611,19 @@ export class SignalClient {
|
|
618
611
|
this.isReconnecting = false;
|
619
612
|
}
|
620
613
|
|
614
|
+
private handleOnClose(reason: string) {
|
615
|
+
if (!this.isConnected) return;
|
616
|
+
this.clearPingInterval();
|
617
|
+
this.clearPingTimeout();
|
618
|
+
|
619
|
+
log.debug(`websocket connection closed: ${reason}`);
|
620
|
+
this.isConnected = false;
|
621
|
+
if (this.onClose) {
|
622
|
+
this.onClose(reason);
|
623
|
+
}
|
624
|
+
this.ws = undefined;
|
625
|
+
}
|
626
|
+
|
621
627
|
private handleWSError(ev: Event) {
|
622
628
|
log.error('websocket error', ev);
|
623
629
|
}
|
@@ -638,9 +644,7 @@ export class SignalClient {
|
|
638
644
|
Date.now() - this.pingTimeoutDuration! * 1000,
|
639
645
|
).toUTCString()}`,
|
640
646
|
);
|
641
|
-
|
642
|
-
this.onClose('ping timeout');
|
643
|
-
}
|
647
|
+
this.handleOnClose('ping timeout');
|
644
648
|
}, this.pingTimeoutDuration * 1000);
|
645
649
|
}
|
646
650
|
|
package/src/room/PCTransport.ts
CHANGED
@@ -3,6 +3,7 @@ import { MediaDescription, parse, write } from 'sdp-transform';
|
|
3
3
|
import { debounce } from 'ts-debounce';
|
4
4
|
import log from '../logger';
|
5
5
|
import { NegotiationError } from './errors';
|
6
|
+
import { ddExtensionURI, isSVCCodec } from './utils';
|
6
7
|
|
7
8
|
/** @internal */
|
8
9
|
interface TrackBitrateInfo {
|
@@ -122,6 +123,7 @@ export default class PCTransport extends EventEmitter {
|
|
122
123
|
if (media.type === 'audio') {
|
123
124
|
ensureAudioNackAndStereo(media, [], []);
|
124
125
|
} else if (media.type === 'video') {
|
126
|
+
ensureVideoDDExtensionForSVC(media);
|
125
127
|
// mung sdp for codec bitrate setting that can't apply by sendEncoding
|
126
128
|
this.trackBitrates.some((trackbr): boolean => {
|
127
129
|
if (!media.msid || !media.msid.includes(trackbr.sid)) {
|
@@ -142,6 +144,9 @@ export default class PCTransport extends EventEmitter {
|
|
142
144
|
if (
|
143
145
|
!media.fmtp.some((fmtp): boolean => {
|
144
146
|
if (fmtp.payload === codecPayload) {
|
147
|
+
if (!fmtp.config.includes('x-google-start-bitrate')) {
|
148
|
+
fmtp.config += `;x-google-start-bitrate=${trackbr.maxbr * 0.7}`;
|
149
|
+
}
|
145
150
|
if (!fmtp.config.includes('x-google-max-bitrate')) {
|
146
151
|
fmtp.config += `;x-google-max-bitrate=${trackbr.maxbr}`;
|
147
152
|
}
|
@@ -152,7 +157,9 @@ export default class PCTransport extends EventEmitter {
|
|
152
157
|
) {
|
153
158
|
media.fmtp.push({
|
154
159
|
payload: codecPayload,
|
155
|
-
config: `x-google-
|
160
|
+
config: `x-google-start-bitrate=${trackbr.maxbr * 0.7};x-google-max-bitrate=${
|
161
|
+
trackbr.maxbr
|
162
|
+
}`,
|
156
163
|
});
|
157
164
|
}
|
158
165
|
}
|
@@ -274,6 +281,38 @@ function ensureAudioNackAndStereo(
|
|
274
281
|
}
|
275
282
|
}
|
276
283
|
|
284
|
+
function ensureVideoDDExtensionForSVC(
|
285
|
+
media: {
|
286
|
+
type: string;
|
287
|
+
port: number;
|
288
|
+
protocol: string;
|
289
|
+
payloads?: string | undefined;
|
290
|
+
} & MediaDescription,
|
291
|
+
) {
|
292
|
+
const codec = media.rtp.at(0)?.codec?.toLowerCase();
|
293
|
+
if (!isSVCCodec(codec)) {
|
294
|
+
return;
|
295
|
+
}
|
296
|
+
|
297
|
+
let maxID = 0;
|
298
|
+
const ddFound = media.ext?.some((ext): boolean => {
|
299
|
+
if (ext.uri === ddExtensionURI) {
|
300
|
+
return true;
|
301
|
+
}
|
302
|
+
if (ext.value > maxID) {
|
303
|
+
maxID = ext.value;
|
304
|
+
}
|
305
|
+
return false;
|
306
|
+
});
|
307
|
+
|
308
|
+
if (!ddFound) {
|
309
|
+
media.ext?.push({
|
310
|
+
value: maxID + 1,
|
311
|
+
uri: ddExtensionURI,
|
312
|
+
});
|
313
|
+
}
|
314
|
+
}
|
315
|
+
|
277
316
|
function extractStereoAndNackAudioFromOffer(offer: RTCSessionDescriptionInit): {
|
278
317
|
stereoMids: string[];
|
279
318
|
nackMids: string[];
|
package/src/room/RTCEngine.ts
CHANGED
@@ -821,7 +821,7 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
|
|
821
821
|
}ms. giving up`,
|
822
822
|
);
|
823
823
|
this.emit(EngineEvent.Disconnected);
|
824
|
-
this.close();
|
824
|
+
await this.close();
|
825
825
|
}
|
826
826
|
} finally {
|
827
827
|
this.attemptingReconnect = false;
|
@@ -1120,6 +1120,39 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
|
|
1120
1120
|
await this.ensureDataTransportConnected(kind, false);
|
1121
1121
|
}
|
1122
1122
|
|
1123
|
+
/* @internal */
|
1124
|
+
verifyTransport(): boolean {
|
1125
|
+
// primary connection
|
1126
|
+
if (!this.primaryPC) {
|
1127
|
+
return false;
|
1128
|
+
}
|
1129
|
+
if (
|
1130
|
+
this.primaryPC.connectionState === 'closed' ||
|
1131
|
+
this.primaryPC.connectionState === 'failed'
|
1132
|
+
) {
|
1133
|
+
return false;
|
1134
|
+
}
|
1135
|
+
|
1136
|
+
// also verify publisher connection if it's needed or different
|
1137
|
+
if (this.hasPublished && this.subscriberPrimary) {
|
1138
|
+
if (!this.publisher) {
|
1139
|
+
return false;
|
1140
|
+
}
|
1141
|
+
if (
|
1142
|
+
this.publisher.pc.connectionState === 'closed' ||
|
1143
|
+
this.publisher.pc.connectionState === 'failed'
|
1144
|
+
) {
|
1145
|
+
return false;
|
1146
|
+
}
|
1147
|
+
}
|
1148
|
+
|
1149
|
+
// ensure signal is connected
|
1150
|
+
if (!this.client.ws || this.client.ws.readyState === WebSocket.CLOSED) {
|
1151
|
+
return false;
|
1152
|
+
}
|
1153
|
+
return true;
|
1154
|
+
}
|
1155
|
+
|
1123
1156
|
/** @internal */
|
1124
1157
|
negotiate(): Promise<void> {
|
1125
1158
|
// observe signal state
|