@tencentcloud/call-uikit-wechat
Advanced tools
Comparing version 2.1.1 to 2.1.2
import { TUIGlobal, TUIStore, StoreName, TUICallKitServer, NAME, StatusChange as STATUS, CallRole, CallMediaType, VideoResolution, VideoDisplayMode, t } from './TUICallService/index'; | ||
declare const Version = "2.1.1"; | ||
declare const Version = "2.1.2"; | ||
export { TUIGlobal, TUIStore, StoreName, TUICallKitServer, NAME, STATUS, CallRole, CallMediaType, VideoResolution, VideoDisplayMode, Version, t, }; |
@@ -16,3 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "t", { enumerable: true, get: function () { return index_1.t; } }); | ||
const Version = '2.1.1'; // basic-demo 原来上报使用 | ||
const Version = '2.1.2'; // basic-demo 原来上报使用 | ||
exports.Version = Version; |
{ | ||
"name": "@tencentcloud/call-uikit-wechat", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"main": "./tuicall-uikit-vue.umd.js", | ||
@@ -17,3 +17,2 @@ "module": "./tuicall-uikit-vue.es.js", | ||
"@tencentcloud/tui-core": "latest", | ||
"tim-upload-plugin": "^1.3.0", | ||
"tuicall-engine-wx": "latest" | ||
@@ -20,0 +19,0 @@ }, |
@@ -14,3 +14,5 @@ import { ITUICallService, ICallParams, IGroupCallParams, ICallbackParam, ISelfInfoParams, IInviteUserParams, IJoinInGroupCallParams, IInitParams } from '../interface/ICallService'; | ||
private _timerId; | ||
private _startTimeStamp; | ||
private _bellContext; | ||
private _defaultOfflinePushInfo; | ||
constructor(); | ||
@@ -17,0 +19,0 @@ static getInstance(): TUICallService; |
@@ -33,3 +33,3 @@ "use strict"; | ||
function getMyProfile(myselfUserId, tim, TUIStore) { | ||
var _a, _b, _c; | ||
var _a, _b, _c, _d, _e; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
@@ -43,3 +43,3 @@ let localUserInfo = setDefaultUserInfo(myselfUserId, index_1.NAME.LOCAL_VIDEO); | ||
if ((res === null || res === void 0 ? void 0 : res.code) === 0) { | ||
localUserInfo = Object.assign(Object.assign(Object.assign({}, localUserInfo), currentLocalUserInfo), { userId: (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.userID, nick: (_b = res === null || res === void 0 ? void 0 : res.data) === null || _b === void 0 ? void 0 : _b.nick, avatar: (_c = res === null || res === void 0 ? void 0 : res.data) === null || _c === void 0 ? void 0 : _c.avatar }); | ||
localUserInfo = Object.assign(Object.assign(Object.assign({}, localUserInfo), currentLocalUserInfo), { userId: (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.userID, nick: (_b = res === null || res === void 0 ? void 0 : res.data) === null || _b === void 0 ? void 0 : _b.nick, avatar: (_c = res === null || res === void 0 ? void 0 : res.data) === null || _c === void 0 ? void 0 : _c.avatar, displayUserInfo: ((_d = res === null || res === void 0 ? void 0 : res.data) === null || _d === void 0 ? void 0 : _d.nick) || ((_e = res === null || res === void 0 ? void 0 : res.data) === null || _e === void 0 ? void 0 : _e.userID) }); | ||
} | ||
@@ -46,0 +46,0 @@ return localUserInfo; |
@@ -92,3 +92,8 @@ /** | ||
MICROPHONE = "microphone", | ||
CAMERA = "camera" | ||
CAMERA = "camera", | ||
SPEAKER = "speaker" | ||
} | ||
export declare enum CameraPosition { | ||
FRONT = 0, | ||
BACK = 1 | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DeviceType = exports.AudioPlayBackDevice = exports.StatusChange = exports.LanguageType = exports.VideoResolution = exports.VideoDisplayMode = exports.CallStatus = exports.CallRole = exports.CallMediaType = exports.StoreName = void 0; | ||
exports.CameraPosition = exports.DeviceType = exports.AudioPlayBackDevice = exports.StatusChange = exports.LanguageType = exports.VideoResolution = exports.VideoDisplayMode = exports.CallStatus = exports.CallRole = exports.CallMediaType = exports.StoreName = void 0; | ||
/** | ||
@@ -104,2 +104,8 @@ * @property {String} call 1v1 通话 + 群组通话 | ||
DeviceType["CAMERA"] = "camera"; | ||
DeviceType["SPEAKER"] = "speaker"; | ||
})(DeviceType = exports.DeviceType || (exports.DeviceType = {})); | ||
var CameraPosition; | ||
(function (CameraPosition) { | ||
CameraPosition[CameraPosition["FRONT"] = 0] = "FRONT"; | ||
CameraPosition[CameraPosition["BACK"] = 1] = "BACK"; | ||
})(CameraPosition = exports.CameraPosition || (exports.CameraPosition = {})); |
@@ -29,3 +29,5 @@ "use strict"; | ||
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', | ||
@@ -51,3 +53,3 @@ IS_GROUP: 'isGroup', | ||
}; | ||
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' }, exports.CALL_DATA_KEY); | ||
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'; | ||
@@ -54,0 +56,0 @@ exports.VideoCallIcon = 'https://web.sdk.qcloud.com/component/TUIKit/assets/call-video-reverse.svg'; |
@@ -1,2 +0,2 @@ | ||
import { CallStatus, CallRole, CallMediaType, VideoDisplayMode, VideoResolution, TDeviceList } from '../const/index'; | ||
import { CallStatus, CallRole, CallMediaType, VideoDisplayMode, VideoResolution, TDeviceList, CameraPosition } from '../const/index'; | ||
import { IUserInfo } from './index'; | ||
@@ -12,3 +12,5 @@ export interface IToastInfo { | ||
localUserInfo: IUserInfo; | ||
localUserInfoExcludeVolume: IUserInfo; | ||
remoteUserInfoList: Array<IUserInfo>; | ||
remoteUserInfoExcludeVolumeList: Array<IUserInfo>; | ||
callerUserInfo: IUserInfo; | ||
@@ -28,2 +30,3 @@ isGroup: boolean; | ||
roomID: number; | ||
cameraPosition: CameraPosition; | ||
displayMode: VideoDisplayMode; | ||
@@ -30,0 +33,0 @@ videoResolution: VideoResolution; |
export declare const en: { | ||
hangup: string; | ||
reject: string; | ||
accept: string; | ||
camera: string; | ||
microphone: string; | ||
speaker: string; | ||
'open camera': string; | ||
'close camera': string; | ||
'open microphone': string; | ||
'close microphone': string; | ||
'video-to-audio': string; | ||
'other side reject call': string; | ||
'reject call': string; | ||
accept: string; | ||
cancel: string; | ||
@@ -13,4 +21,2 @@ 'other side line busy': string; | ||
'end call': string; | ||
timeout: string; | ||
'kick out': string; | ||
'caller calling message': string; | ||
@@ -22,4 +28,27 @@ 'callee calling video message': string; | ||
'invite member': string; | ||
speaker: string; | ||
'Invited group call': string; | ||
waiting: string; | ||
me: string; | ||
'browser-authorization': string; | ||
'mac-privacy': string; | ||
'win-privacy': string; | ||
'mac-preferences': string; | ||
'win-preferences': string; | ||
'Please enter userID': string; | ||
'View more': string; | ||
'people selected': string; | ||
'Select all': string; | ||
Cancel: string; | ||
Done: string; | ||
'camera enabled': string; | ||
'camera disabled': string; | ||
'microphone enabled': string; | ||
'microphone disabled': string; | ||
'speaker phone': string; | ||
'ear piece': string; | ||
'wait to be called': string; | ||
answered: string; | ||
'people in the call': string; | ||
'failed to obtain speakers': string; | ||
'you have a new call': string; | ||
'Those involved': string; | ||
@@ -40,3 +69,2 @@ call: string; | ||
'already-enter': string; | ||
waiting: string; | ||
'camera-opened': string; | ||
@@ -46,9 +74,7 @@ 'camera-closed': string; | ||
'microphone-closed': string; | ||
camera: string; | ||
microphone: string; | ||
timeout: string; | ||
'kick out': string; | ||
'image-resolution': string; | ||
'default-image-resolution': string; | ||
'invited-person': string; | ||
'video-to-audio': string; | ||
me: string; | ||
'be-rejected': string; | ||
@@ -79,17 +105,2 @@ 'be-no-response': string; | ||
'call-error': string; | ||
'browser-authorization': string; | ||
'mac-privacy': string; | ||
'win-privacy': string; | ||
'mac-preferences': string; | ||
'win-preferences': string; | ||
'open camera': string; | ||
'close camera': string; | ||
'open microphone': string; | ||
'close microphone': string; | ||
'Please enter userID': string; | ||
'View more': string; | ||
'people selected': string; | ||
'Select all': string; | ||
Cancel: string; | ||
Done: string; | ||
}; |
@@ -5,7 +5,17 @@ "use strict"; | ||
exports.en = { | ||
// 按钮文案 | ||
'hangup': 'Hang up', | ||
'reject': 'Decline', | ||
'accept': 'Accept', | ||
'camera': 'Camera', | ||
'microphone': 'Microphone', | ||
'speaker': 'speaker', | ||
'open camera': 'Open Camera', | ||
'close camera': 'Close Camera', | ||
'open microphone': 'Open Microphone', | ||
'close microphone': 'Close Microphone', | ||
'video-to-audio': 'Switch to audio', | ||
// 通话结果 | ||
'other side reject call': 'other side reject call', | ||
'reject call': 'Reject Call', | ||
'accept': 'Accept', | ||
'cancel': 'Cancel Call', | ||
@@ -17,12 +27,37 @@ 'other side line busy': 'other side line busy', | ||
'end call': 'end call', | ||
'timeout': 'timeout', | ||
'kick out': 'kick out', | ||
'caller calling message': 'Waiting for the callee to accept the invitation...', | ||
'callee calling video message': 'You are invited to a video call...', | ||
'callee calling audio message': 'You are invited to a audio call...', | ||
// 通话提示语 | ||
'caller calling message': 'Awaiting response', | ||
'callee calling video message': 'invites you to a video call', | ||
'callee calling audio message': 'invites you to a voice call', | ||
'no microphone access': 'no microphone access', | ||
'no camera access': 'no camera access', | ||
'invite member': 'Invite Member', | ||
'speaker': 'speaker', | ||
'Invited group call': 'Invited you to a group call', | ||
'Invited group call': 'invites you to a group call', | ||
'waiting': 'Calling...', | ||
'me': '(me)', | ||
// 弹出层文案 | ||
'browser-authorization': 'Browser authorization', | ||
'mac-privacy': 'System Preferences -> Security and Privacy -> Privacy', | ||
'win-privacy': 'Setting -> Privacy and Security -> App permissions', | ||
'mac-preferences': 'Open System Preferences', | ||
'win-preferences': 'Open Setting', | ||
'Please enter userID': 'Please enter userID', | ||
'View more': 'View more', | ||
'people selected': 'people selected', | ||
'Select all': 'Select all', | ||
'Cancel': 'Cancel', | ||
'Done': 'Done', | ||
// UI3.0 新增 | ||
'camera enabled': 'Camera On', | ||
'camera disabled': 'Camera Off', | ||
'microphone enabled': 'Unmuted', | ||
'microphone disabled': 'Muted', | ||
'speaker phone': 'Speaker', | ||
'ear piece': 'Earpiece', | ||
'wait to be called': 'Waiting', | ||
'answered': 'Connected', | ||
'people in the call': ' other(s) in the call', | ||
'failed to obtain speakers': 'failed to obtain speakers', | ||
'you have a new call': 'You have a new call', | ||
// 待废弃文案 | ||
'Those involved': 'Those involved in the call are', | ||
@@ -43,3 +78,2 @@ 'call': 'call', | ||
'already-enter': 'entered the call', | ||
'waiting': 'Calling...', | ||
'camera-opened': 'Camera on', | ||
@@ -49,9 +83,7 @@ 'camera-closed': 'Camera off', | ||
'microphone-closed': 'Mic off', | ||
'camera': 'Camera', | ||
'microphone': 'Microphone', | ||
'timeout': 'timeout', | ||
'kick out': 'kick out', | ||
'image-resolution': 'Resolution', | ||
'default-image-resolution': 'Default', | ||
'invited-person': 'Invite', | ||
'video-to-audio': 'Switch to audio', | ||
'me': '(me)', | ||
'be-rejected': 'Call declined, ', | ||
@@ -82,17 +114,2 @@ 'be-no-response': 'No response, ', | ||
'call-error': 'Start call failed', | ||
'browser-authorization': 'Browser authorization', | ||
'mac-privacy': 'System Preferences -> Security and Privacy -> Privacy', | ||
'win-privacy': 'Setting -> Privacy and Security -> App permissions', | ||
'mac-preferences': 'Open System Preferences', | ||
'win-preferences': 'Open Setting', | ||
'open camera': 'Open Camera', | ||
'close camera': 'Close Camera', | ||
'open microphone': 'Open Microphone', | ||
'close microphone': 'Close Microphone', | ||
'Please enter userID': 'Please enter userID', | ||
'View more': 'View more', | ||
'people selected': 'people selected', | ||
'Select all': 'Select all', | ||
'Cancel': 'Cancel', | ||
'Done': 'Done', | ||
}; |
@@ -21,2 +21,3 @@ "use strict"; | ||
CALLER_CALLING_MSG: 'caller calling message', | ||
CALLER_GROUP_CALLING_MSG: 'wait to be called', | ||
CALLEE_CALLING_VIDEO_MSG: 'callee calling video message', | ||
@@ -23,0 +24,0 @@ CALLEE_CALLING_AUDIO_MSG: 'callee calling audio message', |
export declare const ja_JP: { | ||
hangup: string; | ||
reject: string; | ||
accept: string; | ||
camera: string; | ||
microphone: string; | ||
speaker: string; | ||
'other side reject call': string; | ||
'reject call': string; | ||
accept: string; | ||
cancel: string; | ||
@@ -12,4 +15,2 @@ 'other side line busy': string; | ||
'end call': string; | ||
timeout: string; | ||
'kick out': string; | ||
'caller calling message': string; | ||
@@ -21,3 +22,29 @@ 'callee calling video message': string; | ||
'invite member': string; | ||
speaker: string; | ||
'browser-authorization': string; | ||
'mac-privacy': string; | ||
'win-privacy': string; | ||
'mac-preferences': string; | ||
'win-preferences': string; | ||
'Please enter userID': string; | ||
'View more': string; | ||
'people selected': string; | ||
'Select all': string; | ||
Cancel: string; | ||
Done: string; | ||
'open camera': string; | ||
'close camera': string; | ||
'open microphone': string; | ||
'close microphone': string; | ||
'camera enabled': string; | ||
'camera disabled': string; | ||
'microphone enabled': string; | ||
'microphone disabled': string; | ||
'speaker phone': string; | ||
'wait to be called': string; | ||
answered: string; | ||
'people in the call': string; | ||
'failed to obtain speakers': string; | ||
'you have a new call': string; | ||
timeout: string; | ||
'kick out': string; | ||
'Invited group call': string; | ||
@@ -47,4 +74,2 @@ 'Those involved': string; | ||
'microphone-closed': string; | ||
camera: string; | ||
microphone: string; | ||
'image-resolution': string; | ||
@@ -77,13 +102,2 @@ 'default-image-resolution': string; | ||
'call-error': string; | ||
'browser-authorization': string; | ||
'mac-privacy': string; | ||
'win-privacy': string; | ||
'mac-preferences': string; | ||
'win-preferences': string; | ||
'Please enter userID': string; | ||
'View more': string; | ||
'people selected': string; | ||
'Select all': string; | ||
Cancel: string; | ||
Done: string; | ||
}; |
@@ -5,7 +5,12 @@ "use strict"; | ||
exports.ja_JP = { | ||
// 按钮文案 | ||
'hangup': '通話終了', | ||
'reject': '拒否', | ||
'accept': '応答', | ||
'camera': 'カメラ', | ||
'microphone': 'マイク', | ||
'speaker': 'スピーカー', | ||
// 通话结果 | ||
'other side reject call': '通話が拒否されました', | ||
'reject call': '通話拒否', | ||
'accept': '応答', | ||
'cancel': '通話をキャンセル', | ||
@@ -16,11 +21,39 @@ 'other side line busy': '相手が通話中です', | ||
'end call': '通話終了', | ||
'timeout': 'タイムアウト', | ||
'kick out': 'キックアウトされました', | ||
'caller calling message': '相手が招待を承諾するのを待っています。', | ||
'callee calling video message': 'ビデオ通話に招待されました。', | ||
'callee calling audio message': '音声通話に招待されました。', | ||
// 通话提示语 | ||
'caller calling message': '応答を待っています', | ||
'callee calling video message': 'ビデオ通話に招待されました', | ||
'callee calling audio message': '音声通話に招待されました', | ||
'no microphone access': 'マイクにアクセスできません', | ||
'no camera access': 'カメラにアクセスできません', | ||
'invite member': 'メンバーを招待する', | ||
'speaker': 'スピーカー', | ||
// 弹出层文案 | ||
'browser-authorization': 'ブラウザ認証', | ||
'mac-privacy': 'システム環境設定 -> セキュリティとプライバシー ->プライバシー', | ||
'win-privacy': '設定 -> セキュリティとプライバシー ->アプリのアクセス許可', | ||
'mac-preferences': 'システム環境設定を開く', | ||
'win-preferences': 'システム設定を開く', | ||
'Please enter userID': 'ユーザーIDを入力してください', | ||
'View more': 'もっと見る', | ||
'people selected': '人が選択されました', | ||
'Select all': 'すべて選択', | ||
'Cancel': 'キャンセル', | ||
'Done': '完了', | ||
// UI3.0文案 | ||
'open camera': 'オープンカメラ', | ||
'close camera': 'カメラを閉じる', | ||
'open microphone': 'オープンマイク', | ||
'close microphone': 'マイクを閉じる', | ||
'camera enabled': 'カメラオン', | ||
'camera disabled': 'カメラオフ', | ||
'microphone enabled': 'マイクオン', | ||
'microphone disabled': 'マイクオフ', | ||
'speaker phone': 'スピーカーオン', | ||
'wait to be called': '待機中', | ||
'answered': '接続済み', | ||
'people in the call': '通話に参加している人たち', | ||
'failed to obtain speakers': 'スピーカーが見つかりません', | ||
'you have a new call': '新しい通話があります', | ||
// 待废弃文案 | ||
'timeout': 'タイムアウト', | ||
'kick out': 'キックアウトされました', | ||
'Invited group call': 'グループ通話に招待されました。', | ||
@@ -50,4 +83,2 @@ 'Those involved': '参加者:', | ||
'microphone-closed': 'マイクがオフになっています', | ||
'camera': 'カメラ', | ||
'microphone': 'マイク', | ||
'image-resolution': '解像度', | ||
@@ -57,3 +88,3 @@ 'default-image-resolution': 'デフォルト解像度', | ||
'video-to-audio': '音声通話に切り替えます', | ||
'me': '(自分)', | ||
'me': '(自分)', | ||
'be-rejected': '通話が拒否されました, ', | ||
@@ -81,13 +112,2 @@ 'be-no-response': '応答なし, ', | ||
'call-error': '通話が開始できませんでした', | ||
'browser-authorization': 'ブラウザ認証', | ||
'mac-privacy': 'システム環境設定 -> セキュリティとプライバシー ->プライバシー', | ||
'win-privacy': '設定 -> セキュリティとプライバシー ->アプリのアクセス許可', | ||
'mac-preferences': 'システム環境設定を開く', | ||
'win-preferences': 'システム設定を開く', | ||
'Please enter userID': 'ユーザーIDを入力してください', | ||
'View more': 'もっと見る', | ||
'people selected': '人が選択されました', | ||
'Select all': 'すべて選択', | ||
'Cancel': 'キャンセル', | ||
'Done': '完了', | ||
}; |
export declare const zh: { | ||
hangup: string; | ||
reject: string; | ||
accept: string; | ||
camera: string; | ||
microphone: string; | ||
speaker: string; | ||
'open camera': string; | ||
'close camera': string; | ||
'open microphone': string; | ||
'close microphone': string; | ||
'video-to-audio': string; | ||
'other side reject call': string; | ||
'reject call': string; | ||
accept: string; | ||
cancel: string; | ||
@@ -12,4 +20,2 @@ 'other side line busy': string; | ||
'end call': string; | ||
timeout: string; | ||
'kick out': string; | ||
'caller calling message': string; | ||
@@ -21,5 +27,30 @@ 'callee calling video message': string; | ||
'invite member': string; | ||
speaker: string; | ||
'Invited group call': string; | ||
'Those involved': string; | ||
waiting: string; | ||
me: string; | ||
'browser-authorization': string; | ||
'mac-privacy': string; | ||
'win-privacy': string; | ||
'mac-preferences': string; | ||
'win-preferences': string; | ||
'Please enter userID': string; | ||
'View more': string; | ||
'people selected': string; | ||
'Select all': string; | ||
Cancel: string; | ||
Done: string; | ||
'camera enabled': string; | ||
'camera disabled': string; | ||
'microphone enabled': string; | ||
'microphone disabled': string; | ||
'speaker phone': string; | ||
'ear piece': string; | ||
'wait to be called': string; | ||
answered: string; | ||
'people in the call': string; | ||
'failed to obtain speakers': string; | ||
'you have a new call': string; | ||
timeout: string; | ||
'kick out': string; | ||
call: string; | ||
@@ -42,14 +73,5 @@ 'video-call': string; | ||
'already-enter': string; | ||
waiting: string; | ||
'camera-opened': string; | ||
'camera-closed': string; | ||
'microphone-opened': string; | ||
'microphone-closed': string; | ||
camera: string; | ||
microphone: string; | ||
'image-resolution': string; | ||
'default-image-resolution': string; | ||
'invited-person': string; | ||
'video-to-audio': string; | ||
me: string; | ||
'be-rejected': string; | ||
@@ -77,17 +99,2 @@ 'be-no-response': string; | ||
'call-error': string; | ||
'browser-authorization': string; | ||
'mac-privacy': string; | ||
'win-privacy': string; | ||
'mac-preferences': string; | ||
'win-preferences': string; | ||
'open camera': string; | ||
'close camera': string; | ||
'open microphone': string; | ||
'close microphone': string; | ||
'Please enter userID': string; | ||
'View more': string; | ||
'people selected': string; | ||
'Select all': string; | ||
Cancel: string; | ||
Done: string; | ||
}; |
@@ -5,7 +5,17 @@ "use strict"; | ||
exports.zh = { | ||
// 按钮文案 | ||
'hangup': '挂断', | ||
'reject': '拒绝', | ||
'accept': '接受', | ||
'camera': '摄像头', | ||
'microphone': '麦克风', | ||
'speaker': '扬声器', | ||
'open camera': '打开摄像头', | ||
'close camera': '关闭摄像头', | ||
'open microphone': '打开麦克风', | ||
'close microphone': '关闭麦克风', | ||
'video-to-audio': '转语音通话', | ||
// 通话结果 | ||
'other side reject call': '对方已拒绝', | ||
'reject call': '拒绝通话', | ||
'accept': '接受', | ||
'cancel': '取消通话', | ||
@@ -16,13 +26,40 @@ 'other side line busy': '对方忙线', | ||
'end call': '结束通话', | ||
'timeout': '超时', | ||
'kick out': '被踢', | ||
'caller calling message': '正在等待对方接受邀请…', | ||
'callee calling video message': '邀请您进行视频通话…', | ||
'callee calling audio message': '邀请您进行语音通话…', | ||
// 通话提示语 | ||
'caller calling message': '等待对方接受邀请', | ||
'callee calling video message': '邀请你视频通话', | ||
'callee calling audio message': '邀请你语音通话', | ||
'no microphone access': '没有麦克风权限', | ||
'no camera access': '没有摄像头权限', | ||
'invite member': '邀请成员', | ||
'speaker': '扬声器', | ||
'Invited group call': '邀请你参加多人通话', | ||
'Invited group call': '邀请你加入多人通话', | ||
'Those involved': '参与通话的有:', | ||
'waiting': '等待接听...', | ||
'me': '(我)', | ||
// 弹出层文案 | ||
'browser-authorization': '浏览器授权', | ||
'mac-privacy': '系统偏好设置 -> 安全与隐私 -> 隐私', | ||
'win-privacy': '设置 -> 隐私和安全性 -> 应用权限', | ||
'mac-preferences': '打开系统偏好设置', | ||
'win-preferences': '打开系统设置', | ||
'Please enter userID': '请输入 userID', | ||
'View more': '查看更多', | ||
'people selected': '人已选中', | ||
'Select all': '全选', | ||
'Cancel': '取消', | ||
'Done': '完成', | ||
// UI3.0 新增 | ||
'camera enabled': '摄像头已开', | ||
'camera disabled': '摄像头已关', | ||
'microphone enabled': '麦克风已开', | ||
'microphone disabled': '麦克风已关', | ||
'speaker phone': '扬声器已开', | ||
'ear piece': '扬声器已关', | ||
'wait to be called': '等待接听', | ||
'answered': '已接通', | ||
'people in the call': '人参与通话', | ||
'failed to obtain speakers': '无法获取扬声器', | ||
'you have a new call': '您有一个新的通话', | ||
// 待废弃文案 | ||
'timeout': '超时', | ||
'kick out': '被踢', | ||
'call': '通话', | ||
@@ -45,14 +82,5 @@ 'video-call': '视频通话', | ||
'already-enter': '已经进入当前通话', | ||
'waiting': '等待接听...', | ||
'camera-opened': '摄像头已开', | ||
'camera-closed': '摄像头已关', | ||
'microphone-opened': '麦克风已开', | ||
'microphone-closed': '麦克风已关', | ||
'camera': '摄像头', | ||
'microphone': '麦克风', | ||
'image-resolution': '分辨率', | ||
'default-image-resolution': '默认分辨率', | ||
'invited-person': '添加成员', | ||
'video-to-audio': '切到语音通话', | ||
'me': '(我)', | ||
'be-rejected': '对方已拒绝,', | ||
@@ -80,17 +108,2 @@ 'be-no-response': '对方无应答,', | ||
'call-error': '发起通话失败', | ||
'browser-authorization': '浏览器授权', | ||
'mac-privacy': '系统偏好设置 -> 安全与隐私 -> 隐私', | ||
'win-privacy': '设置 -> 隐私和安全性 -> 应用权限', | ||
'mac-preferences': '打开系统偏好设置', | ||
'win-preferences': '打开系统设置', | ||
'open camera': '打开摄像头', | ||
'close camera': '关闭摄像头', | ||
'open microphone': '打开麦克风', | ||
'close microphone': '关闭麦克风', | ||
'Please enter userID': '请输入 userID', | ||
'View more': '查看更多', | ||
'people selected': '人已选中', | ||
'Select all': '全选', | ||
'Cancel': '取消', | ||
'Done': '完成', | ||
}; |
@@ -12,3 +12,5 @@ "use strict"; | ||
localUserInfo: { userId: '' }, | ||
localUserInfoExcludeVolume: { userId: '' }, | ||
remoteUserInfoList: [], | ||
remoteUserInfoExcludeVolumeList: [], | ||
callerUserInfo: { userId: '' }, | ||
@@ -28,2 +30,3 @@ isGroup: false, | ||
roomID: 0, | ||
cameraPosition: index_1.CameraPosition.FRONT, | ||
// TUICallKit 组件上的属性 | ||
@@ -30,0 +33,0 @@ displayMode: index_1.VideoDisplayMode.COVER, |
@@ -173,2 +173,3 @@ "use strict"; | ||
* 获取向下取整的 performance.now() 值 | ||
* 在不支持 performance.now 的浏览器中,使用 Date.now(). 例如 ie 9,ie 10,避免加载 sdk 时报错 | ||
* @export | ||
@@ -178,8 +179,7 @@ * @return {Number} | ||
function performanceNow() { | ||
// 在不支持 performance.now 的浏览器中,使用 Date.now() | ||
// 例如 ie 9,ie 10,避免加载 sdk 时报错 | ||
if (!performance || !performance.now) { | ||
return Date.now(); | ||
} | ||
return Math.floor(performance.now()); | ||
// if (!performance || !performance.now) { | ||
// return Date.now(); | ||
// } | ||
// return Math.floor(performance.now()); // uni-app 打包小程序没有 performance, 报错 | ||
return Date.now(); | ||
} | ||
@@ -186,0 +186,0 @@ exports.performanceNow = performanceNow; |
@@ -45,3 +45,3 @@ /// <reference types="node" /> | ||
*/ | ||
static interval(taskItem: any): NodeJS.Timer; | ||
static interval(taskItem: any): NodeJS.Timeout; | ||
/** | ||
@@ -48,0 +48,0 @@ * 延迟执行回调 |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
462600
2
105
5972
- Removedtim-upload-plugin@^1.3.0