Table of Contents

Video Share Plugin

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

Last updated on 2008-10-19. Provides Syntax.
Compatible with DokuWiki 2007-06-26+ (maybe older, too).

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

Tagged with embed, video, 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
googlevideo Google Video
gtrailers GameTrailers
jumpcut Jumpcut
justintv Justin.TV
metacafe MetaCafe
mogulus Mogulus
myspacetv MySpaceTV
rcmovie RCMovie
revver Revver
seesmic Seesmic
sevenload Sevenload
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.

Bug report

alignement does not work correct for rcmovie

I tried your plugin with a video from rcmovie. This works fine as long as you do not center or aligne the video right.

can not reproduce this. Works fine here. — Andreas Gohr 2008/11/28 19:00

Player doesn't always show up in Firefox 3 for mac

I have this plug-in installed and many times when using a local flv file the player does not show up. If you do a reload of the browser several times it will then sometimes show up.

local flv files? This plugin does not support local files. It only works with the listed video sharing sites. — Andreas Gohr 2008/11/28 18:57

Suggestion

Using the <embed> tag breaks validation at least in XHTML documents. If you use the following code in syntax.php the output still validates:

$R->doc .= sprintf('<object type="application/x-shockwave-flash" width="%d" height="%d" data="%s">
                           	<param name="movie" value="%s" />
				<param name="wmode" value="transparent" />
				<param name="FlashVars" value="%s" />
				</object>',                        
                            $data['width'],
                            $data['height'],
                            $data['flash'],
                            $data['vars'],
                            $data['flash'],
                            $data['width'],
                            $data['height'],
                            $data['vars']);

Tested at least with YouTube. — Gunther Pilz 2008/11/28 12:49

embed is needed for certain older browsers AFAIKAndreas Gohr 2008/11/28 18:57