Commit 11989164 authored by xxx's avatar xxx

1

parent 0c019d34
...@@ -337,17 +337,25 @@ export default { ...@@ -337,17 +337,25 @@ export default {
rec.open(function(){ rec.open(function(){
This.dialogCancel(); This.dialogCancel();
console.log('录音权限已打开');
This.reclog("已打开:"+This.type+" "+This.sampleRate+"hz "+This.bitRate+"kbps",2); This.reclog("已打开:"+This.type+" "+This.sampleRate+"hz "+This.bitRate+"kbps",2);
This.wave=Recorder.WaveView({elem:".ctrlProcessWave"}); This.wave=Recorder.WaveView({elem:".ctrlProcessWave"});
},function(msg,isUserNotAllow){ },function(msg,isUserNotAllow){
This.dialogCancel(); This.dialogCancel();
This.reclog((isUserNotAllow?"UserNotAllow,":"")+"打开失败:"+msg,1); This.reclog((isUserNotAllow?"UserNotAllow,":"")+"打开失败:"+msg,1);
// This.$notify({
// title: '2222',
// type: 'success',
// duration: 2500
// });
console.log('录音权限未打开1');
}); });
This.waitDialogClickFn=function(){ This.waitDialogClickFn=function(){
This.dialogCancel(); This.dialogCancel();
This.reclog("打开失败:权限请求被忽略,用户主动点击的弹窗",1); This.reclog("打开失败:权限请求被忽略,用户主动点击的弹窗",1);
console.log('录音权限未打开2');
}; };
}, },
recClose:function(){ recClose:function(){
......
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