This extension contains functions for embedding various media types. Related Links: Extension Overview, DekiScript Overview, Extension Demos.
Assembly: mindtouch.deki.services
SID: http://services.mindtouch.com/deki/draft/2007/06/media
License: none
This service requires Deki Wiki 1.8.2 or later.
To enable this extension, follow these steps:
- Go to Service management in the Control Panel of your wiki.
- Under Add Service, click on Local, and select type Extension.
- Enter a description and the extension SID: http://services.mindtouch.com/deki/draft/2007/06/media
- Add any additional configuration settings that are required by the extension (see below).
- Click on add service.
Functions:
- media
media(source : uri, width : num, height : num, start : bool) : xml
Embed a media source (audio/video).
Parameters:
| Name | Type | Description |
source
| uri
| Media URI.
|
width
| num
| Optional. Media width (default: 425) |
height
| num
| Optional. Media height (default: 350) |
start
| bool
| Optional. Auto-start media on load (default: false) |
Samples:
| Output |
| To embed a local video: {{ media("http://wiki.opengarden.org/@api/deki/files/1191", 200, 200) }}
To embed a local video without explicitly defining the entire path: {{ media(site.api.."/files/1191/=myvidio.wmv", 200, 200) }}
| |  |
| To embed a YouTube video: {{ media("http://www.youtube.com/watch?v=XxSjNkkqyoo", 200, 200) }} | |  |
| To embed a Google video:
{{ media("http://video.google.com/videoplay?docid=-1340903348805870454", 200, 200) }}
| |
|
| To embed a VMix video:
{{ media("http://media.vmixcore.com/core-flash/single_video_resizeable.swf?token=31e47ed5db74c015bfd22b77085e0338", 200, 200) }} | |  |
| To embed a Viddler video:
{{ media("http://www.viddler.com/explore/Roebot/videos/1", 200, 200) }} | |
|
| To embed a Veoh video:
{{ media("http://www.veoh.com/videos/v888853cRFBddHT", 200, 200) }} | |  |
| To embed a Ustream video:
{{ media("http://www.ustream.tv/lENOXuBsRKDm0aWZMk5iIU0MZvteE4Pm.usv", 200, 200) }} | |
|