We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
参考链接:ufologist/autoplay-audio-ios.html
if (window.WeixinJSBridge) { WeixinJSBridge.invoke('getNetworkType', {}, function (e) { audio.play() }, false) } else { document.addEventListener("WeixinJSBridgeReady", function () { WeixinJSBridge.invoke('getNetworkType', {}, function (e) { audio.play() }) }, false) } audio.play()
iOS 系统找了四五个用户测试,只有一个用户的微信不自动播放音频,系统还是此刻(2022-01-24)的最新版 15.2.1。
Android 系统也找了好几个用户测试,只有一个小米手机能够自动播放音频。
但是根据官方通知 Android微信内网页音频自动播放能力调整,说是从2020年4月起,微信内网页就无法自动播放音频了。虽然目前(2021年02月07日)还可以,但是不知道什么时候会强制禁止。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
实现方法
参考链接:ufologist/autoplay-audio-ios.html
效果测试
iOS 系统找了四五个用户测试,只有一个用户的微信不自动播放音频,系统还是此刻(2022-01-24)的最新版 15.2.1。
Android 系统也找了好几个用户测试,只有一个小米手机能够自动播放音频。
注意事项
但是根据官方通知 Android微信内网页音频自动播放能力调整,说是从2020年4月起,微信内网页就无法自动播放音频了。虽然目前(2021年02月07日)还可以,但是不知道什么时候会强制禁止。
The text was updated successfully, but these errors were encountered: