Help:Video: Difference between revisions

From EGM Heritage

(Created page with "==Usage== The EmbedVideo parser function expects to be called in any of the following ways:* <tt><nowiki>{{#ev:service|id}}</nowiki></tt> * <tt><nowiki>{{#ev:service|id|width}...")
 
Line 14: Line 14:
* <tt>desc</tt> (optional) is a short description to display beneath the video when it is aligned
* <tt>desc</tt> (optional) is a short description to display beneath the video when it is aligned


For example, to include the famous "evolution of dance" YouTube video, you'd enter:<pre>{{#ev:youtube|dMH0bHeiRNg}}</pre>And if you wanted scaled down to thumbnail size, on the right with a short description, you could use:<pre>{{#ev:youtube|dMH0bHeiRNg|100|right|This is an embedded video!}}</pre>==Supported Services==
For example, to include the famous "evolution of dance" YouTube video, you'd enter:<pre>{{#ev:youtube|dMH0bHeiRNg}}</pre>And if you wanted scaled down to thumbnail size, on the right with a short description, you could use:<pre>{{#ev:youtube|dMH0bHeiRNg|100|right|This is an embedded video!}}</pre>  


This site supports embedding video content from the following services:
==Supported Services== 
{| class="wikitable"|-! Site ! Service Name|-! [http://www.dailymotion.com/ Dailymotion] | <tt>dailymotion</tt>|-! Div Share| <tt>divshare</tt>|-! [http://edutopia.org Edutopia] | <tt>edutopia</tt>|-! [http://www.funnyordie.com/ FunnyOrDie] | <tt>funnyordie</tt>|-! [http://video.google.com/ Google Video] | <tt>googlevideo</tt>|-! [http://interia.pl/ Interia] | <tt>interia</tt> or <tt>interiavideo</tt>|-! [http://sevenload.com/ sevenload] | <tt>sevenload</tt>|-! [http://teachertube.com TeacherTube] | <tt>teachertube</tt>|-! [http://www.youtube.com/ YouTube] | <tt>youtube</tt> and <tt>youtubehd</tt>|-! [http://www.vimeo.com Vimeo]| <tt>vimeo</tt>|}==Enabling full-screen mode for youtube==Note: This modification is described by various commenters in the Discussion tab. 1. Open the EmbedVideo.hooks.php file and change the following:* line '''157''' from :            " wmode=\"transparent\" width=\"{$width}\" height=\"{$height}\">" .: to :            " wmode=\"transparent\" allowfullscreen=\"true\" width=\"{$width}\" height=\"{$height}\">" .* line '''206''' from :            " wmode=\"transparent\" width=\"{$width}\" height=\"{$height}\"></embed>" .: to :            " wmode=\"transparent\" allowfullscreen=\"true\" width=\"{$width}\" height=\"{$height}\"></embed>" .2. Open EmbedVideo.Services.php and add add &fs=1 to both youtube URL values. For example, change http://www.youtube.com/v/$1 to http://www.youtube.com/v/$1&fs=1To enable HD by default, add &hd=1 after the &fs=1.
 
As of version 1.0, EmbedVideo supports embedding video content from the following services:
{| class="wikitable"|-! Site ! Service Name|-! [http://www.dailymotion.com/ Dailymotion] | <tt>dailymotion</tt>|-! Div Share| <tt>divshare</tt>|-! [http://edutopia.org Edutopia] | <tt>edutopia</tt>|-! [http://www.funnyordie.com/ FunnyOrDie] | <tt>funnyordie</tt>|-! [http://video.google.com/ Google Video] | <tt>googlevideo</tt>|-! [http://interia.pl/ Interia] | <tt>interia</tt> or <tt>interiavideo</tt>|-! [http://sevenload.com/ sevenload] | <tt>sevenload</tt>|-! [http://teachertube.com TeacherTube] | <tt>teachertube</tt>|-! [http://www.youtube.com/ YouTube] | <tt>youtube</tt> and <tt>youtubehd</tt>|-! [http://www.vimeo.com Vimeo]| <tt>vimeo</tt>|}

Revision as of 18:01, 9 September 2013

Usage

The EmbedVideo parser function expects to be called in any of the following ways:* {{#ev:service|id}}

  • {{#ev:service|id|width}}
  • {{#ev:service|id|width|align}}* {{#ev:service|id|width|align|desc}}
  • {{#evp:service|id|desc}}
  • {{#evp:service|id|desc|align}}
  • {{#evp:service|id|desc|align|width}}

Where:

  • service is the name of a video sharing service (See "service name" in the list below)
  • 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)
  • align (optional) is an alignment (float) attribute. May be "left" or "right".
  • desc (optional) is a short description to display beneath the video when it is aligned

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, on the right with a short description, you could use:

{{#ev:youtube|dMH0bHeiRNg|100|right|This is an embedded video!}}

Supported Services

As of version 1.0, EmbedVideo supports embedding video content from the following services: