livekit-client 1.6.6 → 1.6.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/livekit-client.esm.mjs +96 -84
- 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/PCTransport.d.ts.map +1 -1
- package/dist/src/room/RTCEngine.d.ts +10 -3
- package/dist/src/room/RTCEngine.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/RemoteParticipant.d.ts.map +1 -1
- package/dist/src/room/track/RemoteTrackPublication.d.ts +1 -1
- package/dist/src/room/track/RemoteTrackPublication.d.ts.map +1 -1
- package/dist/src/room/track/RemoteVideoTrack.d.ts.map +1 -1
- package/dist/src/room/track/Track.d.ts +2 -1
- package/dist/src/room/track/Track.d.ts.map +1 -1
- package/dist/src/room/track/options.d.ts +2 -2
- package/dist/ts4.2/src/room/RTCEngine.d.ts +10 -3
- package/dist/ts4.2/src/room/track/RemoteTrackPublication.d.ts +1 -1
- package/dist/ts4.2/src/room/track/Track.d.ts +2 -1
- package/dist/ts4.2/src/room/track/options.d.ts +2 -2
- package/package.json +13 -13
- package/src/room/PCTransport.ts +2 -0
- package/src/room/RTCEngine.ts +46 -51
- package/src/room/Room.ts +13 -3
- package/src/room/participant/LocalParticipant.ts +19 -7
- package/src/room/participant/RemoteParticipant.ts +2 -3
- package/src/room/track/RemoteTrackPublication.ts +3 -2
- package/src/room/track/RemoteVideoTrack.ts +0 -3
- package/src/room/track/Track.ts +2 -1
- package/src/room/track/options.ts +2 -2
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PCTransport.d.ts","sourceRoot":"","sources":["../../../src/room/PCTransport.ts"],"names":[],"mappings":";AAAA,OAAO,YAAY,MAAM,QAAQ,CAAC;AAMlC,gBAAgB;AAChB,UAAU,gBAAgB;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,K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;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;IAkF5C,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"}
|
@@ -35,7 +35,6 @@ export default class RTCEngine extends RTCEngine_base {
|
|
35
35
|
private reconnectStart;
|
36
36
|
private fullReconnectOnNext;
|
37
37
|
private clientConfiguration?;
|
38
|
-
private connectedServerAddr?;
|
39
38
|
private attemptingReconnect;
|
40
39
|
private reconnectPolicy;
|
41
40
|
private reconnectTimeout?;
|
@@ -45,14 +44,21 @@ export default class RTCEngine extends RTCEngine_base {
|
|
45
44
|
/** specifies how often an initial join connection is allowed to retry */
|
46
45
|
private maxJoinAttempts;
|
47
46
|
private closingLock;
|
47
|
+
private shouldFailNext;
|
48
48
|
constructor(options: InternalRoomOptions);
|
49
49
|
join(url: string, token: string, opts: SignalOptions, abortSignal?: AbortSignal): Promise<JoinResponse>;
|
50
50
|
close(): Promise<void>;
|
51
51
|
addTrack(req: AddTrackRequest): Promise<TrackInfo>;
|
52
|
-
|
52
|
+
/**
|
53
|
+
* Removes sender from PeerConnection, returning true if it was removed successfully
|
54
|
+
* and a negotiation is necessary
|
55
|
+
* @param sender
|
56
|
+
* @returns
|
57
|
+
*/
|
58
|
+
removeTrack(sender: RTCRtpSender): boolean;
|
53
59
|
updateMuteStatus(trackSid: string, muted: boolean): void;
|
54
60
|
get dataSubscriberReadyState(): string | undefined;
|
55
|
-
|
61
|
+
getConnectedServerAddress(): Promise<string | undefined>;
|
56
62
|
private configure;
|
57
63
|
private makeRTCConfiguration;
|
58
64
|
private createDataChannels;
|
@@ -80,6 +86,7 @@ export default class RTCEngine extends RTCEngine_base {
|
|
80
86
|
/** @internal */
|
81
87
|
negotiate(): Promise<void>;
|
82
88
|
dataChannelForKind(kind: DataPacket_Kind, sub?: boolean): RTCDataChannel | undefined;
|
89
|
+
failNext(): void;
|
83
90
|
private clearReconnectTimeout;
|
84
91
|
private clearPendingReconnect;
|
85
92
|
private handleBrowserOnLine;
|
@@ -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;AAU9B,OAAO,WAAyB,MA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qB,GAAG,SAAS;IAO/D;;OAEG;IACH,WAAW,CAAC,MAAM,EAAE,SAAS;IAwB7B;;;;;OAKG;IACH,gBAAgB,CACd,OAAO,EAAE,OAAO,EAChB,OAAO,CAAC,EAAE,mBAAmB,EAC7B,cAAc,CAAC,EAAE,mBAAmB,GACnC,OAAO,CAAC,qBAAqB,GAAG,SAAS,CAAC;IAI7C;;;;;OAKG;IACH,oBAAoB,CAClB,OAAO,EAAE,OAAO,EAChB,OAAO,CAAC,EAAE,mBAAmB,EAC7B,cAAc,CAAC,EAAE,mBAAmB,GACnC,OAAO,CAAC,qBAAqB,GAAG,SAAS,CAAC;IAI7C;;;OAGG;IACH,qBAAqB,CACnB,OAAO,EAAE,OAAO,EAChB,OAAO,CAAC,EAAE,yBAAyB,EACnC,cAAc,CAAC,EAAE,mBAAmB,GACnC,OAAO,CAAC,qBAAqB,GAAG,SAAS,CAAC;IAI7C;;;;OAIG;YACW,eAAe;IA2F7B;;;OAGG;IACG,yBAAyB;IAwB/B;;;;OAIG;IACG,YAAY,CAAC,OAAO,CAAC,EAAE,wBAAwB,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;IAqD7E;;;;OAIG;IACG,kBAAkB,CAAC,OAAO,CAAC,EAAE,yBAAyB,GAAG,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IAiDzF;;;;OAIG;IACG,YAAY,CAChB,KAAK,EAAE,UAAU,GAAG,gBAAgB,EACpC,OAAO,CAAC,EAAE,mBAAmB,GAC5B,OAAO,CAAC,qBAAqB,CAAC;
|
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,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E,UAAU,CAAC,yBAAyB,CAAC,CAAC,CAAC,CAAC,GAChD,OAAO;CAIX"}
|
@@ -11,7 +11,7 @@ export default class RemoteTrackPublication extends TrackPublication {
|
|
11
11
|
protected currentVideoQuality?: VideoQuality;
|
12
12
|
protected videoDimensions?: Track.Dimensions;
|
13
13
|
protected fps?: number;
|
14
|
-
constructor(kind: Track.Kind,
|
14
|
+
constructor(kind: Track.Kind, ti: TrackInfo, autoSubscribe: boolean | undefined);
|
15
15
|
/**
|
16
16
|
* Subscribe or unsubscribe to this remote track
|
17
17
|
* @param subscribed true to subscribe to a track, false to unsubscribe
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RemoteTrackPublication.d.ts","sourceRoot":"","sources":["../../../../src/room/track/RemoteTrackPublication.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAGrE,OAAO,KAAK,WAAW,MAAM,eAAe,CAAC;AAE7C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,gBAAgB;IAClE,KAAK,CAAC,EAAE,WAAW,CAAa;IAEhC,gBAAgB;IAChB,SAAS,CAAC,OAAO,UAAQ;IAGzB,SAAS,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAE/B,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAS;IAEpC,SAAS,CAAC,mBAAmB,CAAC,EAAE,YAAY,CAAqB;IAEjE,SAAS,CAAC,eAAe,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC;IAE7C,SAAS,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;gBAEX,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE,
|
1
|
+
{"version":3,"file":"RemoteTrackPublication.d.ts","sourceRoot":"","sources":["../../../../src/room/track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AI,YAAY,IAAI,YAAY,GAAG,SAAS,CAE3C;IAED,gBAAgB;IAChB,QAAQ,CAAC,KAAK,CAAC,EAAE,WAAW;IA2B5B,gBAAgB;IAChB,UAAU,CAAC,OAAO,EAAE,OAAO;IAQ3B,gBAAgB;IAChB,UAAU,CAAC,IAAI,EAAE,SAAS;IAM1B,OAAO,CAAC,+BAA+B;IAQvC,OAAO,CAAC,6BAA6B;IAarC,OAAO,CAAC,wBAAwB;IAchC,SAAS,CAAC,WAAW,UAAW,WAAW,UAGzC;IAEF,SAAS,KAAK,gBAAgB,IAAI,OAAO,CAExC;IAED,SAAS,CAAC,sBAAsB,YAAa,OAAO,UAMlD;IAEF,SAAS,CAAC,2BAA2B,eAAgB,MAAM,UAAU,UAMnE;IAGF,eAAe;CAkBhB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RemoteVideoTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/RemoteVideoTrack.ts"],"names":[],"mappings":"AAMA,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAItD,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,WAAW;IACvD,OAAO,CAAC,SAAS,CAAC,CAAqB;IAEvC,OAAO,CAAC,YAAY,CAAqB;IAEzC,OAAO,CAAC,sBAAsB,CAAC,CAAyB;IAExD,OAAO,CAAC,WAAW,CAAC,CAAU;IAE9B,OAAO,CAAC,cAAc,CAAC,CAAmB;IAE1C,OAAO,CAAC,aAAa,CAAkB;gBAGrC,UAAU,EAAE,gBAAgB,EAC5B,GAAG,EAAE,MAAM,EACX,QAAQ,CAAC,EAAE,cAAc,EACzB,sBAAsB,CAAC,EAAE,sBAAsB;
|
1
|
+
{"version":3,"file":"RemoteVideoTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/RemoteVideoTrack.ts"],"names":[],"mappings":"AAMA,OAAO,WAAW,MAAM,eAAe,CAAC;A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E,OAAO,CAAC;IACjB,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"}
|
@@ -17,7 +17,8 @@ export declare abstract class Track extends Track_base {
|
|
17
17
|
*/
|
18
18
|
mediaStream?: MediaStream;
|
19
19
|
/**
|
20
|
-
* indicates current state of stream
|
20
|
+
* indicates current state of stream, it'll indicate `paused` if the track
|
21
|
+
* has been paused by congestion controller
|
21
22
|
*/
|
22
23
|
streamState: Track.StreamState;
|
23
24
|
protected _mediaStreamTrack: MediaStreamTrack;
|
@@ -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,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;oCAUX,kBAAkB,mBAAmB,CAAC;AAArG,8BAAsB,KAAM,SAAQ,UAAkE;IACpG,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;IAEjB,gBAAgB,EAAE,gBAAgB,EAAE,CAAM;IAE1C,OAAO,EAAE,OAAO,CAAS;IAEzB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;IAErB;;OAEG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC;IAEhB;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAE1B
|
1
|
+
{"version":3,"file":"Track.d.ts","sourceRoot":"","sources":["../../../../src/room/track/Track.ts"],"names":[],"mappings":"AACA,OAA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of audio),
|
28
|
+
* dtx (Discontinuous Transmission of audio), enabled by default for mono tracks.
|
29
29
|
*/
|
30
30
|
dtx?: boolean;
|
31
31
|
/**
|
32
|
-
* red (Redundant Audio Data),
|
32
|
+
* red (Redundant Audio Data), enabled by default for mono tracks.
|
33
33
|
*/
|
34
34
|
red?: boolean;
|
35
35
|
/**
|
@@ -35,7 +35,6 @@ export default class RTCEngine extends RTCEngine_base {
|
|
35
35
|
private reconnectStart;
|
36
36
|
private fullReconnectOnNext;
|
37
37
|
private clientConfiguration?;
|
38
|
-
private connectedServerAddr?;
|
39
38
|
private attemptingReconnect;
|
40
39
|
private reconnectPolicy;
|
41
40
|
private reconnectTimeout?;
|
@@ -45,14 +44,21 @@ export default class RTCEngine extends RTCEngine_base {
|
|
45
44
|
/** specifies how often an initial join connection is allowed to retry */
|
46
45
|
private maxJoinAttempts;
|
47
46
|
private closingLock;
|
47
|
+
private shouldFailNext;
|
48
48
|
constructor(options: InternalRoomOptions);
|
49
49
|
join(url: string, token: string, opts: SignalOptions, abortSignal?: AbortSignal): Promise<JoinResponse>;
|
50
50
|
close(): Promise<void>;
|
51
51
|
addTrack(req: AddTrackRequest): Promise<TrackInfo>;
|
52
|
-
|
52
|
+
/**
|
53
|
+
* Removes sender from PeerConnection, returning true if it was removed successfully
|
54
|
+
* and a negotiation is necessary
|
55
|
+
* @param sender
|
56
|
+
* @returns
|
57
|
+
*/
|
58
|
+
removeTrack(sender: RTCRtpSender): boolean;
|
53
59
|
updateMuteStatus(trackSid: string, muted: boolean): void;
|
54
60
|
get dataSubscriberReadyState(): string | undefined;
|
55
|
-
|
61
|
+
getConnectedServerAddress(): Promise<string | undefined>;
|
56
62
|
private configure;
|
57
63
|
private makeRTCConfiguration;
|
58
64
|
private createDataChannels;
|
@@ -80,6 +86,7 @@ export default class RTCEngine extends RTCEngine_base {
|
|
80
86
|
/** @internal */
|
81
87
|
negotiate(): Promise<void>;
|
82
88
|
dataChannelForKind(kind: DataPacket_Kind, sub?: boolean): RTCDataChannel | undefined;
|
89
|
+
failNext(): void;
|
83
90
|
private clearReconnectTimeout;
|
84
91
|
private clearPendingReconnect;
|
85
92
|
private handleBrowserOnLine;
|
@@ -11,7 +11,7 @@ export default class RemoteTrackPublication extends TrackPublication {
|
|
11
11
|
protected currentVideoQuality?: VideoQuality;
|
12
12
|
protected videoDimensions?: Track.Dimensions;
|
13
13
|
protected fps?: number;
|
14
|
-
constructor(kind: Track.Kind,
|
14
|
+
constructor(kind: Track.Kind, ti: TrackInfo, autoSubscribe: boolean | undefined);
|
15
15
|
/**
|
16
16
|
* Subscribe or unsubscribe to this remote track
|
17
17
|
* @param subscribed true to subscribe to a track, false to unsubscribe
|
@@ -17,7 +17,8 @@ export declare abstract class Track extends Track_base {
|
|
17
17
|
*/
|
18
18
|
mediaStream?: MediaStream;
|
19
19
|
/**
|
20
|
-
* indicates current state of stream
|
20
|
+
* indicates current state of stream, it'll indicate `paused` if the track
|
21
|
+
* has been paused by congestion controller
|
21
22
|
*/
|
22
23
|
streamState: Track.StreamState;
|
23
24
|
protected _mediaStreamTrack: MediaStreamTrack;
|
@@ -25,11 +25,11 @@ export interface TrackPublishDefaults {
|
|
25
25
|
*/
|
26
26
|
audioBitrate?: number;
|
27
27
|
/**
|
28
|
-
* dtx (Discontinuous Transmission of audio),
|
28
|
+
* dtx (Discontinuous Transmission of audio), enabled by default for mono tracks.
|
29
29
|
*/
|
30
30
|
dtx?: boolean;
|
31
31
|
/**
|
32
|
-
* red (Redundant Audio Data),
|
32
|
+
* red (Redundant Audio Data), enabled by default for mono tracks.
|
33
33
|
*/
|
34
34
|
red?: boolean;
|
35
35
|
/**
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "livekit-client",
|
3
|
-
"version": "1.6.
|
3
|
+
"version": "1.6.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",
|
@@ -51,7 +51,7 @@
|
|
51
51
|
"webrtc-adapter": "^8.1.1"
|
52
52
|
},
|
53
53
|
"devDependencies": {
|
54
|
-
"@babel/core": "7.
|
54
|
+
"@babel/core": "7.21.0",
|
55
55
|
"@babel/preset-env": "7.20.2",
|
56
56
|
"@changesets/changelog-github": "0.4.8",
|
57
57
|
"@changesets/cli": "2.26.0",
|
@@ -63,28 +63,28 @@
|
|
63
63
|
"@types/sdp-transform": "2.4.5",
|
64
64
|
"@types/ua-parser-js": "0.7.36",
|
65
65
|
"@types/ws": "8.5.4",
|
66
|
-
"@typescript-eslint/eslint-plugin": "5.
|
67
|
-
"@typescript-eslint/parser": "5.
|
66
|
+
"@typescript-eslint/eslint-plugin": "5.54.0",
|
67
|
+
"@typescript-eslint/parser": "5.54.0",
|
68
68
|
"downlevel-dts": "^0.11.0",
|
69
|
-
"eslint": "8.
|
69
|
+
"eslint": "8.35.0",
|
70
70
|
"eslint-config-airbnb-typescript": "17.0.0",
|
71
71
|
"eslint-config-prettier": "8.6.0",
|
72
72
|
"eslint-plugin-import": "2.27.5",
|
73
|
-
"gh-pages": "
|
74
|
-
"jest": "29.4.
|
75
|
-
"prettier": "2.8.
|
76
|
-
"rollup": "3.
|
73
|
+
"gh-pages": "5.0.0",
|
74
|
+
"jest": "29.4.3",
|
75
|
+
"prettier": "2.8.4",
|
76
|
+
"rollup": "3.18.0",
|
77
77
|
"rollup-plugin-delete": "^2.0.0",
|
78
|
-
"rollup-plugin-filesize": "
|
78
|
+
"rollup-plugin-filesize": "10.0.0",
|
79
79
|
"rollup-plugin-re": "1.0.7",
|
80
80
|
"rollup-plugin-terser": "7.0.2",
|
81
81
|
"rollup-plugin-typescript2": "0.34.1",
|
82
82
|
"ts-jest": "29.0.5",
|
83
|
-
"ts-proto": "1.
|
84
|
-
"typedoc": "0.23.
|
83
|
+
"ts-proto": "1.140.0",
|
84
|
+
"typedoc": "0.23.26",
|
85
85
|
"typedoc-plugin-no-inherit": "1.4.0",
|
86
86
|
"typescript": "4.9.5",
|
87
|
-
"vite": "4.
|
87
|
+
"vite": "4.1.4"
|
88
88
|
},
|
89
89
|
"browserslist": [
|
90
90
|
"safari >= 11",
|
package/src/room/PCTransport.ts
CHANGED
package/src/room/RTCEngine.ts
CHANGED
@@ -118,8 +118,6 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
|
|
118
118
|
|
119
119
|
private clientConfiguration?: ClientConfiguration;
|
120
120
|
|
121
|
-
private connectedServerAddr?: string;
|
122
|
-
|
123
121
|
private attemptingReconnect: boolean = false;
|
124
122
|
|
125
123
|
private reconnectPolicy: ReconnectPolicy;
|
@@ -136,6 +134,8 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
|
|
136
134
|
|
137
135
|
private closingLock: Mutex;
|
138
136
|
|
137
|
+
private shouldFailNext: boolean = false;
|
138
|
+
|
139
139
|
constructor(private options: InternalRoomOptions) {
|
140
140
|
super();
|
141
141
|
this.client = new SignalClient();
|
@@ -247,7 +247,13 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
|
|
247
247
|
});
|
248
248
|
}
|
249
249
|
|
250
|
-
|
250
|
+
/**
|
251
|
+
* Removes sender from PeerConnection, returning true if it was removed successfully
|
252
|
+
* and a negotiation is necessary
|
253
|
+
* @param sender
|
254
|
+
* @returns
|
255
|
+
*/
|
256
|
+
removeTrack(sender: RTCRtpSender): boolean {
|
251
257
|
if (sender.track && this.pendingTrackResolvers[sender.track.id]) {
|
252
258
|
const { reject } = this.pendingTrackResolvers[sender.track.id];
|
253
259
|
if (reject) {
|
@@ -257,9 +263,11 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
|
|
257
263
|
}
|
258
264
|
try {
|
259
265
|
this.publisher?.pc.removeTrack(sender);
|
266
|
+
return true;
|
260
267
|
} catch (e: unknown) {
|
261
268
|
log.warn('failed to remove track', { error: e, method: 'removeTrack' });
|
262
269
|
}
|
270
|
+
return false;
|
263
271
|
}
|
264
272
|
|
265
273
|
updateMuteStatus(trackSid: string, muted: boolean) {
|
@@ -270,8 +278,11 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
|
|
270
278
|
return this.reliableDCSub?.readyState;
|
271
279
|
}
|
272
280
|
|
273
|
-
|
274
|
-
|
281
|
+
async getConnectedServerAddress(): Promise<string | undefined> {
|
282
|
+
if (this.primaryPC === undefined) {
|
283
|
+
return undefined;
|
284
|
+
}
|
285
|
+
return getConnectedAddress(this.primaryPC);
|
275
286
|
}
|
276
287
|
|
277
288
|
private configure(joinResponse: JoinResponse) {
|
@@ -317,11 +328,6 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
|
|
317
328
|
primaryPC.onconnectionstatechange = async () => {
|
318
329
|
log.debug(`primary PC state changed ${primaryPC.connectionState}`);
|
319
330
|
if (primaryPC.connectionState === 'connected') {
|
320
|
-
try {
|
321
|
-
this.connectedServerAddr = await getConnectedAddress(primaryPC);
|
322
|
-
} catch (e) {
|
323
|
-
log.warn('could not get connected server address', { error: e });
|
324
|
-
}
|
325
331
|
const shouldEmit = this.pcState === PCState.New;
|
326
332
|
this.pcState = PCState.Connected;
|
327
333
|
if (shouldEmit) {
|
@@ -334,7 +340,6 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
|
|
334
340
|
|
335
341
|
this.handleDisconnect(
|
336
342
|
'primary peerconnection',
|
337
|
-
false,
|
338
343
|
subscriberPrimary
|
339
344
|
? ReconnectReason.REASON_SUBSCRIBER_FAILED
|
340
345
|
: ReconnectReason.REASON_PUBLISHER_FAILED,
|
@@ -348,7 +353,6 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
|
|
348
353
|
if (secondaryPC.connectionState === 'failed') {
|
349
354
|
this.handleDisconnect(
|
350
355
|
'secondary peerconnection',
|
351
|
-
false,
|
352
356
|
subscriberPrimary
|
353
357
|
? ReconnectReason.REASON_PUBLISHER_FAILED
|
354
358
|
: ReconnectReason.REASON_SUBSCRIBER_FAILED,
|
@@ -419,7 +423,7 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
|
|
419
423
|
};
|
420
424
|
|
421
425
|
this.client.onClose = () => {
|
422
|
-
this.handleDisconnect('signal',
|
426
|
+
this.handleDisconnect('signal', ReconnectReason.REASON_SIGNAL_DISCONNECTED);
|
423
427
|
};
|
424
428
|
|
425
429
|
this.client.onLeave = (leave?: LeaveRequest) => {
|
@@ -690,11 +694,7 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
|
|
690
694
|
// websocket reconnect behavior. if websocket is interrupted, and the PeerConnection
|
691
695
|
// continues to work, we can reconnect to websocket to continue the session
|
692
696
|
// after a number of retries, we'll close and give up permanently
|
693
|
-
private handleDisconnect = (
|
694
|
-
connection: string,
|
695
|
-
signalEvents: boolean = false,
|
696
|
-
disconnectReason?: ReconnectReason,
|
697
|
-
) => {
|
697
|
+
private handleDisconnect = (connection: string, disconnectReason?: ReconnectReason) => {
|
698
698
|
if (this._isClosed) {
|
699
699
|
return;
|
700
700
|
}
|
@@ -731,12 +731,12 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
|
|
731
731
|
|
732
732
|
this.clearReconnectTimeout();
|
733
733
|
this.reconnectTimeout = CriticalTimers.setTimeout(
|
734
|
-
() => this.attemptReconnect(
|
734
|
+
() => this.attemptReconnect(disconnectReason),
|
735
735
|
delay,
|
736
736
|
);
|
737
737
|
};
|
738
738
|
|
739
|
-
private async attemptReconnect(
|
739
|
+
private async attemptReconnect(reason?: ReconnectReason) {
|
740
740
|
if (this._isClosed) {
|
741
741
|
return;
|
742
742
|
}
|
@@ -756,35 +756,26 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
|
|
756
756
|
try {
|
757
757
|
this.attemptingReconnect = true;
|
758
758
|
if (this.fullReconnectOnNext) {
|
759
|
-
await this.restartConnection(
|
759
|
+
await this.restartConnection();
|
760
760
|
} else {
|
761
|
-
await this.resumeConnection(
|
761
|
+
await this.resumeConnection(reason);
|
762
762
|
}
|
763
763
|
this.clearPendingReconnect();
|
764
764
|
this.fullReconnectOnNext = false;
|
765
765
|
} catch (e) {
|
766
766
|
this.reconnectAttempts += 1;
|
767
|
-
let reconnectRequired = false;
|
768
767
|
let recoverable = true;
|
769
|
-
let requireSignalEvents = false;
|
770
768
|
if (e instanceof UnexpectedConnectionState) {
|
771
769
|
log.debug('received unrecoverable error', { error: e });
|
772
770
|
// unrecoverable
|
773
771
|
recoverable = false;
|
774
772
|
} else if (!(e instanceof SignalReconnectError)) {
|
775
773
|
// cannot resume
|
776
|
-
reconnectRequired = true;
|
777
|
-
}
|
778
|
-
|
779
|
-
// when we flip from resume to reconnect
|
780
|
-
// we need to fire the right reconnecting events
|
781
|
-
if (reconnectRequired && !this.fullReconnectOnNext) {
|
782
774
|
this.fullReconnectOnNext = true;
|
783
|
-
requireSignalEvents = true;
|
784
775
|
}
|
785
776
|
|
786
777
|
if (recoverable) {
|
787
|
-
this.handleDisconnect('reconnect',
|
778
|
+
this.handleDisconnect('reconnect', ReconnectReason.REASON_UNKOWN);
|
788
779
|
} else {
|
789
780
|
log.info(
|
790
781
|
`could not recover connection after ${this.reconnectAttempts} attempts, ${
|
@@ -810,16 +801,14 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
|
|
810
801
|
return null;
|
811
802
|
}
|
812
803
|
|
813
|
-
private async restartConnection(
|
804
|
+
private async restartConnection() {
|
814
805
|
if (!this.url || !this.token) {
|
815
806
|
// permanent failure, don't attempt reconnection
|
816
807
|
throw new UnexpectedConnectionState('could not reconnect, url or token not saved');
|
817
808
|
}
|
818
809
|
|
819
810
|
log.info(`reconnecting, attempt: ${this.reconnectAttempts}`);
|
820
|
-
|
821
|
-
this.emit(EngineEvent.Restarting);
|
822
|
-
}
|
811
|
+
this.emit(EngineEvent.Restarting);
|
823
812
|
|
824
813
|
if (this.client.isConnected) {
|
825
814
|
await this.client.sendLeave();
|
@@ -842,6 +831,11 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
|
|
842
831
|
throw new SignalReconnectError();
|
843
832
|
}
|
844
833
|
|
834
|
+
if (this.shouldFailNext) {
|
835
|
+
this.shouldFailNext = false;
|
836
|
+
throw new Error('simulated failure');
|
837
|
+
}
|
838
|
+
|
845
839
|
await this.waitForPCConnected();
|
846
840
|
this.client.setReconnected();
|
847
841
|
|
@@ -849,10 +843,7 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
|
|
849
843
|
this.emit(EngineEvent.Restarted, joinResponse);
|
850
844
|
}
|
851
845
|
|
852
|
-
private async resumeConnection(
|
853
|
-
emitResuming: boolean = false,
|
854
|
-
reason?: ReconnectReason,
|
855
|
-
): Promise<void> {
|
846
|
+
private async resumeConnection(reason?: ReconnectReason): Promise<void> {
|
856
847
|
if (!this.url || !this.token) {
|
857
848
|
// permanent failure, don't attempt reconnection
|
858
849
|
throw new UnexpectedConnectionState('could not reconnect, url or token not saved');
|
@@ -863,9 +854,7 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
|
|
863
854
|
}
|
864
855
|
|
865
856
|
log.info(`resuming signal connection, attempt ${this.reconnectAttempts}`);
|
866
|
-
|
867
|
-
this.emit(EngineEvent.Resuming);
|
868
|
-
}
|
857
|
+
this.emit(EngineEvent.Resuming);
|
869
858
|
|
870
859
|
try {
|
871
860
|
const res = await this.client.reconnect(this.url, this.token, this.participantSid, reason);
|
@@ -883,6 +872,11 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
|
|
883
872
|
}
|
884
873
|
this.emit(EngineEvent.SignalResumed);
|
885
874
|
|
875
|
+
if (this.shouldFailNext) {
|
876
|
+
this.shouldFailNext = false;
|
877
|
+
throw new Error('simulated failure');
|
878
|
+
}
|
879
|
+
|
886
880
|
this.subscriber.restartingIce = true;
|
887
881
|
|
888
882
|
// only restart publisher if it's needed
|
@@ -921,11 +915,6 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
|
|
921
915
|
this.primaryPC?.connectionState === 'connected'
|
922
916
|
) {
|
923
917
|
this.pcState = PCState.Connected;
|
924
|
-
try {
|
925
|
-
this.connectedServerAddr = await getConnectedAddress(this.primaryPC);
|
926
|
-
} catch (e) {
|
927
|
-
log.warn('could not get connected server address', { error: e });
|
928
|
-
}
|
929
918
|
}
|
930
919
|
if (this.pcState === PCState.Connected) {
|
931
920
|
return;
|
@@ -1022,7 +1011,7 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
|
|
1022
1011
|
|
1023
1012
|
const negotiationTimeout = setTimeout(() => {
|
1024
1013
|
reject('negotiation timed out');
|
1025
|
-
this.handleDisconnect('negotiation',
|
1014
|
+
this.handleDisconnect('negotiation', ReconnectReason.REASON_SIGNAL_DISCONNECTED);
|
1026
1015
|
}, this.peerConnectionTimeout);
|
1027
1016
|
|
1028
1017
|
const cleanup = () => {
|
@@ -1043,7 +1032,7 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
|
|
1043
1032
|
if (e instanceof NegotiationError) {
|
1044
1033
|
this.fullReconnectOnNext = true;
|
1045
1034
|
}
|
1046
|
-
this.handleDisconnect('negotiation',
|
1035
|
+
this.handleDisconnect('negotiation', ReconnectReason.REASON_UNKOWN);
|
1047
1036
|
});
|
1048
1037
|
});
|
1049
1038
|
}
|
@@ -1066,6 +1055,12 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
|
|
1066
1055
|
}
|
1067
1056
|
}
|
1068
1057
|
|
1058
|
+
/* @internal */
|
1059
|
+
failNext() {
|
1060
|
+
// debugging method to fail the next reconnect/resume attempt
|
1061
|
+
this.shouldFailNext = true;
|
1062
|
+
}
|
1063
|
+
|
1069
1064
|
private clearReconnectTimeout() {
|
1070
1065
|
if (this.reconnectTimeout) {
|
1071
1066
|
CriticalTimers.clearTimeout(this.reconnectTimeout);
|
@@ -1081,7 +1076,7 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
|
|
1081
1076
|
// in case the engine is currently reconnecting, attempt a reconnect immediately after the browser state has changed to 'onLine'
|
1082
1077
|
if (this.client.isReconnecting) {
|
1083
1078
|
this.clearReconnectTimeout();
|
1084
|
-
this.attemptReconnect(
|
1079
|
+
this.attemptReconnect(ReconnectReason.REASON_SIGNAL_DISCONNECTED);
|
1085
1080
|
}
|
1086
1081
|
};
|
1087
1082
|
|