1***@qq.com
1***@qq.com
  • 发布:2022-04-25 14:01
  • 更新:2022-04-25 17:11
  • 阅读:582

uni.createInnerAudioContext()部分mp3格式无法播放,errorCode:-99

分类:uni-app

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,'播放错误');
});

使用上面的地址无法播放,用注释的地址就可以

2022-04-25 14:01 负责人:无 分享
已邀请:
FullStack

FullStack - 【插件开发】【专治疑难杂症】【ios上架、马甲包、白包、过审、已成功上架过几百个】【多款插件已上架:https://ext.dcloud.net.cn/publisher?id=22130】【非诚勿扰】QQ:543610866

http://www.miniotest.com:30461/test/202204/a8de416b639145f7890f8cb5e22f5b59/tmp/cav3dx.mp3 无法访问

该问题目前已经被锁定, 无法添加新回复