Embedding a YouTube Video

There are two method for embedding YouTube Video within a page:

  1. a more difficult way with the added benefit of not requiring an activation click in Internet Explorer
  2. an easier way with the downside of Internet Explorer requiring its activation click for Flash content

1. The Harder Way

wiki code

the result



[swf:http://www.youtube.com/v/ORtcS7DhI5A | 425 | 350 |8]

If you don't have Flash 8 or better, you need to get it to 
view the embedded video on this page.

It's also possible that you have Javascript turned off, which 
would also prevent this page from working.

[/swf]

If you don't have Flash 8 or better, you need to get it to view the embedded video on this page.

It's also possible that you have Javascript turned off, which would also prevent this page from working.

This is simply a variation on the normal technique for swf embedding. A similar technique can be used for Youtube videos.

Getting the URL for a YouTube Video

To get the correct URL for the actual YouTube swf, observe that YouTube video URLs are variations are the page URLs that host the videos:

page url http://www.youtube.com/watch?v=ORtcS7DhI5A
swf url http://www.youtube.com/v/ORtcS7DhI5A

2. The Easier Way

For an easier time of it, simply retrieve the "embed HTML" from your video's page on http://www.youtube.com and use it within an [html]....[/html] block.

wiki code

the result



Blah, blah, blah.

[html]

<object width="425" height="355"><param name="movie"
 value="http://www.youtube.com/v/qdxbIRkITBk&rel=1"></param>
<param name="wmode" value="transparent"></param>
<embed src="http://www.youtube.com/v/qdxbIRkITBk&rel=1"
 type="application/x-shockwave-flash" wmode="transparent" 
width="425" height="355"></embed></object>

[/html]

More blah, blah, blah.

Blah, blah, blah.

More blah, blah, blah.

Notes

  • Naturally, the "blah, blah, blah" in the example is not required. It's merely there to illustrate that you can have any normal wiki content before and after the [html]...[/html] construct.

  • You can use a very similar method to embed Google videos and Picasaweb Slideshows.