How do you get Autoplay of Youtube

Marcus

Senior Member
Joined
Nov 22, 2009
Posts
3,663
Bells
1,933
Ok so I'm going to be doing my Town Profile soon, and want to add some music to spice it up. The music is going to come from a Youtube Video, and I want it to autoplay. How do you do this? Could someone explain the steps I need to do to get it from Youtube, then get it into Autoplay in a post...thanks!
http://www.youtube.com/v/G9_Pl-U9R4s&playnext_from=TL&videos=7ueCDFj7XQM
 
Add *blocked*=1 to the end of the link.

So:

Code:
http://www.youtube.com/watch?v=9Waq4wad5X4

Would become:

Code:
http://www.youtube.com/watch?v=9Waq4wad5X4*blocked*=1

Never mind, I can't tell you what it is, Storm has disabled members from using the tag for it outside of BBcode. I don't think he realises you can still use it in code... XD
 
SAMwich said:
Add *blocked*=1 to the end of the ]http://www.youtube.com/watch?v=9Waq4wad5X4[/code]

Would become:

Code:
http://www.youtube.com/watch?v=9Waq4wad5X4*blocked*=1

Never mind, I can't tell you what it is, Storm has disabled members from using the tag for it outside of BBcode. I don't think he realises you can still use it in code... XD
What is the [flash=257,25] part?
And what does the *blocked* part do?
 
&auto.play=1

add that to the end of the url without the period

the determines the width and height of the video, x being width, y being height (i think?)

omitting the =x,y gives you the default embed size

so, example

Code:
[flash]http://www.youtube.com/watch?v=rwhl-LxS4Go

if we use that, we get

<object type='application/x-shockwave-flash' width="250" height="250" data='http://www.youtube.com/v/rwhl-LxS4Go'>
<param name='AllowScriptAccess' value='never' />
<param name='wmode' value='transparent' />
<param name='movie' value='http://www.youtube.com/v/rwhl-LxS4Go' /><param name='play' value='true' />
<param name='loop' value='true' /><param name='quality' value='high' /></object>

if we put in different x and y values...

Code:
http://www.youtube.com/watch?v=rwhl-LxS4Go

we get...

http://www.youtube.com/v/rwhl-LxS4Go

you're going to want to keep a square or rectangular shape going on, though, becausee if you use something like 40,300...

http://www.youtube.com/v/rwhl-LxS4Go

the video looks weird.

if we added &auto.play=1 at the end of either of those videos (without the period between "auto" and "play"), the video we added it to would begin playing upon loading

hope that helps
 
Back
Top