/** * 设备检测工具库 * * Created at : 2024-04-23 18:41:22 * Last modified : 2024-04-24 14:17:37 */ export declare enum DetectStreamType { 'ALL' = 0, 'VIDEO' = 1, 'AUDIO' = 2, 'CONTENT' = 3 } /** * SDK对外回调错误消息 * * @property { number } code - 错误码 * @property { string } msg - 错误信息 * @property { unknown } detail - 数据详情 */ export interface DetectResult { code: number; msg: string; detail?: any; } export interface DetectDeviceList { audioInputList: DetectDeviceInfo[]; audioOutputList: DetectDeviceInfo[]; videoInputList: DetectDeviceInfo[]; } /** * 获取设备信息 * * @property { string } deviceId 设备id * @property { string } label 设备名称 * @property { string } groupId 设备分组 * @property { 'output' | 'input' } direction 设备方向 * @value output 输出设备 * @value input 输入设备 * @property { 'audioinput' | 'audiooutput' | 'videoinput' } kind 设备种类 * @value audioinput 音频输入 * @value audiooutput 音频输出 * @value videoinput 摄像头输入 * @property { string } type 设备采集流类型:video/audio */ export interface DetectDeviceInfo { deviceId: string; label: string; groupId?: string; direction?: 'output' | 'input'; kind?: 'audioinput' | 'audiooutput' | 'videoinput'; type?: 'video' | 'audio'; } export interface DetectMaxRes { width: number; height: number; }