How?Add Video

From OneSci
Jump to: navigation, search

Contents

Adding Video from Popular Video Services

The EmbedVideo extension allows users to embed videos from youtube and other popular video sources using this code:

{{#ev:youtube|ysDGX6bOgAw|200}}

You can find that code in the middle pipe at the end of the url of the youtube page containing the video you want to use. File:Youtubecode.png

Usage

The EmbedVideo parser function expects to be called in either of the following ways:

  • {{#ev:service|id}} -or-
  • {{#ev:service|id|width}}

Where:

  • service is the name of a video sharing service.
  • id is the id of the video to include
  • width (optional) is the width in pixels of the viewing area (height will be determined automatically)

For example, to include the famous "evolution of dance" YouTube video, you'd enter:

{{#ev:youtube|dMH0bHeiRNg}}

And if you wanted scaled down to thumbnail size, you could use:

{{#ev:youtube|dMH0bHeiRNg|100}}

Supported Services

EmbedVideo currently supports the following services:

Adding Video using HTML (Admins Only)

With admin status, you can take advantage of html or java to embed a video. The <addhtml> tag can only be utilized by setting the page status to protected. It must be protected because a badguy might try to use a clever java script to hax the site.

Usage

There are just 2 easy steps.

Let's say you've just finished watching a breathtaking neuroscience video; and as you sit there and begin to transude from inside your head back to reality, the video has left you with something like this:

File:Embedonyoursite.png

1. Copy the embed code to your clipboard.

2. Put <addhtml> before the code, and </addhtml> after the code. Like this:

<addhtml>
<video's code example>
</addhtml>

The result:

Personal tools