|
@@ -167,15 +167,19 @@ Page({
|
|
|
* 2 录音结束
|
|
|
***/
|
|
|
audioRecord: function () {
|
|
|
- console.log('recordFlag', this.data.recordFlag)
|
|
|
+ console.log('111111111111111recordFlag', this.data.recordFlag)
|
|
|
if (this.data.recordFlag === 0) {
|
|
|
// this.recordStart();
|
|
|
// this.saveVideo();
|
|
|
- console.log('是否有视频', this.videoCtx)
|
|
|
+ console.log('2222222222是否有视频', this.videoCtx)
|
|
|
if (this.videoCtx) {
|
|
|
+ console.log('3333333333333停止视频停止视频停止视频')
|
|
|
this.videoCtx.stop();
|
|
|
// this.videoCtx.seek(0);
|
|
|
}
|
|
|
+ if (this.data.audioPlaying) {
|
|
|
+ this.ss.stopPlay();
|
|
|
+ }
|
|
|
// if (this.recorderManager) {
|
|
|
// this.recorderManager.stop();
|
|
|
// }
|