From: <var...@us...> - 2009-10-12 11:59:46
|
Revision: 7204 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7204&view=rev Author: vargenau Date: 2009-10-12 11:59:34 +0000 (Mon, 12 Oct 2009) Log Message: ----------- Specific code for Internet Explorer Modified Paths: -------------- trunk/lib/plugin/Video.php Modified: trunk/lib/plugin/Video.php =================================================================== --- trunk/lib/plugin/Video.php 2009-10-12 10:41:27 UTC (rev 7203) +++ trunk/lib/plugin/Video.php 2009-10-12 11:59:34 UTC (rev 7204) @@ -89,26 +89,60 @@ $html = HTML(); - $object = HTML::object(array('data' => SERVER_URL . $WikiTheme->_findData('flowplayer-3.1.3.swf'), - 'type' => "application/x-shockwave-flash", - 'width' => $width, - 'height' => $height)); - - $param = HTML::param(array('name' => "allowfullscreen", - 'value' => "true")); - $object->pushContent($param); - - $param = HTML::param(array('name' => "allowscriptaccess", - 'value' => "false")); - $object->pushContent($param); - - $value = "config={'clip':{'url':'" . $url . "','autoPlay':" . $autoplay . "}}"; - $param = HTML::param(array('name' => "flashvars", - 'value' => $value)); - $object->pushContent($param); + if (isBrowserIE()) { + $object = HTML::object(array('id' => 'flowplayer', + 'classid' => 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000', + 'width' => $width, + 'height' => $height)); - $html->pushContent($object); + $param = HTML::param(array('name' => 'movie', + 'value' => SERVER_URL . $WikiTheme->_findData('flowplayer-3.1.3.swf'))); + $object->pushContent($param); + $param = HTML::param(array('name' => "allowfullscreen", + 'value' => "true")); + $object->pushContent($param); + + $param = HTML::param(array('name' => "allowscriptaccess", + 'value' => "false")); + $object->pushContent($param); + + $flashvars = "config={'clip':{'url':'" . $url . "','autoPlay':" . $autoplay . "}}"; + + $param = HTML::param(array('name' => 'flashvars', + 'value' => $flashvars)); + $object->pushContent($param); + + $embed = HTML::embed(array('type' => 'application/x-shockwave-flash', + 'width' => $width, + 'height' => $height, + 'src' => SERVER_URL . $WikiTheme->_findData('flowplayer-3.1.3.swf'), + 'flashvars' => $flashvars)); + $object->pushContent($embed); + + $html->pushContent($object); + + } else { + $object = HTML::object(array('data' => SERVER_URL . $WikiTheme->_findData('flowplayer-3.1.3.swf'), + 'type' => "application/x-shockwave-flash", + 'width' => $width, + 'height' => $height)); + + $param = HTML::param(array('name' => "allowfullscreen", + 'value' => "true")); + $object->pushContent($param); + + $param = HTML::param(array('name' => "allowscriptaccess", + 'value' => "false")); + $object->pushContent($param); + + $value = "config={'clip':{'url':'" . $url . "','autoPlay':" . $autoplay . "}}"; + $param = HTML::param(array('name' => "flashvars", + 'value' => $value)); + $object->pushContent($param); + + $html->pushContent($object); + } return $html; } }; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-10-13 11:46:18
|
Revision: 7211 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7211&view=rev Author: vargenau Date: 2009-10-13 11:46:08 +0000 (Tue, 13 Oct 2009) Log Message: ----------- Fix syntax error Modified Paths: -------------- trunk/lib/plugin/Video.php Modified: trunk/lib/plugin/Video.php =================================================================== --- trunk/lib/plugin/Video.php 2009-10-13 08:32:12 UTC (rev 7210) +++ trunk/lib/plugin/Video.php 2009-10-13 11:46:08 UTC (rev 7211) @@ -64,8 +64,8 @@ 'height' => 320, 'url' => '', 'file' => '', - 'autoplay' => 'false' - 'image' => '', + 'autoplay' => 'false', + 'image' => '' ); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-10-20 18:26:17
|
Revision: 7227 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7227&view=rev Author: vargenau Date: 2009-10-20 18:26:02 +0000 (Tue, 20 Oct 2009) Log Message: ----------- Upgrade Flowplayer to 3.1.4 Modified Paths: -------------- trunk/lib/plugin/Video.php Modified: trunk/lib/plugin/Video.php =================================================================== --- trunk/lib/plugin/Video.php 2009-10-20 07:51:38 UTC (rev 7226) +++ trunk/lib/plugin/Video.php 2009-10-20 18:26:02 UTC (rev 7227) @@ -98,7 +98,7 @@ if (preg_match("/'/", $url)) return $this->error(fmt("Invalid argument %s", "url")); - $params = array("data" => SERVER_URL . $WikiTheme->_findData('flowplayer-3.1.3.swf'), + $params = array("data" => SERVER_URL . $WikiTheme->_findData('flowplayer-3.1.4.swf'), "type" => "application/x-shockwave-flash", "width" => $width, "height" => $height, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2020-12-28 21:02:15
|
Revision: 10210 http://sourceforge.net/p/phpwiki/code/10210 Author: vargenau Date: 2020-12-28 21:02:13 +0000 (Mon, 28 Dec 2020) Log Message: ----------- Video plugin: return error message in case of unknown video format Modified Paths: -------------- trunk/lib/plugin/Video.php Modified: trunk/lib/plugin/Video.php =================================================================== --- trunk/lib/plugin/Video.php 2020-12-28 18:58:08 UTC (rev 10209) +++ trunk/lib/plugin/Video.php 2020-12-28 21:02:13 UTC (rev 10210) @@ -102,6 +102,7 @@ } return $video; } - return HTML(); + return HTML::span(array('class' => 'error'), + _("Unknown video format")); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-02-23 18:00:49
|
Revision: 10273 http://sourceforge.net/p/phpwiki/code/10273 Author: vargenau Date: 2021-02-23 18:00:42 +0000 (Tue, 23 Feb 2021) Log Message: ----------- plugin Video: better test boolean argument "autoplay" Modified Paths: -------------- trunk/lib/plugin/Video.php Modified: trunk/lib/plugin/Video.php =================================================================== --- trunk/lib/plugin/Video.php 2021-02-23 17:56:45 UTC (rev 10272) +++ trunk/lib/plugin/Video.php 2021-02-23 18:00:42 UTC (rev 10273) @@ -80,6 +80,14 @@ $height = $args['height']; $autoplay = $args['autoplay']; + if (($autoplay == '0') || ($autoplay == 'false')) { + $autoplay = false; + } elseif (($autoplay == '1') || ($autoplay == 'true')) { + $autoplay = true; + } else { + return $this->error(sprintf(_("Argument '%s' must be a boolean"), "autoplay")); + } + if (!$url && !$file) { return $this->error(_("Both 'url' or 'file' parameters missing.")); } elseif ($url && $file) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |