Stop youtube video autoplay

前端 未结 6 1230
闹比i
闹比i 2021-01-04 08:52

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.

相关标签:
6条回答
  • 2021-01-04 09:24

    Jut put the "#t=XmXs" after the URL. NOTICE that you have to change the X to a certain time, such as 2m30s.

    0 讨论(0)
  • 2021-01-04 09:35

    Instead of using &autoplay=false, try using ?autoplay=false regardless of whether there is a preceding ?rel=n.

    This seems to be working for me after getting it by trial and error.

    0 讨论(0)
  • 2021-01-04 09:38

    It used to work. YouTube only verifies how to autoplay but they dont talk aboth NOT autoplay.

    &autoplay=0 does not work.

    http://support.google.com/youtube/bin/answer.py?hl=en&answer=171780&rd=1

    0 讨论(0)
  • 2021-01-04 09:42

    Add &autoplay=0 to the video URL.

    0 讨论(0)
  • 2021-01-04 09:44

    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=en&answer=1181821

    Updated code.

    0 讨论(0)
  • 2021-01-04 09:46

    With a code like this:

    <iframe width="680" height="382" frameborder="0" src="//www.youtube.com/embed/n4K1Qpj1Ljg?list=UU3qGUTKOSIKbp08itEn8VIA?autoplay=0">
    </iframe>
    
    0 讨论(0)
提交回复
热议问题