t***@tongcl.com
t***@tongcl.com
  • 发布:2025-04-23 11:23
  • 更新:2025-04-23 11:23
  • 阅读:60

【报Bug】音频播放错误

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win10

HBuilderX类型: 正式

HBuilderX版本号: 4.57

手机系统: Android

手机系统版本号: Android 7.1.1

手机厂商: 商米收银机

手机机型: D1s

页面类型: nvue

vue版本: vue3

打包方式: 云端

项目创建方式: HBuilderX

示例代码:

let self = this
isPlayAudio = true
const innerAudioContext = uni.createInnerAudioContext();
innerAudioContext.src = config.tongclmall_url + '/' +
filePath; // 设置音频源路径‌:ml-citation{ref="1,3" data="citationList"}
innerAudioContext.autoplay = true; // 自动播放
// 事件监听
innerAudioContext.onPlay(() => {
console.log('音频开始播放');
});
innerAudioContext.onEnded((err) => {
queue_notice_way = queue_notice_way - 1
if (queue_notice_way > 0) {
self.createAudioPlayer(filePath)
} else {
self.destroyAudioPlayer()
isPlayAudio = false
}
});
innerAudioContext.onError((err) => {
console.error('播放错误:', err);
isPlayAudio = false
self.destroyAudioPlayer()
});

操作步骤:

音频播放错误

预期结果:

音频播放错误

实际结果:

音频播放错误

bug描述:

音频播放错误提示 -99

2025-04-23 11:23 负责人:无 分享
已邀请:

要回复问题请先登录注册