Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first.
為什么會報 Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first. 這個錯誤呀? 有沒有高手給解答一下?
為什么會報 Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first. 這個錯誤呀? 有沒有高手給解答一下?
2018-05-09
舉報
2020-05-20
無解,只能引導用戶主動交互
2019-10-30
目前還是有這個問題啊,自動播放報錯:DOMException: play() failed because the user didn't interact with the document first.
怎么解決?求解答。
2019-08-16
我用vue報類似的錯通過this.$nextTick(() => {play()//方法})解決的
2019-08-16
https://developers.google.com/web/updates/2017/06/play-request-was-interrupted
2018-12-18
打開 chrome:/ / flags /#autoplay-policy
設置無需用戶手勢
重新啟動Chrome
2018-07-20
靜音就可以了,Chrome 66為了避免標簽產生隨機噪音。
<video muted></video>
2018-05-19
我覺得這說的很明顯了,沒法在頁面加載完成的時候播放音頻或視頻。
這是Chrome 66的新特性,不過chrome之前很多瀏覽器都這么做了
2018-05-18
同問啊,播放視頻的時候報這個錯
Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first.
不知道為啥
2018-05-14
今天剛好遇到這個問題。目前找到的解決方式,如下圖:
為什么會產生這個問題還在查找~