vani-meeting-client 2.0.5 → 2.0.6
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.
|
@@ -50,6 +50,7 @@ export declare class MeetingStartRequest {
|
|
|
50
50
|
connectionProtocol: ConnectionProtocol;
|
|
51
51
|
shouldKeepTryToReconnect: boolean;
|
|
52
52
|
shouldIgnoreCaseForRoomId: boolean;
|
|
53
|
+
shouldUseExactDeviceForUserMedia: boolean;
|
|
53
54
|
urlToCheckInternetPresent: string;
|
|
54
55
|
constructor(_roomId: string, _userId: string, _appId: string, _wssUrl: string, _shouldIgnoreCaseForRoomId?: boolean);
|
|
55
56
|
}
|
|
@@ -48,6 +48,7 @@ var MeetingStartRequest = /** @class */ (function () {
|
|
|
48
48
|
this.connectionProtocol = ConnectionProtocol.UDP;
|
|
49
49
|
this.shouldKeepTryToReconnect = false;
|
|
50
50
|
this.shouldIgnoreCaseForRoomId = false;
|
|
51
|
+
this.shouldUseExactDeviceForUserMedia = false;
|
|
51
52
|
this.urlToCheckInternetPresent = "https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro&explaintext&redirects=1&titles=Stack%20Overflow";
|
|
52
53
|
this.shouldIgnoreCaseForRoomId = _shouldIgnoreCaseForRoomId;
|
|
53
54
|
if (this.shouldIgnoreCaseForRoomId) {
|
|
@@ -280,7 +280,12 @@ var UserMediaHandler = /** @class */ (function (_super) {
|
|
|
280
280
|
userMediaPayload.video = this.getVideoDictionay();
|
|
281
281
|
}
|
|
282
282
|
if ((_b = this.meetingStartRequest) === null || _b === void 0 ? void 0 : _b.cameraDevice) {
|
|
283
|
-
|
|
283
|
+
if (this.meetingStartRequest.shouldUseExactDeviceForUserMedia) {
|
|
284
|
+
userMediaPayload.video.deviceId = { exact: this.meetingStartRequest.cameraDevice };
|
|
285
|
+
}
|
|
286
|
+
else {
|
|
287
|
+
userMediaPayload.video.deviceId = this.meetingStartRequest.cameraDevice;
|
|
288
|
+
}
|
|
284
289
|
}
|
|
285
290
|
else {
|
|
286
291
|
if (!this.cameraFacingMode) {
|
|
@@ -298,7 +303,12 @@ var UserMediaHandler = /** @class */ (function (_super) {
|
|
|
298
303
|
userMediaPayload.audio = this.getAudioDictionay();
|
|
299
304
|
}
|
|
300
305
|
if ((_e = this.meetingStartRequest) === null || _e === void 0 ? void 0 : _e.audioInDevice) {
|
|
301
|
-
|
|
306
|
+
if (this.meetingStartRequest.shouldUseExactDeviceForUserMedia) {
|
|
307
|
+
userMediaPayload.audio.deviceId = { exact: this.meetingStartRequest.audioInDevice };
|
|
308
|
+
}
|
|
309
|
+
else {
|
|
310
|
+
userMediaPayload.audio.deviceId = this.meetingStartRequest.audioInDevice;
|
|
311
|
+
}
|
|
302
312
|
}
|
|
303
313
|
}
|
|
304
314
|
this.meetingStartRequest && this.meetingStartRequest.logLevel === LogLevel.Debug && log.info(userMediaPayload);
|