Follow these steps to install this script on your wiki.
http://scripts.mindtouch.com/flowplayer.xmlRelated Links: DekiScript service, Extension Overview, DekiScript Overview, Extension Demos.
This extension allows to view FLV media in your wiki. This script requires MindTouch Deki 1.8.3 or later.
Functions:
Embed FLV Player.
Parameters:
| Name | Type | Description |
| source | uri | Media uri. |
| width | num | (optional) Player width. (default: 425) |
| height | num | (optional) Player height. (default: 350) |
| start | bool | (optional) Auto-start player. (default: false) |
| skin | str | (optional) Player skin. (one of "classic", "light", or "dark"; default: "classic") |
<extension>
<title>MindTouch FlowPlayer Extension</title>
<label>FlowPlayer</label>
<copyright>Copyright (c) 2008 MindTouch, Inc.</copyright>
<description>This extension allows to view FLV media in your wiki.</description>
<uri.help>http://wiki.developer.mindtouch.com/MindTouch_Deki/Extensions/FlowPlayer</uri.help>
<uri.logo>http://scripts.mindtouch.com/logos/flowplayer-logo.png</uri.logo>
<function>
<name>flowplayer</name>
<description>Embed FLV Player.</description>
<param name="source" type="uri">Media uri.</param>
<param name="width" type="num" optional="true">Player width. (default: 425)</param>
<param name="height" type="num" optional="true">Player height. (default: 350)</param>
<param name="start" type="bool" optional="true">Auto-start player. (default: false)</param>
<param name="skin" type="str" optional="true">Player skin. (one of "classic", "light", or "dark"; default: "classic")</param>
<return>
<html xmlns:eval="http://mindtouch.com/2007/dekiscript">
<head><script type="text/javascript" src="http://scripts.mindtouch.com/res/flashembed.min.js" /></head>
<body><div eval:id="@id" /></body>
<tail>
<script>
flashembed(
<eval:js value="@id" />, {
src: <eval:if test="args.skin">
<eval:if test="string.compare(args.skin, 'classic', true) == 0">'http://scripts.mindtouch.com/res/FlowPlayerClassic.swf'</eval:if>
<eval:elseif test="string.compare(args.skin, 'light', true) == 0">'http://scripts.mindtouch.com/res/FlowPlayerLight.swf'</eval:elseif>
<eval:elseif test="string.compare(args.skin, 'dark', true) == 0">'http://scripts.mindtouch.com/res/FlowPlayerDark.swf'</eval:elseif>
<eval:else>'http://scripts.mindtouch.com/res/FlowPlayerClassic.swf'</eval:else>
</eval:if>
<eval:else>'http://scripts.mindtouch.com/res/FlowPlayerClassic.swf'</eval:else>,
width: <eval:js value="web.size(args.width ?? 425)" />,
height: <eval:js value="web.size(args.height ?? 350)" />
}, {
config: {
videoFile: <eval:js value="args.source" />,
autoPlay: <eval:js value="args.start ?? false" />
}
}
);
</script>
</tail>
</html>
</return>
</function>
</extension>
{config: {videoFile:
<eval:js value="source"/>
,autoPlay:
<eval:js value="start"/>
Have a nice weekend. edited 21:27, 27 Jun 2008