RecorderManager mc.getRecorderManager()

获取全局唯一的录音管理器 RecorderManager

返回值

类型 说明
RecorderManager 录音管理器对象

示例代码:

const recorder = mc.getRecorderManager();
recorder.onStop(function(res){
    console.log('tempFilePath', res.tempFilePath);
    console.log('duration', res.duration);
    console.log('fileSize', res.fileSize);
});

recorder.start({
    audioSource: 'auto',
    duration: 10000,
    format: 'acc'
});

results matching ""

    No results matching ""

    results matching ""

      No results matching ""