Commit 56ac973c authored by liujiangnan's avatar liujiangnan

feat: 原生录音测试

parent eca806c5
......@@ -245,6 +245,18 @@ cc.Class({
window.courseware.closeOsmo();
});
cc.find('middleLayer/ui/BtnOpenRecord').on('click', () => {
window.courseware.startRecord('');
});
cc.find('middleLayer/ui/BtnCloseRecord').on('click', () => {
window.courseware.stopRecord(0, res => {
this.log('--------录音返回结果------------');
this.log(JSON.stringify(res))
this.log('------------------------------');
});
});
const BtnStartLocal = cc.find('middleLayer/ui/BtnStartLocal');
BtnStartLocal.on('click', () => {
const addressText = cc.find('middleLayer/ui/address');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment