aboutsummaryrefslogtreecommitdiff
path: root/views/default/videolist/watch
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/videolist/watch')
-rw-r--r--views/default/videolist/watch/metacafe.php15
-rw-r--r--views/default/videolist/watch/vimeo.php7
-rw-r--r--views/default/videolist/watch/youtube.php7
3 files changed, 29 insertions, 0 deletions
diff --git a/views/default/videolist/watch/metacafe.php b/views/default/videolist/watch/metacafe.php
new file mode 100644
index 000000000..cfa5e02a4
--- /dev/null
+++ b/views/default/videolist/watch/metacafe.php
@@ -0,0 +1,15 @@
+<?php
+
+/* TODO
+$video_id = $vars['video_id'];
+$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>";
+*/
diff --git a/views/default/videolist/watch/vimeo.php b/views/default/videolist/watch/vimeo.php
new file mode 100644
index 000000000..caf34c1f4
--- /dev/null
+++ b/views/default/videolist/watch/vimeo.php
@@ -0,0 +1,7 @@
+<?php
+
+$video_id = $vars['video_id'];
+$width = $vars['width'];
+$height = $vars['height'];
+
+echo "<iframe src=\"http://player.vimeo.com/video/$video_id?byline=0&amp;color=e11531&amp;autoplay=1\" width=\"$width\" height=\"$height\" frameborder=\"0\" webkitAllowFullScreen allowFullScreen></iframe>";
diff --git a/views/default/videolist/watch/youtube.php b/views/default/videolist/watch/youtube.php
new file mode 100644
index 000000000..4b62aabbc
--- /dev/null
+++ b/views/default/videolist/watch/youtube.php
@@ -0,0 +1,7 @@
+<?php
+
+$video_id = $vars['video_id'];
+$width = $vars['width'];
+$height = $vars['height'];
+
+echo "<iframe width=\"$width\" height=\"$height\" src=\"https://www.youtube-nocookie.com/embed/$video_id\" frameborder=\"0\" allowfullscreen></iframe>";