BackgroundAudioManager如何在iOS静音模式下正常播放?

小游戏 企业微信 微信支付 小程序 文章 2020-07-30 21:20 619 0 全屏看文

AI助手支持GPT4.0

BackgroundAudioManager如何在iOS静音模式下正常播放?

在iOS系统静音模式下,BackgroundAudioManager播放没有声音,关闭静音后正常,设置wx.setInnerAudioOption({ obeyMuteSwitch: false });也无效,使用的是iPhoneX最新微信版本,调研其他产品是有这个功能的,具体如何实现呢

PS.奇怪的是关闭微信一段时间后,再次进入微信,之前在静音模式没有声音的BackgroundAudioManager又有声音了,静音模式一直是开启的,也没有进入小程序

In the IOS system mute mode, backgroundaudiomanager plays without sound. After mute is turned off, it is normal wx.setInnerAudioOption ({ obeyMuteSwitch: false }); It's also invalid. It uses the latest wechat version of iPhone X. investigating other products has this function, how to realize it? PS. it's strange that after closing wechat for a period of time, it enters wechat again. The backgroundaudiomanager, which had no sound in the mute mode before, has a sound again. The mute mode has always been on and has not entered the applet

回答:

社区技术运营专员-灵芝:

你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

-EOF-

AI助手支持GPT4.0