blob: b445f4575ef7461ffb893b7f701c0ffe86346a9e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<?php
/**
* ECML Live Video support
*
* @package ECML
*/
$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[0];
// 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>
";
}
|