the user didn't interact with the document first.搜索發現Chrom ...
一 audio. .html: Uncaught in promise DOMException: play failed because the user didn t interact with the document first. Audio 標簽的 autoplay 自動播放功能受限制。 針對於新版谷歌瀏覽器 火狐瀏覽器。 對於IE,Edge瀏覽器還是支持自動播放的。 規則要求: 在用戶 ...
2020-08-22 10:42 0 1214 推薦指數:
the user didn't interact with the document first.搜索發現Chrom ...
(in promise) DOMException: play() failed because the user did ...
//加上靜音屬性也播放不了 <audio ref="audio" preload="auto" autoplay src="./tip.mp3 ...
Chrome的autoplay政策在2018年4月做了更改。新的行為:瀏覽器為了提高用戶體驗,減少數據消耗,現在都在遵循autoplay政策,Chrome的autoplay 政策非常簡單 muted ...
解決方法:給video標簽加入<video muted></video> 靜音即可。 Chrome 66為了避免標簽產生隨機噪音。 參考鏈接:https://juej ...
錯誤原因:Chrome的autoplay政策在2018年4月做了更改。 解決辦法: 第一步,在chrome瀏覽器中輸入:chrome://flags/#autoplay-policy 第二步,在Autoplay policy中將Default改為No user gesture ...
問題: Uncaught (in promise) DOMException: Failed to load because no supported source was found.出現上邊的錯誤一方面是從后台獲取到的video的字節數是0,是一個空的音頻 判斷音頻是否可以下載,在播放器 ...