原文:需求:在瀏覽器加載完畢后,自動播放視頻:出現play() failed because the user didn't interact with the document first.錯誤

解決方法:給video標簽加入 lt video muted gt lt video gt 靜音即可。 Chrome 為了避免標簽產生隨機噪音。 參考鏈接:https: juejin.im post af bf da b df c ...

2018-08-03 10:13 0 19509 推薦指數:

查看詳情

瀏覽器無法自動播放視頻

瀏覽器自動播放視頻會報錯:play() failed because the user didn't interact with the document first。 網上大部分資料是需要設置autoplay選項,但是我的谷歌瀏覽器版本是78 ; 設置改成如下 設置 ...

Tue Nov 12 19:10:00 CST 2019 0 435
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM