|
@@ -319,15 +319,7 @@ Page({
|
|
|
this.setData({
|
|
|
tempFilePath: res.tempFilePath,
|
|
|
});
|
|
|
- //录音机结束后,驰声引擎执行结束操作,等待评测返回结果
|
|
|
- wsEngine.stop({
|
|
|
- success: () => {
|
|
|
- console.log('====== wsEngine stop success ======');
|
|
|
- },
|
|
|
- fail: (res) => {
|
|
|
- console.log('录音结束报错', res);
|
|
|
- },
|
|
|
- });
|
|
|
+
|
|
|
});
|
|
|
//监听已录制完指定帧大小的文件事件。如果设置了 frameSize,则会回调此事件。
|
|
|
recorderManager.onFrameRecorded((res) => {
|
|
@@ -427,7 +419,6 @@ Page({
|
|
|
audioPath,
|
|
|
})
|
|
|
let _data = this.data.readDetail
|
|
|
-
|
|
|
let scoreRes = await postWorksScore({
|
|
|
"userReadId": uploadRes.id,
|
|
|
"complete": _data.integrity,
|
|
@@ -566,6 +557,7 @@ Page({
|
|
|
resetReading() {
|
|
|
clearTimeout(this.setTimeoutObj)
|
|
|
clearInterval(this.stl)
|
|
|
+ wsEngine.reset()
|
|
|
// 重置视频
|
|
|
if (this.data.videoInfo.userReadExtend.resourcesType == 0) {
|
|
|
this.videoContext.stop()
|
|
@@ -616,7 +608,6 @@ Page({
|
|
|
}, 300)
|
|
|
},
|
|
|
onHide() {
|
|
|
- console.log('结束了吗');
|
|
|
this.resetReading()
|
|
|
},
|
|
|
onUnload() {
|
|
@@ -729,9 +720,7 @@ Page({
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
-
|
|
|
})
|
|
|
})
|
|
|
},
|