| Vendor | MindTouch |
| Type | Extension |
| Categories | Media |
| Requires | MindTouch 1.8.2 or later |
| OS Restriction | None |
| Status | Stable |
| License | Free/Open Source |
| SID (service id) | sid://mindtouch.com/2007/06/media |
| Assembly | mindtouch.deki.services |
Description
This extension contains functions for embedding various media types.
See also How to add an extension, Using the Extension Dialog, Learn about DekiScript, Extensions Directory.
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) }} | | |