this.innerAudioContext = uni.createInnerAudioContext();
this.innerAudioContext.autoplay = true;
this.innerAudioContext.src = 'http://www.miniotest.com:30461/test/202204/a8de416b639145f7890f8cb5e22f5b59/tmp/cav3dx.mp3';
// this.innerAudioContext.src = 'http://demo.dcloud.net.cn/test/audio/apple.mp3';
this.innerAudioContext.onPlay(() => {
console.log('开始播放');
});
this.innerAudioContext.onError((err) => {
console.log(err,'播放错误');
});
使用上面的地址无法播放,用注释的地址就可以
1 个回复
FullStack - 【插件开发】【专治疑难杂症】【ios上架、马甲包、白包、过审、已成功上架过几百个】【多款插件已上架:https://ext.dcloud.net.cn/publisher?id=22130】【非诚勿扰】QQ:543610866
http://www.miniotest.com:30461/test/202204/a8de416b639145f7890f8cb5e22f5b59/tmp/cav3dx.mp3 无法访问