cogIncludes a YouTube video in an iFrame
TypeXAR
Category
Developed by

xwiki:XWiki.JorisDirks, Vincent Massol

Rating
0 Votes
LicenseGNU General Public License 3

Installable with the Extension Manager

Description

Includes a YouTube video in an iFrame, based on video ID.

Might be useful if you need HTML5 support, else the Video Macro is easier to use and supports multiple video formats.

Usage

Get the URL for a YouTube video, of the type: http://www.youtube.com/watch?v=####

Copy the video ID number (following v= in the example above, indicated with hashes) and copy it in the following code:

{{youtube vID="####" /}}

Example

The video http://www.youtube.com/watch?v=1brKauo2HM8 has vID: 1brKauo2HM8, so the code would become:

{{youtube vID="1brKauo2HM8" /}}

If you wish to center the video on the page you'd use for example:

(% align="center" %)(((
{{youtube vID="1brKauo2HM8" /}}
)))

Prerequisites & Installation Instructions

We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager). Note that installing Extensions when being offline is currently not supported and you'd need to use some complex manual method.

You can also use the following manual method, which is useful if this extension cannot be installed with the Extension Manager or if you're using an old version of XWiki that doesn't have the Extension Manager:

  1. Log in the wiki with a user having Administration rights
  2. Go to the Administration page and select the Import category
  3. Follow the on-screen instructions to upload the downloaded XAR
  4. Click on the uploaded XAR and follow the instructions
  5. You'll also need to install all dependent Extensions that are not already installed in your wiki

Navigate to the Macro.YouTubeMacro page to verify if the Macro has been correctly installed.

Release Notes

v1.1

Fixed a lot of small details:

  • Moved Macro to the Macro space
  • Remove attached gif that had nothing to do with the macro
  • Translated macro parameter description that was in Dutch
  • Removed empty extra XObjects
  • Removed tag
  • Set Macro to have wiki visibility by default instead of Global
  • Improved description of macro and example
    

Get Connected