Skip to content

Commit

Permalink
调整兼容
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangyuecn committed Jan 6, 2019
1 parent 5a9979b commit c493b25
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@
var type=$("[name=type]:checked").val();
var bit=+$(".bit").val();
var sample=+$(".sample").val();
var wave;
rec=Recorder({
type:type
,bitRate:bit
Expand All @@ -154,11 +155,11 @@
});
rec.open(function(){
reclog("已打开:"+type+" "+bit+"kbps");

wave=Recorder.WaveView({elem:".recwave"});
},function(e,isUserNotAllow){
reclog((isUserNotAllow?"UserNotAllow,":"")+"打开失败:"+e);
});

var wave=Recorder.WaveView({elem:".recwave"});
};
function recclose(){
if(rec){
Expand Down

0 comments on commit c493b25

Please sign in to comment.