Skip to content

Commit

Permalink
Demo Code Recorder.SampleData调用问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangyuecn committed Nov 3, 2019
1 parent ebb736e commit b00a2bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/runtime-codes/teach.realtime.encode_transfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ var RealTimeSendTry=function(rec,isClose){
};
realTimeSendTryChunk=chunk;

//没有新数据,不能进行mock转码
if(chunk.data.length==0){
//没有新数据,或结束时的数据量太小,不能进行mock转码
if(chunk.data.length==0 || isClose&&chunk.data.length<2000){
TransferUpload(number,null,0,null,isClose);
return;
};
Expand Down

0 comments on commit b00a2bc

Please sign in to comment.