Skip to content

Commit

Permalink
微信录音解除1分钟限制
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangyuecn committed Apr 24, 2019
1 parent 30f4754 commit 22d0b58
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions app-support-sample/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,10 @@
var list=wxData.list;
delete wxData.list;

reclog("<span style='color:#fb0'>发现微信JsSDK服务器端下载下来的音频源文件,播放可能需要上面点击换到amr类型,加载amr解码器<span>");
reclog("共"+list.length+"段,时间统计:"+JSON.stringify(wxData));
reclog("<span style='color:#0b1'>发现微信JsSDK录制的源文件,共"+list.length+"段,时间统计:"+JSON.stringify(wxData)+"</span>");
if(!Recorder.AMR){
reclog("<span style='color:#fb0'>播放需要上面点击换到amr类型,加载amr解码器,目前未加载<span>");
};

var timex=time;
var t1x=t1;
Expand Down
2 changes: 1 addition & 1 deletion dist/app-support/app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/app-support/app-ios-weixin-support.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ platform.Stop=function(success,failx){
};

var data=list[deidx];
data.duration=timeouts[deidx].duration;
data.isAmr=true;
var bstr=atob(data.data),n=bstr.length,u8arr=new Uint8Array(n);
while(n--){
u8arr[n]=bstr.charCodeAt(n);
Expand Down

0 comments on commit 22d0b58

Please sign in to comment.