停止 YouTube 视频自动播放 [英] Stop youtube video autoplay

查看:85
本文介绍了停止 YouTube 视频自动播放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在iframe"中使用高度宽度为 src 等的 youtube 视频.但它正在播放自动.我想用 onclick 播放它.请帮帮我.

I am using youtube video in "iframe" with height width src etc. but it is playing auto. I want to play it with onclick. Please help me.

推荐答案

要禁用自动播放,只需将 &autoplay=0 放在视频 ID 之后,如下所示:

To disable autoplay, just put &autoplay=0 after the video ID so it looks like this:

<object width="425" height="350">
<param name="movie" value="http://www.youtube.com/v/OdT9z-JjtJk&autoplay=0"></param>
<embed src="http://www.youtube.com/v/OdT9z-JjtJk&autoplay=0" type="application/x-shockwave-flash" width="425" height="350"></embed>
</object>

http://support.google.com/youtube/bin/answer.py?hl=zh-CN&answer=1181821

更新代码.

这篇关于停止 YouTube 视频自动播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆