QuickTime Action
For quickly embedding QuickTime movies in Wikka. Note that this also requires a JavaScript utility script, as per Apple's official instructions. Please download it here, the official Apple version is buggy.
<?php
/*
"quicktime" action
(cc) Filipp Lepalaan <filipp@mac.com>
Parameters:
url - url of quicktime movie
ref - url of ref movie
width
height
class - CSS class name
*/
$id = 'qt_' . time ();
if (is_array ($vars))
{
foreach ($vars as $param => $value)
{
if ($param == 'url') { $url = $this->cleanUrl (trim ($value)); }
if ($param == 'ref') { $ref = $this->htmlspecialchars_ent ($value); }
if ($param == 'width') { $width = $this->htmlspecialchars_ent ($value); }
if ($param == 'height') { $height = $this->htmlspecialchars_ent ($value); }
if ($param == 'class') { $class = $this->htmlspecialchars_ent ($value); }
}
}
print ("
<div class='$class'>
<script type='text/javascript' language='JavaScript'>
QT_WriteOBJECT (
'$url', $width, $height+15, '',
'controller', 'true',
'autoplay', 'false',
'id', '$id');
</script>
</div>\n");
?>
/*
"quicktime" action
(cc) Filipp Lepalaan <filipp@mac.com>
Parameters:
url - url of quicktime movie
ref - url of ref movie
width
height
class - CSS class name
*/
$id = 'qt_' . time ();
if (is_array ($vars))
{
foreach ($vars as $param => $value)
{
if ($param == 'url') { $url = $this->cleanUrl (trim ($value)); }
if ($param == 'ref') { $ref = $this->htmlspecialchars_ent ($value); }
if ($param == 'width') { $width = $this->htmlspecialchars_ent ($value); }
if ($param == 'height') { $height = $this->htmlspecialchars_ent ($value); }
if ($param == 'class') { $class = $this->htmlspecialchars_ent ($value); }
}
}
print ("
<div class='$class'>
<script type='text/javascript' language='JavaScript'>
QT_WriteOBJECT (
'$url', $width, $height+15, '',
'controller', 'true',
'autoplay', 'false',
'id', '$id');
</script>
</div>\n");
?>
CategoryUserContributions