YUI Media Player

Introduction

YUI Media Player is a javascript/flash application which recognizes all links to mp3 files in your web page and embeds a player into the page.

  

Installation

Follow these steps to install this script on your wiki.

  1. Go to Service managmenent inside the Control Panel.
  2. Under Add Service, click Local and select type Extension.
  3. Enter a descriptive name and the SID: sid://mindtouch.com/2007/12/dekiscript
  4. Add "manifest" to the config section with value set to http://scripts.mindtouch.com/yuimediaplayer.xml
  5. Add extra configuration values as listed below under Configuration (If Configuration is not listed below, ignore this step.)
  6. Click on add service.

Related Links: DekiScript service, Extension Overview, DekiScript Overview, Extension Demos.


Overview

This script requires MindTouch Deki 1.8.3 or later.

Functions:

  1. yui.mediaplayer

yui.mediaplayer() : xml

Embed YUI media player


Source Code

<extension>
  <title>YUI Media Player</title>
  <label>YUI Media Player</label>
  <uri.help>http://wiki.developer.mindtouch.com/MindTouch_Deki/Extensions/YUI_Media_Player</uri.help>
  <namespace>yui</namespace>
  
  <function>
    <name>mediaplayer</name>
    <description>Embed YUI media player</description>
    <return>
      <html>
        <head>
          <script type="text/javascript" src="http://mediaplayer.yahoo.com/js" />
        </head>
      </html>
    </return>
  </function>
</extension>

Tag page

Files 1

FileSizeDateAttached by 
 yui test.mp3
No description
19.42 kB17:30, 17 Jul 2008coreygActions
Viewing 1 of 1 comments: view all
This doesn't work. I think the SID value is wrong?
Posted 14:39, 7 Aug 2008
Viewing 1 of 1 comments: view all
You must login to post a comment.
Powered by MindTouch Deki v.8.08