vani-meeting-client 1.8.6 → 1.8.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/inter-communication-handler/CommunicationHandler.js +1 -1
- package/lib/model/MeetingStartRequest.d.ts +1 -0
- package/lib/model/MeetingStartRequest.js +7 -1
- package/lib/video-call-handler/BaseVideoCallHandler.d.ts +1 -1
- package/lib/video-call-handler/BaseVideoCallHandler.js +2 -1
- package/lib/video-call-handler/SFUHandler.d.ts +1 -1
- package/lib/video-call-handler/SFUHandler.js +8 -3
- package/package.json +1 -1
|
@@ -108,7 +108,7 @@ var CommunicationHandler = /** @class */ (function () {
|
|
|
108
108
|
var messageJson;
|
|
109
109
|
var _a;
|
|
110
110
|
return __generator(this, function (_b) {
|
|
111
|
-
(_a = this.videoCallHandler) === null || _a === void 0 ? void 0 : _a.cleanup();
|
|
111
|
+
(_a = this.videoCallHandler) === null || _a === void 0 ? void 0 : _a.cleanup(false);
|
|
112
112
|
messageJson = { to: "self", type: SFUMessageType.ReloadSFU, message: SFUMessageType.ReloadSFU };
|
|
113
113
|
this.sendWebSocketMessage(SFUMessageType.SFUMessage, messageJson);
|
|
114
114
|
return [2 /*return*/];
|
|
@@ -49,6 +49,7 @@ export declare class MeetingStartRequest {
|
|
|
49
49
|
shouldPauseUploadingStreamOnSingleParticipant: boolean;
|
|
50
50
|
connectionProtocol: ConnectionProtocol;
|
|
51
51
|
shouldKeepTryToReconnect: boolean;
|
|
52
|
+
shouldIgnoreCaseForRoomId: boolean;
|
|
52
53
|
urlToCheckInternetPresent: string;
|
|
53
54
|
constructor(_roomId: string, _userId: string, _appId: string, _wssUrl: string);
|
|
54
55
|
}
|
|
@@ -46,8 +46,14 @@ var MeetingStartRequest = /** @class */ (function () {
|
|
|
46
46
|
this.shouldPauseUploadingStreamOnSingleParticipant = true;
|
|
47
47
|
this.connectionProtocol = ConnectionProtocol.UDP;
|
|
48
48
|
this.shouldKeepTryToReconnect = false;
|
|
49
|
+
this.shouldIgnoreCaseForRoomId = false;
|
|
49
50
|
this.urlToCheckInternetPresent = "https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro&explaintext&redirects=1&titles=Stack%20Overflow";
|
|
50
|
-
this.
|
|
51
|
+
if (this.shouldIgnoreCaseForRoomId) {
|
|
52
|
+
this.roomId = _roomId;
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
this.roomId = _roomId.toLowerCase();
|
|
56
|
+
}
|
|
51
57
|
this.userId = _userId;
|
|
52
58
|
this.appId = _appId;
|
|
53
59
|
if (_wssUrl.indexOf("connection=") < 0) {
|
|
@@ -20,6 +20,6 @@ export declare abstract class BaseVideoCallHandler extends Base {
|
|
|
20
20
|
pauseProducerOrConsumerForTrack(track: Track): Promise<void>;
|
|
21
21
|
reconnectedWithoutPing(): void;
|
|
22
22
|
updateSpatialForTrack(track: Track, spatialLayerIndex: number): Promise<void>;
|
|
23
|
-
cleanup(): void;
|
|
23
|
+
cleanup(shouldStopTracks?: boolean): void;
|
|
24
24
|
restartTransport(): void;
|
|
25
25
|
}
|
|
@@ -87,7 +87,8 @@ var BaseVideoCallHandler = /** @class */ (function (_super) {
|
|
|
87
87
|
});
|
|
88
88
|
});
|
|
89
89
|
};
|
|
90
|
-
BaseVideoCallHandler.prototype.cleanup = function () {
|
|
90
|
+
BaseVideoCallHandler.prototype.cleanup = function (shouldStopTracks) {
|
|
91
|
+
if (shouldStopTracks === void 0) { shouldStopTracks = true; }
|
|
91
92
|
this.meetingStartRequest && this.meetingStartRequest.logLevel === LogLevel.Debug && log.info("cleanup ");
|
|
92
93
|
_super.prototype.cleanup.call(this);
|
|
93
94
|
};
|
|
@@ -762,7 +762,8 @@ var SFUHandler = /** @class */ (function (_super) {
|
|
|
762
762
|
}
|
|
763
763
|
}
|
|
764
764
|
};
|
|
765
|
-
SFUHandler.prototype.cleanup = function () {
|
|
765
|
+
SFUHandler.prototype.cleanup = function (shouldStopTracks) {
|
|
766
|
+
if (shouldStopTracks === void 0) { shouldStopTracks = true; }
|
|
766
767
|
if (this.sendTransport) {
|
|
767
768
|
this.sendTransport.close();
|
|
768
769
|
this.sendTransport = undefined;
|
|
@@ -775,7 +776,9 @@ var SFUHandler = /** @class */ (function (_super) {
|
|
|
775
776
|
this.producers.forEach(function (producer) {
|
|
776
777
|
var _a;
|
|
777
778
|
try {
|
|
778
|
-
(
|
|
779
|
+
if (shouldStopTracks) {
|
|
780
|
+
(_a = producer.track) === null || _a === void 0 ? void 0 : _a.stop();
|
|
781
|
+
}
|
|
779
782
|
}
|
|
780
783
|
catch (err) {
|
|
781
784
|
}
|
|
@@ -786,7 +789,9 @@ var SFUHandler = /** @class */ (function (_super) {
|
|
|
786
789
|
}
|
|
787
790
|
this.dataProducers.forEach(function (producer) {
|
|
788
791
|
if (producer.closed === false) {
|
|
789
|
-
|
|
792
|
+
if (shouldStopTracks) {
|
|
793
|
+
producer.close();
|
|
794
|
+
}
|
|
790
795
|
}
|
|
791
796
|
});
|
|
792
797
|
this.dataConsumer.forEach(function (consumer) {
|