How to Embed a YouTube Video

Searching Help

Syntax

Use the following for embedding a YouTube video onto your wiki page:

 {video:youtube|<YouTube Video ID>}

Extracting the video id

The YouTube Video ID can be retrieved from the YouTube URL or from the "Embed" code by extracting the string between v= and & or end of the url:

Source type Source example Extracted ID
URL http:// youtube.com/watch?v=tpR_6y-OoRcP tpR_6y-OoRc
URL http:// www.youtube.com/watch?v=tpR_6y-OoRc&eurl=http%3A%2F%2Fwikis%2Esun%2Ecom%2Fdisplay%2FHelp%2FHow%2Bto%2BEmbed%2Ba%2BYouTube%2BVideo tpR_6y-OoRc
the "Embed" code <object width="425" height="353"><param name="movie" value="http://www.youtube.com/v/tpR_6y-OoRc"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/tpR_6y-OoRc" type="application/x-shockwave-flash" wmode="transparent" width="425" height="353"></embed></object> tpR_6y-OoRc

Example

For YouTube video with v id tpR_6y-OoRc use this simple code:

 {video:youtube|tpR_6y-OoRc}

The result:



See also:

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Sign up or Log in to add a comment or watch this page.


The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact