该状态已经是非活动的状态了,加个状态判断

             console.log(mediaRecorder.state);
if(mediaRecorder.state!="inactive"){ mediaRecorder.stop(); }

 

相关文章: