/** * 浏览器能力详情 * * @param { boolean } isSupportRTC - 是否支持RTCPeerConnection * @param { boolean } isSupportWebsocket - 是否支持Websocket * @param { boolean } isSupportH264 - 是否支持H264编解码器能力 * @param { boolean } isSupportAddTransceiver - 是否支持addTransceiver API * @param { boolean } isSupportAddtrack - 是否支持addTrack API * @param { boolean } isSupportUserMedia - 是否支持访问用户摄像头和麦克风的getUserMedia API */ export interface XYCheckSystemRequirementsDetail { isSupportRTC: boolean; isSupportWebsocket: boolean; isSupportH264: boolean; isSupportAddTransceiver: boolean; isSupportAddtrack: boolean; isSupportUserMedia: boolean; } /** * 浏览器是否支持WebRTC能力检测结果 * * @param { boolean } result - 是否支持WebRTC能力 * @param { XYCheckSystemRequirementsDetail } detail - 浏览器能力详情 * */ export interface ICheckSystemRequirements { result: boolean; detail: XYCheckSystemRequirementsDetail; } export interface DetectSupportFeature { isSupportRTC: boolean; isSupportAddtrack: boolean; isSupportAddTransceiver: boolean; isSupportReplaceTrack: boolean; isApplyConstraints: boolean; isSupportSetStreams: boolean; } export interface DetectSupportTest { isSupportPeer: boolean; isSupportAddtrack: boolean; isSupportAddTransceiver: boolean; isSupportReplaceTrack: boolean; isApplyConstraints: boolean; isSupportSetStreams: boolean; } export interface DetectDeviceCodecList { audioSenderCodecList: string[]; videoSenderCodecList: string[]; audioReceiverCodecList: string[]; videoReceiverCodecList: string[]; }