I've had quite a few people ask me how I embed YouTube videos on my page that autoplay to provide music so I don't have to upload mp3s. Due to this, I'm going to type out a little tutorial that will hopefully provide assistance for those who don't know.

I'm gonna use this video for example:

http://www.youtube.com/watch?v=yT4p6dEa9Yo

On the YouTube page, click Share, then Embed. Copy the large amount of text that *should* already be highlighted within the box that appears.

<iframe width="420" height="315" src="http://www.youtube.com/embed/yT4p6dEa9Yo?rel=0" frameborder="0" allowfullscreen></iframe>

Now, look at the video's URL within in the code:

<iframe width="420" height="315" src="http://www.youtube.com/embed/yT4p6dEa9Yo?rel=0" frameborder="0" allowfullscreen></iframe>

Only one thing needs to be changed to make this autoplay.

rel=0 needs to become autoplay=1

So, 

<iframe width="420" height="315" src="http://www.youtube.com/embed/yT4p6dEa9Yo?autoplay=1" frameborder="0" allowfullscreen></iframe>

Now, you can copy/paste this code into your main profile itself or into the text box via the video option. You can even do this in a comment, if you choose. 

I hope this helps! Any more questions, just ask.

Tags: Autoplay, YouTube, videos

Views: 134

Reply to This

Replies to This Discussion

You go to ember and check on the "Old Code" and unchecked all the others ;) the copy-paste that link and paste it there.

Nicki ღ said:

What about with this code ? 

<iframe width="475" height="267" src="http://www.youtube.com/embed/3U72hzeBLOw" frameborder="0" allowfullscreen></iframe>

Reply to Discussion

RSS

Support The Site

Donate to Keep Us Open

Remember: RolePages is free to everyone but the owner, and all donations go directly to help maintain and improve the site.

Visit The RolePages Imagination Store

Costumes

Accessories

Masks

Wigs

Hats

Makeup

Original Designs

© 2013   Created by Joseph Gambit.

Badges  |  Report an Issue  |  Terms of Service