UNPKG

@tencentcloud/call-uikit-vue2

Version:

An Open-source Voice & Video Calling UI Component Based on Tencent Cloud Service.

142 lines (141 loc) 4.11 kB
/** * @property {String} call 1v1 通话 + 群组通话 * @property {String} CUSTOM 自定义 Store */ export declare enum StoreName { CALL = "call", CUSTOM = "custom" } /** * @property {String} idle 空闲 * @property {String} connecting 呼叫等待中 * @property {String} connected 通话中 */ export declare enum CallMediaType { UNKNOWN = 0, AUDIO = 1, VIDEO = 2 } /** * @property {String} caller 主叫 * @property {String} callee 被叫 */ export declare enum CallRole { UNKNOWN = "unknown", CALLEE = "callee", CALLER = "caller" } /** * @property {String} idle 空闲 * @property {String} calling 呼叫等待中 * @property {String} connected 通话中 */ export declare enum CallStatus { IDLE = "idle", CALLING = "calling", CONNECTED = "connected" } /** * 视频画面显示模式 * 播放视频流默认使用 cover 模式; 播放屏幕共享流默认使用 contain 模式。 * @property {String} contain 优先保证视频内容全部显示。视频尺寸等比缩放,直至视频窗口的一边与视窗边框对齐。如果视频尺寸与显示视窗尺寸不一致,在保持长宽比的前提下,将视频进行缩放后填满视窗,缩放后的视频四周会有一圈黑边。 * @property {String} cover 优先保证视窗被填满。视频尺寸等比缩放,直至整个视窗被视频填满。如果视频长宽与显示窗口不同,则视频流会按照显示视窗的比例进行周边裁剪或图像拉伸后填满视窗 * @property {String} fill 保证视窗被填满的同时保证视频内容全部显示,但是不保证视频尺寸比例不变。视频的宽高会被拉伸至和视窗尺寸一致。(该选项值自 v4.12.1 开始支持) */ export declare enum VideoDisplayMode { CONTAIN = "contain", COVER = "cover", FILL = "fill" } /** * 视频分辨率 * @property {String} 480p * @property {String} 720p * @property {String} 1080p */ export declare enum VideoResolution { RESOLUTION_480P = "480p", RESOLUTION_720P = "720p", RESOLUTION_1080P = "1080p" } export declare enum LanguageType { EN = "en", 'ZH-CN' = "zh-cn", JA_JP = "ja_JP" } export declare type TDeviceList = { cameraList: any[]; microphoneList: any[]; currentCamera: any; currentMicrophone: any; }; export declare const StatusChange: { readonly IDLE: "idle"; readonly BE_INVITED: "be-invited"; readonly DIALING_C2C: "dialing-c2c"; readonly DIALING_GROUP: "dialing-group"; readonly CALLING_C2C_AUDIO: "calling-c2c-audio"; readonly CALLING_C2C_VIDEO: "calling-c2c-video"; readonly CALLING_GROUP_AUDIO: "calling-group-audio"; readonly CALLING_GROUP_VIDEO: "calling-group-video"; }; export declare const CallType: { readonly unknown: CallMediaType.UNKNOWN; readonly audio: CallMediaType.AUDIO; readonly video: CallMediaType.VIDEO; }; /** * @property {String} ear 听筒 * @property {String} speaker 免提 */ export declare enum AudioPlayBackDevice { EAR = "ear", SPEAKER = "speaker" } export declare enum DeviceType { MICROPHONE = "microphone", CAMERA = "camera", SPEAKER = "speaker" } export declare enum CameraPosition { FRONT = 0, BACK = 1 } export declare enum FeatureButton { Camera = "camera", Microphone = "microphone", SwitchCamera = "switchCamera", InviteUser = "inviteUser" } export declare enum ButtonState { Open = "open", Close = "close" } export interface IViewBackgroundImage { [userId: string]: string; } export declare enum ViewName { LOCAL = "local", REMOTE = "remote" } export declare enum LayoutMode { LocalInLargeView = "local", RemoteInLargeView = "remote" } export interface ICustomUIConfig { button?: { [buttonName in FeatureButton]?: { show: boolean; state: ButtonState; }; }; viewBackground?: IViewBackgroundImage; layoutMode?: LayoutMode; } export declare enum ACTION_TYPE { INVITE = 1, CANCEL_INVITE = 2, ACCEPT_INVITE = 3, REJECT_INVITE = 4, INVITE_TIMEOUT = 5 }