付智勇

更新 shellUtil.js

@@ -32,9 +32,8 @@ shell.prototype.Recording =async(appId,uid,channel,channelKey,body)=>{ @@ -32,9 +32,8 @@ shell.prototype.Recording =async(appId,uid,channel,channelKey,body)=>{
32 if(body.status == 1){ 32 if(body.status == 1){
33 console.log('START',json) 33 console.log('START',json)
34 setTimeout(function() { 34 setTimeout(function() {
35 - console.log( ws.readyState)  
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() {