在iOS系统静音模式下,BackgroundAudioManager播放没有声音,关闭静音后正常,设置wx.setInnerAudioOption({ obeyMuteSwitch: false });也无效,使用的是iPhoneX最新微信版本,调研其他产品是有这个功能的,具体如何实现呢
PS.奇怪的是关闭微信一段时间后,再次进入微信,之前在静音模式没有声音的BackgroundAudioManager又有声音了,静音模式一直是开启的,也没有进入小程序
在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)