| Vendor | MindTouch |
| Type | Native |
| 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 |
Install Extension
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) }}
or:
{{ media("http://www.youtube.com/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) }} | |  |
1. Use the Attach file/image tool at the bottom of the page to be able to browse your computer to attach the file.
2. Once the file is attached, right click on it and select Properties from the pop-up menu. You should be on the General tab. Find the Address property and click and highlight the URL (http:// ....) then right-click and select Copy or use Ctrl-C.
3. Click Edit the Page at the top of the page. Once in editting mode, click on the Insert Video button on the toolbar. In the dialog box asking for a URL, either right-click and select Paste or use Ctrl-V to paste in the URL you copied in step 2.
@steveb, this is a pretty complicated process to do something that should be common and straightforward. Any chance you guys can come up with a tool that simplifies this? Ideally, you would edit the page; click a button on the the toolbar; the browse form would come up; and it would attach the file to the page as well as insert the media script with the appropriate URL. Thanks. edited 09:10, 24 Jul 2009
regards!