
安装 npm install benz-amr-recorder
引入
import BenzAMRRecorder from "benz-amr-recorder";
//实例化
//实例化
var amr = new BenzAMRRecorder();
amr.initWithUrl(process.env.MessageManageUrl + result.playpath)
.then(function () {
// amr.isPlaying() 返回音频的播放状态 是否正在播放 返回boolean类型
console.log(amr.isPlaying());
if (amr.isPlaying()) {
amr.stop();
} else {
amr.play();
}
});
评价
排名
6
文章
6
粉丝
16
评论
8
{{item.articleTitle}}
{{item.blogName}} : {{item.content}}
ICP备案 :渝ICP备18016597号-1
网站信息:2018-2025TNBLOG.NET
技术交流:群号656732739
联系我们:contact@tnblog.net
公网安备:
50010702506256


欢迎加群交流技术