Skip to content

Commit

Permalink
模拟实时编码数据重置由open时改成start时重置
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangyuecn committed Sep 25, 2019
1 parent aae4eb9 commit 1ce0ad6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@

var realTimeSendSet=$(".realTimeSendSet")[0].checked;
var realTimeSendTime=+$(".realTimeSend").val();
window.realTimeSendTryReset&&realTimeSendTryReset();

rec=Recorder({
type:type
Expand Down Expand Up @@ -313,6 +312,8 @@
msg&&reclog(msg,1);
});
if(rec){
window.realTimeSendTryReset&&realTimeSendTryReset();

rec.start();
var set=rec.set;
reclog("录制中:"+set.type+" "+set.sampleRate+"hz "+set.bitRate+"kbps");
Expand Down

0 comments on commit 1ce0ad6

Please sign in to comment.