You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page, 由于IOS的特殊性,audioContext的初始state='suspended', 不会播放声音;必须通过用户交互的回调中ctx.resume()来解锁ctx才能播放。
一些AI答疑:
在iOS 11及以上版本的Webview中,AudioContext的创建和启动必须在用户手势的上下文中进行。这是因为iOS 11引入了一种安全机制,以防止Web应用程序在没有用户交互的情况下自动播放音频。如果你尝试在没有用户交互的情况下创建或启动AudioContext,则会出现The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page.错误。
背景:
debug:
The text was updated successfully, but these errors were encountered: