[Updated] How to embed YouTube videos!

mthrnite

So it goes.
OP
Former Staff
Joined
Jun 30, 2006
Messages
4,567
Trophies
3
Age
60
Location
th' south
Website
www.facebook.com
XP
2,850
Country
United States
NEW YOUTUBE TAG, Jan. 14th, 2008

The new youtube tag is easier to use than the previous one (read the spoiler box below).

Just put the video code between the tags.
For example: to include this video http://www.youtube.com/watch?v=CZcNWUzxpUo
All you need is the CZcNWUzxpUo part.

Code:
[youtube]CZcNWUzxpUo[/youtube]

Result:


Enjoy!


[title:Old post by mthrnite]
Many people haven't gotten the hang of the YOUTUBE tags for embedding video in their posts.
Here's a quick explanation:

Find a vid you like on www.youtube.com and copy what's in your browser's address bar, here I found one.
Code:
http://www.youtube.com/watch?v=WAEk9ZDJUI4&mode=related&search=

Now, notice this part, between the v= and the mode=

watch?v=WAEk9ZDJUI4&mode=related&search=

That's the identifier for the vid. There isn't always a mode= part at the end, only if you got to the vid indirectly.
The identifier lives in the "v" directory on YouTube, so, here comes the surgery...

1. Highlight and delete the watch? on the left side of the v
2. Highlight the = on the right side of the v and type a / to replace it.
3. Highlight and delete mode=blablabla if it's there at all, all the way to the end of the line.
4. Now all that's left to do is to surround it in the YOUTUBE tags.

Here's a quick visual rundown:

Code:
This:
http://www.youtube.com/watch?v=WAEk9ZDJUI4&mode=related&search=

Becomes this:
[YOUTUBE]http://www.youtube.com/v/WAEk9ZDJUI4&[/YOUTUBE]


Make sure you Preview Post before you Submit Post, the YouTube vid should show up in your preview.
If all is well, submit that thang and share your good taste with the world!




If you've found an easier way to do this or have any questions, let me know here.
I'm gonna sticky this topic for the time being.
 

tj_cool

Site dev
Supervisor
Joined
Jan 7, 2009
Messages
10,064
Trophies
2
Location
This planet
XP
3,107
Country
Belgium
For people that can't get enough of this (like me
tongue.gif
), here's some advanced embedding

I'll be using the same vid as in the BBcode topic:
[youtube]52V5MlEqBOc&fs=1&rel=0&color1=0x666699&color2=0xDDDDDD&loop=1&start=20&iv_load_policy=3&border=1&showinfo=0&hd=1[/youtube][/p]

VS

You can give the bar a nice color and customize it a bit
biggrin.gif


Things you can add/change in the blue text (if you don't include it, it will be the default):

&rel=
Show or hide related video's in the menu (the button at the bottom right)
0 = Don't show them
1 = Show them (default)

&autoplay=
Start the video automatically when its loaded
0 = Don't autoplay (default)
1 = Autoplay

&loop=
Loop the video
0 = Don't loop (default)
1 = Loop

&color1=0x(color)
the first color of the bar. Replace (color) with the hex value of the color (without #)

&color2=0x(color)
same as color1

&border=
show a border around the video. Will use color1 and color2
0 = Don't show (default)
1 = Show

&start=x
start at x seconds instead of at the beginning
x = Amount of seconds (0 is default)

&iv_load_policy=
Show or hide annotations in the vid
1 = Show (default)
3 = Hide

&showinfo=
Show the Video title and rating before the video is started
0 = Don't show
1 = Show (default)

&hd=
Enable HD by default. Note that this has no effect on HQ !
0 = Don't enable by default (default)
1 = Enable by default

You can use my embed as an example
I added everything except autoplay
wink.gif


Note1: you cannot change the width and height (actually you can, but if you do nothing happens...)
Note2: the order doesn't matter at all.
Note3: You can also use the Full embed code (be sure to add the blue things twice):
[youtube][/youtube][/p]
 

playallday

Group: GBAtemp Ghost
Member
Joined
May 23, 2008
Messages
3,767
Trophies
1
Location
[@N@[)@
Website
Visit site
XP
504
Country
Canada
The Teej said:
Is there any way of adding in parameters for the youtube tag? I.e.

Code:
[youtube=640,360][/youtube]
would make the video appear in 640x360 resolution, or is this not possible?
This would work.
wink.gif


CODE[flash=640,360]http://www.youtube.com/v/b5wL2znN0xE.swf[/flash]

 
D

Deleted_171835

Guest
This is rather helpful.

tj_cool is probably going to be the next moderator!
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
46
Location
Engine room, learning
XP
15,662
Country
France
Thanks TJ for the params, but almost nobody take the time to use them :/
I was wondering if the default [youtube ] BBtag internal code could be changed to include the fullscreen=1 or a new "param name=allowFullScreen value=true" option so all the videos (even the ones already posted) would have the fullscreen button added.
Actually to enable fullscreen we need to run the video in youtube and quit GBAtemp. That would be nice if it can be added, or is there a reason it's not included by default ?

Thank you in advance Costello
smile.gif
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Psionic Roshambo @ Psionic Roshambo: @K3Nv2, try SanDisk format tool?