Youtube Autoplay

  • 1
  • Question
  • Updated 6 years ago
  • Answered
Hey guys. I'm trying to get a youtube video to autoplay on my site's homepage. Everything I've read talks about inserting "&autoplay=1" But my url doesn't look like any of the samples they are presenting. Here is my url. How do I make this autoplay?

Thanks so much.
Photo of Jet

Jet

  • 9 Posts
  • 0 Reply Likes

Posted 6 years ago

  • 1
Photo of Jet

Jet

  • 9 Posts
  • 0 Reply Likes
It won't let me post my url, but it looks quite different.
Photo of Gop

Gop

  • 7473 Posts
  • 2115 Reply Likes
Try posting your url again Jet. eg: http://mysite.com
Photo of Jet

Jet

  • 9 Posts
  • 0 Reply Likes
https://www.youtube.com/embed/g_1bLRSFYbA" frameborder="0" allowfullscreen>

There's a bit of code before this that contains the height and width, but I can't seem to post it here. The sample codes I'm reading about are twice as long and have completely different content. This is similar to all of the codes that I embed on youtube.
Photo of Gop

Gop

  • 7473 Posts
  • 2115 Reply Likes
Hi jet,

I'm really after your website address so that I can see what is happening to your site code when you paste the youtube code into it.

I can capture the code from your site so don't worry about pasting it here.
Photo of Jet

Jet

  • 9 Posts
  • 0 Reply Likes
www.contramasters.com It's the video on the homepage.
Photo of Jet

Jet

  • 9 Posts
  • 0 Reply Likes
I would think that I'm supposed to insert the "&autoplay=1" before the quotes, but I'm told that it's invalid. The sample codes have two (back-to-back) "https://www.youtube.com/embed" within the same code. I only have one.
Photo of Gop

Gop

  • 7473 Posts
  • 2115 Reply Likes
I would suggest contacting Youtube and asking for their advice on this issue Jet.
Photo of Jet

Jet

  • 9 Posts
  • 0 Reply Likes
I just found out that my code is an iframe code. Should this be any different?
Photo of Gop

Gop

  • 7473 Posts
  • 2115 Reply Likes
I would wrap it in iframe tags Jet.
Photo of Jet

Jet

  • 9 Posts
  • 0 Reply Likes
I'm sorry, but I'm not sure what you mean.
Photo of Gop

Gop

  • 7473 Posts
  • 2115 Reply Likes
<!--<iframe> your code here </iframe>-->

Don't include the <!-- and the -->
Photo of Gop

Gop

  • 7473 Posts
  • 2115 Reply Likes
A good reference for iframe syntax is http://www.w3schools.com/tags/tag_ifr...
Photo of Jet

Jet

  • 9 Posts
  • 0 Reply Likes
Thanks so much.