vani-meeting-client
Version:
Vani Meeting Clinet SDK
69 lines (68 loc) • 2.86 kB
JavaScript
export var MeetingType;
(function (MeetingType) {
MeetingType["CHAT"] = "chat";
MeetingType["WEBRTC"] = "webrtc";
MeetingType["SFU"] = "SFU";
})(MeetingType || (MeetingType = {}));
export var ConnectionProtocol;
(function (ConnectionProtocol) {
ConnectionProtocol["TCP"] = "TCP";
ConnectionProtocol["UDP"] = "UDP";
})(ConnectionProtocol || (ConnectionProtocol = {}));
export var CameraFacingMode;
(function (CameraFacingMode) {
CameraFacingMode["Front"] = "user";
CameraFacingMode["Back"] = "environment";
})(CameraFacingMode || (CameraFacingMode = {}));
export var LogLevel;
(function (LogLevel) {
LogLevel["None"] = "none";
LogLevel["Debug"] = "Debug";
})(LogLevel || (LogLevel = {}));
var MeetingStartRequest = /** @class */ (function () {
function MeetingStartRequest(_roomId, _userId, _appId, _wssUrl, _shouldIgnoreCaseForRoomId) {
if (_shouldIgnoreCaseForRoomId === void 0) { _shouldIgnoreCaseForRoomId = false; }
this.videoCaptureWidth = 0;
this.videoCaptureHeight = 0;
this.defaultWhiteboardEditEnable = true;
this.numberOfUsers = 10;
this.isAdmin = false;
this.userData = {};
this.apiData = {};
this.isMobileApp = false;
this.shouldForceTurn = false;
this.minBitrateConfig = 40000;
this.maxBitRateConfig = 620000;
this.maxAudioBitrateConfig = -1;
this.logLevel = LogLevel.None;
this.isRecordingUser = false;
this.meetingType = MeetingType.SFU;
this.defaultAudioBlocked = false;
this.defaultVideoBlocked = false;
this.defaultScreenShareBlocked = false;
this.mediasoupDeviceHandlerName = undefined;
this.defaultCameraFacingMode = CameraFacingMode.Front;
this.simulcastEncodings = [{ maxBitrate: 40000, scaleResolutionDownBy: 2.0 }, { maxBitrate: 620000, scaleResolutionDownBy: 1.0 },];
this.isDataChannelRequired = false;
this.shouldPauseUploadingStreamOnSingleParticipant = true;
this.connectionProtocol = ConnectionProtocol.UDP;
this.shouldKeepTryToReconnect = false;
this.shouldIgnoreCaseForRoomId = false;
this.urlToCheckInternetPresent = "https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro&explaintext&redirects=1&titles=Stack%20Overflow";
this.shouldIgnoreCaseForRoomId = _shouldIgnoreCaseForRoomId;
if (this.shouldIgnoreCaseForRoomId) {
this.roomId = _roomId;
}
else {
this.roomId = _roomId.toLowerCase();
}
this.userId = _userId;
this.appId = _appId;
if (_wssUrl.indexOf("connection=") < 0) {
_wssUrl = _wssUrl + "/?connection=";
}
this.wssUrl = _wssUrl;
}
return MeetingStartRequest;
}());
export { MeetingStartRequest };