Was this page helpful?

Display a video

    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

    URL of your MindTouch install (ex: http://www.mindtouch.com)
        

     

    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:

    1. 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) }} 
    
    ./Media1.JPG

    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) }}
    ./Media2.JPG

    To embed a Google video:

    {{ media("http://video.google.com/videoplay?docid=-1340903348805870454", 200, 200) }} 
    
    ./Media3.JPG

    To embed a VMix video:

    {{ media("http://media.vmixcore.com/core-flash/single_video_resizeable.swf?token=31e47ed5db74c015bfd22b77085e0338", 200, 200) }} 
    ./Media4.JPG

    To embed a Viddler video:

    {{ media("http://www.viddler.com/explore/Roebot/videos/1", 200, 200) }} 
    ./Media5.JPG

    To embed a Veoh video:

    {{  media("http://www.veoh.com/videos/v888853cRFBddHT", 200, 200)  }} 
    ./Media6.JPG

    To embed a Ustream video:

    {{ media("http://www.ustream.tv/lENOXuBsRKDm0aWZMk5iIU0MZvteE4Pm.usv", 200, 200) }}
    ./Media7.JPG

    Was this page helpful?
    Tag page
    Viewing 3 of 3 comments: view all
    I see how online content can be added, but what about embedding a video file that is stored locally on a PC? How can that file be uploaded and embedded into a Wiki page?
    Posted 11:33, 3 Jul 2009
    I figured out how to embed a video onto a page. Here's the process (in Windows) for those interested:
    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
    Posted 09:08, 24 Jul 2009
    is there any way to embed a list of videos into one media player? creating a basic menu o something?
    regards!
    Posted 08:53, 18 Sep 2009
    Viewing 3 of 3 comments: view all
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by