Follow these steps to install this script on your wiki.
http://scripts.mindtouch.com/quicktime.xmlRelated Links: DekiScript service, Extension Overview, DekiScript Overview, Extension Demos.
Embed videos created with QuickTime Pro. This script requires MindTouch Deki 1.8.3 or later.
Functions:
Embed video created with QuickTime Pro.
Parameters:
| Name | Type | Description |
| movie | uri | Uri to QuickTime movie. |
| poster | uri | Uri to QuickTime poster. |
| width | num | Width of QuickTime video. |
| height | num | Height of QuikTime video. |
| label | str | (optional) Label on poster. (default: "Click to Play") |
<extension>
<title>Apple QuickTime Extension</title>
<label>QuickTime</label>
<uri.help>http://wiki.developer.mindtouch.com/MindTouch_Deki/Extensions/QuickTime</uri.help>
<description>Embed videos created with QuickTime Pro.</description>
<function>
<name>quicktime</name>
<description>Embed video created with QuickTime Pro.</description>
<param name="movie" type="uri">Uri to QuickTime movie.</param>
<param name="poster" type="uri">Uri to QuickTime poster.</param>
<param name="width" type="num">Width of QuickTime video.</param>
<param name="height" type="num">Height of QuikTime video.</param>
<param name="label" type="str" optional="true">Label on poster. (default: "Click to Play")</param>
<return>
<html xmlns:eval="http://mindtouch.com/2007/dekiscript">
<head>
<script src="http://www.apple.com/library/quicktime/scripts/ac_quicktime.js" language="JavaScript" type="text/javascript"></script>
<script src="http://www.apple.com/library/quicktime/scripts/qtp_library.js" language="JavaScript" type="text/javascript"></script>
<link href="http://www.apple.com/library/quicktime/stylesheets/qtp_library.css" rel="StyleSheet" type="text/css" />
</head>
<body>
<script type="text/javascript">
QT_WritePoster_XHTML(
<eval:js>args.label ?? 'Click to Play'</eval:js>,
<eval:js>args.poster</eval:js>,
<eval:js>args.movie</eval:js>,
<eval:js>string.cast(args.width)</eval:js>,
<eval:js>string.cast(args.height)</eval:js>,
'',
'controller', 'true',
'autoplay', 'true',
'bgcolor', 'black',
'scale', 'aspect');
</script>
<noscript>
<object eval:width="args.width" eval:height="args.height" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="src" eval:value="args.poster" />
<param name="href" eval:value="args.movie" />
<param name="target" value="myself" />
<param name="controller" value="false" />
<param name="autoplay" value="false" />
<param name="scale" value="aspect" />
<embed eval:width="args.width" eval:height="args.height" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"
eval:src="args.poster"
eval:href="args.movie"
target="myself"
controller="false"
autoplay="false"
scale="aspect">
</embed>
</object>
</noscript>
</body>
</html>
</return>
</function>
</extension>