[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,863
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,109
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
  • Xdqwerty @ Xdqwerty:
    i guess not...
  • Xdqwerty @ Xdqwerty:
    yawn
  • Xdqwerty @ Xdqwerty:
    anybody here?
  • P @ PKNate:
    nope
  • BakerMan @ BakerMan:
    fun fact: 7 years by lukas graham, supermassive black hole by muse, and megalomania all have the same bpm
  • BakerMan @ BakerMan:
    girls just wanna have fun and renai circulation also share the same tempo as the few i said before
  • Xdqwerty @ Xdqwerty:
    @BakerMan, megalomania the live a live song?
  • BakerMan @ BakerMan:
    wait no, megalovania*
  • BakerMan @ BakerMan:
    my bad
  • K3Nv2 @ K3Nv2:
    I don't forgive you
  • BigOnYa @ BigOnYa:
    The nerve of that guy, gosh.
  • K3Nv2 @ K3Nv2:
    Yeah expecting me to forgive gtfo
  • Psionic Roshambo @ Psionic Roshambo:
    But how could the Dr have known you didn't want to be circumcized?
  • K3Nv2 @ K3Nv2:
    He didn't you just wanted your dick to be fondled
    +1
  • K3Nv2 @ K3Nv2:
    Watching dune 2 it's eh
  • Psionic Roshambo @ Psionic Roshambo:
    Dune one sucked
  • Psionic Roshambo @ Psionic Roshambo:
    The original with Patrick Stewart was Great
  • K3Nv2 @ K3Nv2:
    A sexual psycopath that love pain where have I heard that before
  • BigOnYa @ BigOnYa:
    In your high school diary?
  • K3Nv2 @ K3Nv2:
    No but your wife let's me read her diary the word psychopath comes up more than sexual
    +1
  • K3Nv2 @ K3Nv2:
    Lol stremio hogging all of my tvs on board ram
  • BigOnYa @ BigOnYa:
    Just download more Ram to it, or setup Raid666 on it.
    BigOnYa @ BigOnYa: Just download more Ram to it, or setup Raid666 on it.