uni-app ios平台 audioContext音量设置为0后,不能静音。安卓正常

- 发布:2024-08-06 16:07
- 更新:2024-08-06 16:32
- 阅读:259
uni-app ios平台 audioContext音量设置为0后,不能静音。求解

9***@qq.com (作者)
const bgm = uni.createInnerAudioContext()
bgm.src = 'xxx'
bgm.autoplay = true
bgm.volume = 0

蔡cai - 开发的插件:https://ext.dcloud.net.cn/publisher?id=394134
是不是sessionCategory默认值的原因:"playback" - 中止其他声音,可以后台播放,静音后有声音。 默认值为"playback"。
9***@qq.com (作者)
const bgm = uni.createInnerAudioContext()
bgm.src = 'xxx'
bgm.autoplay = true
bgm.volume = 0
2024-08-06 16:26
9***@qq.com (作者)
很正常的代码
2024-08-06 16:27