[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问题嘛?
!-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问题嘛?
没有找到相关结果
已邀请:
1 个回复
Aar0n
赞同来自: