1

How to disable auto play option in YouTube embedded code. my Video embedded code is like below and i have checked the ?autoplay=0 method. but it not working.

this is the YouTube code:

<iframe width="711" height="400" src="https://www.youtube.com/embed/E5ln4uR4TwQ?rel=0?ecver=1" frameborder="0" allowfullscreen></iframe>

i have checked like below:

<iframe width="1400" height="400" src="https://www.youtube.com/embed/E5ln4uR4TwQ?autoplay=0&rel=0&ecver=1" frameborder="0" allowfullscreen></iframe>

Thanks

3 Answers 3

3

To disable autoplay, just put &autoplay=0 after the video ID. see the below line:

<embed src="http://www.youtube.com/blahblah&autoplay=0"
Sign up to request clarification or add additional context in comments.

5 Comments

yes, I had put &autoplay=0 at the end of the video ID. but it's not affected. please check the above embedded code.
seems like you have written ?autoplay=0 try changing it to &autoplay=0
its not working. if placing this not showing the video
you have to use the old embed video for the parameter to work
try your original code in mozilla and see if it is working
0

try with this hope it will helps you.

<object width="425" height="350">
<param name="movie" value="https://www.youtube.com/embed/E5ln4uR4TwQ?autoplay=0"></param>
<embed src="https://www.youtube.com/embed/E5ln4uR4TwQ?autoplay=0" type="application/x-shockwave-flash" width="425" height="350"></embed>
</object>

Comments

0

I was also looking for an answer and found that adding ?rel=0 to the end of the link seems to work

Example:

<iframe width="560" height="315" src="https://www.youtube.com/embed/code for video?rel=0" frameborder="0" allow="encrypted-media" allowfullscreen></iframe>

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.