diff options
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/videolist/watch/gisstv.php | 9 | ||||
-rw-r--r-- | views/default/videolist/watch/metacafe.php | 12 |
2 files changed, 11 insertions, 10 deletions
diff --git a/views/default/videolist/watch/gisstv.php b/views/default/videolist/watch/gisstv.php new file mode 100644 index 000000000..6fdecd1ce --- /dev/null +++ b/views/default/videolist/watch/gisstv.php @@ -0,0 +1,9 @@ +<?php + +$video_id = $vars['entity']->video_id; +$width = $vars['width']; +$height = $vars['height']; + +echo "<video width=\"$width\" height=\"$height\" controls=\"\" autoplay=\"\" tabindex=\"0\"> + <source type=\"video/ogg\" src=\"http://giss.tv/dmmdb//contents/$video_id\"></source> +</video>"; 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>"; |