Commit 5268c0b4 authored by liujiangnan's avatar liujiangnan

feat: 兼容IOS

parent 314177e8
......@@ -120,6 +120,9 @@ export function initAir(_this) {
// 结束录音
window.air.recordCallBack = (res) => {
callback && callback(JSON.stringify(res));
res = typeof(res) == 'string' ? res : JSON.stringify(res);
_this.log(`===成功调用recordCallBack=== res == ${res}`);
callback && callback(res);
window.air.recordCallBack = null;
};
window.courseware.callOcMethod("stopRecord", { isBreak: 0, isSpeechToText: _isSpeechToText });
......
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