我正试着在静音的情况下嵌入一段视频,但我想不出它是如何工作的.
目前我正在使用这个,但不起作用:
<iframe src="https://www.youtube.com/embed/uNRGWVJ10gQ?rel=0&autoplay=1" width="560" height="315" frameborder="0" allowfullscreen></iframe>
你们谁知道我怎么才能做到这一点?
我正试着在静音的情况下嵌入一段视频,但我想不出它是如何工作的.
目前我正在使用这个,但不起作用:
<iframe src="https://www.youtube.com/embed/uNRGWVJ10gQ?rel=0&autoplay=1" width="560" height="315" frameborder="0" allowfullscreen></iframe>
你们谁知道我怎么才能做到这一点?
Updated个
在您的url末尾添加&mute=1
.
你的新代码是:
<iframe src="https://www.youtube.com/embed/uNRGWVJ10gQ?rel=0&autoplay=1&mute=1" width="560" height="315" frameborder="0" allowfullscreen></iframe>