63 lines
3.0 KiB
JavaScript
63 lines
3.0 KiB
JavaScript
"use strict";
|
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
if (k2 === undefined) k2 = k;
|
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
}
|
|
Object.defineProperty(o, k2, desc);
|
|
}) : (function(o, m, k, k2) {
|
|
if (k2 === undefined) k2 = k;
|
|
o[k2] = m[k];
|
|
}));
|
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.PLATFORM = exports.MAX_NUMBER_ROOM_ID = exports.VideoCallIcon = exports.AudioCallIcon = exports.NAME = exports.CALL_DATA_KEY = void 0;
|
|
__exportStar(require("./call"), exports);
|
|
__exportStar(require("./error"), exports);
|
|
__exportStar(require("./log"), exports);
|
|
// import { keys } from 'ts-transformer-keys';
|
|
// import { ICallStore } from '../interface/store';
|
|
// console.warn('--> ', keys<ICallStore>())
|
|
exports.CALL_DATA_KEY = {
|
|
CALL_STATUS: 'callStatus',
|
|
CALL_ROLE: 'callRole',
|
|
CALL_MEDIA_TYPE: 'callMediaType',
|
|
LOCAL_USER_INFO: 'localUserInfo',
|
|
LOCAL_USER_INFO_EXCLUDE_VOLUMN: 'localUserInfoExcludeVolume',
|
|
REMOTE_USER_INFO_LIST: 'remoteUserInfoList',
|
|
REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST: 'remoteUserInfoExcludeVolumeList',
|
|
CALLER_USER_INFO: 'callerUserInfo',
|
|
IS_GROUP: 'isGroup',
|
|
CALL_DURATION: 'callDuration',
|
|
CALL_TIPS: 'callTips',
|
|
TOAST_INFO: 'toastInfo',
|
|
IS_MINIMIZED: 'isMinimized',
|
|
ENABLE_FLOAT_WINDOW: 'enableFloatWindow',
|
|
BIG_SCREEN_USER_ID: 'bigScreenUserId',
|
|
LANGUAGE: 'language',
|
|
IS_CLICKABLE: 'isClickable',
|
|
DISPLAY_MODE: 'displayMode',
|
|
VIDEO_RESOLUTION: 'videoResolution',
|
|
PUSHER: 'pusher',
|
|
PLAYER: 'player',
|
|
IS_EAR_PHONE: 'isEarPhone',
|
|
SHOW_PERMISSION_TIP: 'SHOW_PERMISSION_TIP',
|
|
GROUP_ID: 'groupID',
|
|
ROOM_ID: 'roomID',
|
|
SHOW_SELECT_USER: 'showSelectUser',
|
|
};
|
|
exports.NAME = Object.assign({ PREFIX: '【CallService】', AUDIO: 'audio', VIDEO: 'video', LOCAL_VIDEO: 'localVideo', ERROR: 'error', TIMEOUT: 'timeout', RAF: 'raf', INTERVAL: 'interval', DEFAULT: 'default', BOOLEAN: 'boolean', STRING: 'string', NUMBER: 'number', OBJECT: 'object', ARRAY: 'array', FUNCTION: 'function', UNDEFINED: "undefined", ALL: 'all', MYSELF: 'myself', DEVICE_LIST: 'deviceList', CAMERA_POSITION: 'cameraPosition' }, exports.CALL_DATA_KEY);
|
|
exports.AudioCallIcon = 'https://web.sdk.qcloud.com/component/TUIKit/assets/call.png';
|
|
exports.VideoCallIcon = 'https://web.sdk.qcloud.com/component/TUIKit/assets/call-video-reverse.svg';
|
|
exports.MAX_NUMBER_ROOM_ID = 2147483647;
|
|
var PLATFORM;
|
|
(function (PLATFORM) {
|
|
// eslint-disable-next-line no-unused-vars
|
|
PLATFORM["MAC"] = "mac";
|
|
// eslint-disable-next-line no-unused-vars
|
|
PLATFORM["WIN"] = "win";
|
|
})(PLATFORM = exports.PLATFORM || (exports.PLATFORM = {}));
|