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