付智勇

更新 shellUtil.js

@@ -31,10 +31,9 @@ shell.prototype.Recording =async(appId,uid,channel,channelKey,body)=>{ @@ -31,10 +31,9 @@ shell.prototype.Recording =async(appId,uid,channel,channelKey,body)=>{
31 }); 31 });
32 if(body.status == 1){ 32 if(body.status == 1){
33 console.log('START',json) 33 console.log('START',json)
34 - setTimeout(function() {  
35 - console.log( ws.readyState) 34 + setTimeout(function() {
36 ws.send(JSON.stringify(json)) 35 ws.send(JSON.stringify(json))
37 - }, 20); 36 + }, 50);
38 }else if(body.status == 2){ 37 }else if(body.status == 2){
39 json.type = 'STOP' 38 json.type = 'STOP'
40 setTimeout(function() { 39 setTimeout(function() {