[LayaAirIDE 2.0]打包安装到手机一直报错 API can only be initiated by a user gesture

!-Time:-19:52:13--ConsoleUncaught (in promise) NotAllowedError: play() can only be initiated by a user gesture.-!

!-Time:-19:52:19--ConsoleFailed to execute 'play' on 'HTMLMediaElement': API can only be initiated by a user gesture.-!

!-Time:-19:52:19--ConsoleUncaught (in promise) NotAllowedError: play() can only be initiated by a user gesture.-!

!-Time:-19:52:28--ConsoleFailed to execute 'play' on 'HTMLMediaElement': API can only be initiated by a user gesture.-!

!-Time:-19:52:28--ConsoleUncaught (in promise) NotAllowedError: play() can only be initiated by a user gesture.-!

!-Time:-19:52:41--ConsoleFailed to execute 'play' on 'HTMLMediaElement': API can only be initiated by a user gesture.-!

!-Time:-19:52:41--ConsoleUncaught (in promise) NotAllowedError: play() can only be initiated by a user gesture.-!

!-Time:-19:52:49--ConsoleFailed to execute 'play' on 'HTMLMediaElement': API can only be initiated by a user gesture.-!

!-Time:-19:52:49--ConsoleUncaught (in promise) NotAllowedError: play() can only be initiated by a user gesture.-!
 
 
一直就重复这两个问题。不知道什么意思。请问是API问题嘛?
已邀请:

Aar0n

赞同来自:

添加一个点击事件之后就可以了

该问题目前已经被锁定, 无法添加新回复

商务合作
商务合作