Embedding YouTube, Vimeo, and Veoh videos

Started by MrBogosity, October 18, 2008, 09:47:04 PM

Previous topic - Next topic
October 18, 2008, 09:47:04 PM Last Edit: March 19, 2014, 04:28:43 PM by MrBogosity
I've made a custom BBCode tag so that we can embed YouTube videos into our posts. So let's say you want to embed this video:

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

You use the "yt" tag, either by typing or clicking the YouTube icon in the tools, and including the string after "v=" like so:

[yt]SnKppff5yQ8[/yt]

And the result is:

[yt]SnKppff5yQ8[/yt]

I made one for Veoh.com videos, too. For this one, you use the long string of characters starting with "v":

[veoh]v16275337PR8BK4pb[/veoh]

gets you:

[veoh]v16275337PR8BK4pb[/veoh]

I've been playing around with embedding YouTube videos in widescreen. If a video is made widescreen, and YouTube shows it letterboxed (as opposed to the black bars being part of the video), then it can play it widescreen. Like so:

4x3:

[yt]E8QsKYfOhBU[/yt]

Wide:

[yt-wide]E8QsKYfOhBU[/yt-wide]

Use the tag:

[yt-wide]VideoID[/yt-wide]

December 18, 2008, 06:14:29 PM #3 Last Edit: December 18, 2008, 06:52:47 PM by MrBogosity
Testing out embedding YouTube videos in Hi-Def:

[yt-hd]WFadg9-ui8s[/yt-hd]

Edit: K'plaH! It works...although I have the full screen option set, but it's not showing the button. Typical YouTube glitch, I guess. If you want to do this, just use:

[yt-hd]WFadg9-ui8s[/yt-hd]


Quote from: Tom S. Fox on December 18, 2008, 11:42:53 PM
I didn't know you spoke Klingon.

I think that's some type of alien bird language, not alien mammal.



Well, why don't you just shut up, then?

Minor change: Since YouTube has standardized widescreen, I've now made widescreen the default for the "yt" tag:

[yt]d0nERTFo-Sk[/yt]

[yt]d0nERTFo-Sk[/yt]

The "yt-wide" tag still works for the sake of older posts, but it's no longer necessary to use.

There is now a "yt-43" tag for 4:3 videos:

[yt-43]RWsx1X8PV_A[/yt-43]

[yt-43]RWsx1X8PV_A[/yt-43]

The "yt-hd" tag still works as before:

[yt-hd]d0nERTFo-Sk[/yt-hd]

[yt-hd]d0nERTFo-Sk[/yt-hd]

Quote from: MrBogosity on October 18, 2008, 09:47:04 PM[yt]SnKppff5yQ8[/yt][yt]SnKppff5yQ8[/yt]

So THAT'S what the code BBCode tag is for.
I've known that for a while now (courtesy of this thread). I really oughta use it more.
"When the mob and the press and the whole world tell you to move, your job is to plant yourself like a tree beside the river of truth, and tell the whole world—'No. You move.'"
-Captain America, Amazing Spider-Man 537

I added Vimeo:

To embed http://vimeo.com/82920243 just take the number after the "/" and:

[vimeo]82920243[/vimeo]

And the result is:

[vimeo]82920243[/vimeo]

By the way, we've been doing this kind of thing for awhile, but I thought I'd put it here in the instruction thread: you can start a YouTube video at any point by adding "&start=<number of seconds>" to the tag, like so:

[yt]UPS6eESbKGs&start=775[/yt]

(Note: 775 seconds is 12 minutes 55 seconds, so the video will start at 12:55.)

The result:

[yt]UPS6eESbKGs&start=775[/yt]

https://m.youtube.com/watch?v=czotHbjLPTs
Wanted anyone to watch this and give a response to it
"Government is the great fiction, through which everybody endeavors to live at the expense of everybody else." - Frederic Bastiat.

You're fucked Shane! [yt]O48qA2f8qJs[/yt]
"Government is the great fiction, through which everybody endeavors to live at the expense of everybody else." - Frederic Bastiat.