The question is, how does it work? Well, at heart, it works like this:
- Code: Select all
[flash=x,y]http://www.url.com/video.swf[/flash]
Where x is the width of the object in pixels, y is the height, and the url is the link to a .swf file. I think .flv files will also work, although I haven't tested this out.
Now, most of you aren't going to be using this for embedding .swfs and the like, so we'll cover what YOU really care about - the YouTube functionality. YouTube videos are of the .flv format and are distributed using Flash. Hence, we can use this feature to embed YouTube videos.
Now, you'll notice that if you bung in a standard link, it isn't going to work. Well, there are two ways to get that link to work. The first is to extract the appropriate link from the embed code; however, it's best to assume that you're technologically not too smart, so we won't cover that. The second way is to use the following code.
- Code: Select all
[flash=425,344]http://www.youtube.com/v/d4tsh17y4h[/flash]
Now, I've put in the default YouTube size video there - that being, 425 by 344. Other sizes YouTube offer as default are 320x265, 480x385 and 640x505, although technically you can size it to any size. We'd rather you put 640x505 at maximum, though. Other sizes you might find useful are 191x150 (to make it big enough for a signature), or 425x25 (this essentially cuts out the video from view and leaves just the audio)
In the YouTube URL, there should be a "v=" bit in there something, and then a jumble of numbers and letters. You need to copy and paste that jumble of letters (ensuring that you remove anything after a & sign, as there may be one there depending on where you've linked it from; it's not vital to my knowledge, but it helps) and replace the bit after the /v/ with that. Once you've done that, voila, you have a working link.
For example, here is a video I've taken from YouTube, with the video hidden from view.
- Code: Select all
[flash=425,25]http://www.youtube.com/v/HSaqvhvnAgI[/flash]
Voila.