aboutsummaryrefslogtreecommitdiff
path: root/views/default/videolist/watch/metacafe.php
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2011-11-09 23:26:27 +0100
committerSem <sembrestels@riseup.net>2011-11-09 23:26:27 +0100
commit838229d4ef15607ae60c8fd3e3c37cd4849b376f (patch)
treef0dfdd64f4a3bb5f22072660fda723526f1aa602 /views/default/videolist/watch/metacafe.php
parentf2280654f8aaa33964e62c27a9cab6c96372ba57 (diff)
downloadelgg-838229d4ef15607ae60c8fd3e3c37cd4849b376f.tar.gz
elgg-838229d4ef15607ae60c8fd3e3c37cd4849b376f.tar.bz2
Metacafe and Giss.tv support.
Diffstat (limited to 'views/default/videolist/watch/metacafe.php')
-rw-r--r--views/default/videolist/watch/metacafe.php12
1 files changed, 2 insertions, 10 deletions
diff --git a/views/default/videolist/watch/metacafe.php b/views/default/videolist/watch/metacafe.php
index cfa5e02a4..ddf2b155e 100644
--- a/views/default/videolist/watch/metacafe.php
+++ b/views/default/videolist/watch/metacafe.php
@@ -1,15 +1,7 @@
<?php
-/* TODO
-$video_id = $vars['video_id'];
+$embedurl = $vars['entity']->embedurl;
$width = $vars['width'];
$height = $vars['height'];
-$path = explode("/", $videos->thumbnail);
-$path = array_reverse($path);
-$thumbnailArray = explode(".", $path[0]);
-$video_id = $video_id."/".$thumbnailArray[0].".swf";
-
-echo "<br />
-<embed src=\"http://www.metacafe.com/fplayer/".$video_id."\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" width=\"$width\" height=\"$height\" wmode=\"transparent\" name=\"Metacafe_".$video_id."\"></embed>";
-*/
+echo "<embed flashVars=\"playerVars=autoPlay=no\" src=\"$embedurl\" width=\"540\" height=\"304\" wmode=\"transparent\" allowFullScreen=\"true\" allowScriptAccess=\"always\" name=\"Metacafe_$video_id\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\"></embed>";