Video Share Plugin

vshare plugin by Andreas Gohr
Easily embed videos from various Video Sharing sites like YouTube or Vimeo.

Last updated on 2009-02-17. Provides Syntax.
Compatible with DokuWiki 2009-02-14.

Conflicts with dailymotion, google_video, googlemaps, youtube, youtubev2!
Similar to dailymotion, fabchannel, google_video, youtube, youtubev2.

Tagged with embed, slideshare, video, vimeo, youtube.

This plugin allows you to embed flash video players from various video sharing sites. New services can be added by just editing a config file.

Download and Install

Use this download for manual installation or use the link in the plugin manager.

Changes

Usage/Syntax

The basic syntax looks like this: {{videosite>videoid?size}}. Where videosite is one of the identifiers listed below, and videoid is the identifier of the video at the respective site. The size parameter is optional. You can either give it in the form widthxheight like 500×300, or use the keywords small, medium or large. The video can be aligned by adding spaces on the left or right inside the curly brackets (like in the image syntax).

Examples

Display a YouTube Video:

{{youtube>L-WM8YxwqEU}}

Show a larger player:

{{youtube>L-WM8YxwqEU?large}}

Right-align the player :

{{ youtube>L-WM8YxwqEU}}

Show a small, centered player:

{{ youtube>L-WM8YxwqEU?small }}

Supported Services

Identifier Website Notes
12seconds 12 Seconds
5min 5min
bambuser Bambuser The video ID is in the embed code, not in the URL
bliptv Blip.TV You get the correct id when choosing to embed for wordpress.com:
Finding code in Blip.tv
blogtv BlogTV
clipfish Clipfish
current Current
dailymotion Daily Motion
eyespot Eyespot
fabchannel Fabchannel Example IDs: fabchannel.concertoftheday.a, fabchannel.newinarchive.a, artist.polarkreis_18
googlevideo Google Video
gtrailers GameTrailers
jumpcut Jumpcut
justintv Justin.TV
metacafe MetaCafe
mogulus Mogulus
myspacetv MySpaceTV
rcmovie RCMovie
revver Revver
scivee Scivee.tv
seesmic Seesmic
sevenload Sevenload
slideshare Slideshare The ID is not in the URL. Choose “more share options” and use the doc parameter from the wordpress embed code:
Finding the code at Slideshare
stickam Stickam
superdeluxe SuperDeluxe
ustream Ustream.TV
veoh Veoh
vimeo Vimeo
youtube YouTube

Additional sites can be added to the sites.conf file in the plugin directory.

Discussion

This plugins is optimized for sharing video website. It could be interesting to add two aspects to this plugin

  1. display video from local DokuWiki
  2. make use of html5 <video> tag

The idea is to fallback to video sharing service, if the browser does not handle html5 video tag. Exemple

<video src="myLocalVideo" controls>
    <object width="xxx" height="xxx">
      <embed src="XXX" type="application/x-shockwave-flash" width="xxx" height="xxx"></embed>
     </object>
  </video>
It seems there is a problem for flashvar parameters. In the code there is :
list(,$vars) = explode('?',$url,2); 
// later
html_flashobject(..,$data['vars'],$data['vars']);


but html_flashobject is waiting for an array of string and $vars is only a string. I suppose you want to take all parameters (key=value) defined by the user in the url (after the ”?”) in sites.conf and map them with <param> tag. It will be a great idea because some flash players need these parameters.For example to enable full screen support on youtube the user could set the url : http://www.youtube.com/v/@VIDEO@&fs=1?allowFullScreen=true. Julien Noleau 2009/06/11 23:31

 
plugin/vshare.txt · Last modified: 2009/06/11 23:35 by 77.198.54.148
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsDarcsXRefTranslate