设置麦克风设备
更新时间:2026-06-04 12:09:03

设置麦克风设备 setAudioInputDevice

描述:切换SDK的麦克风设备

示例
const onsuccess = () => {
	console.error('setAudioInputDevice success');
};
const onerror = (error) => {
	console.error(error);
};

YlinkMeeting.setAudioInputDevice(deviceId, onsuccess, onerror);
参数
名称 类型 是否必须 描述
deviceId string 设备 ID
onsuccess () => void 接口成功回调
onerror (error: string) => void 接口失败回调
返回数据

void

本页目录