【发布时间】:2021-02-17 06:36:24
【问题描述】:
如何处理“Uncaught (in promise) DOMException: play() failed because the user didn't first interact with the document”。在桌面上使用 Chrome 66? 我的代码是
<video
title="Advertisement"
style="background-color: rgb(0, 0, 0); position: absolute; width: 640px; height: 360px;"
src="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
autoplay="true"
muted="muted"></video>
它应该可以在没有静音的情况下工作。
【问题讨论】:
-
它在没有
muted的情况下工作... -
This 应该会回答您的问题。
标签: javascript