diff options
Diffstat (limited to 'mod/ecml/views/default/ecml/keywords/livevideo.php')
-rw-r--r-- | mod/ecml/views/default/ecml/keywords/livevideo.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/mod/ecml/views/default/ecml/keywords/livevideo.php b/mod/ecml/views/default/ecml/keywords/livevideo.php new file mode 100644 index 000000000..b067b1ab6 --- /dev/null +++ b/mod/ecml/views/default/ecml/keywords/livevideo.php @@ -0,0 +1,28 @@ +<?php +/** + * ECML Live Video support + * + * @package ECML + * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 + * @author Curverider Ltd + * @copyright Curverider Ltd 2008-2010 + * @link http://elgg.org/ + */ + +$base_url = 'http://www.livevideo.com/video/'; +$src = (isset($vars['src'])) ? str_replace($base_url, '', $vars['src']) : FALSE; +$width = (isset($vars['width'])) ? $vars['width'] : 445; +$height = (isset($vars['height'])) ? $vars['height'] : 369; + +if ($src) { + $parts = explode('/', $src); + $vid = $parts[1]; + // it automatically autostarts, but not passing it causes control issues + $url = "http://www.livevideo.com/flvplayer/embed/$vid&autoStart=1"; + + echo " + <p> + <embed src=\"$url\" type=\"application/x-shockwave-flash\" quality=\"high\" WIDTH=\"$width\" HEIGHT=\"$height\" wmode=\"transparent\"></embed> + </p> +"; +}
\ No newline at end of file |