'tags' => 'tags',
'access_id' => 'access',
));
-
- elgg_set_config('videolist_dimensions', array(
- 'width' => 600,
- 'height' => 400,
- ));
// add to groups
add_group_tool_option('videolist', elgg_echo('groups:enablevideolist'), true);
if ($full && !elgg_in_context('gallery')) {
- $dimensions = elgg_get_config('videolist_dimensions');
- $content = elgg_view("videolist/watch", array(
- 'entity' => $entity,
- 'width' => (int) $dimensions['width'],
- 'height' => (int) $dimensions['height'],
- ));
+ $content = elgg_view("videolist/watch", $vars);
$content = "<div class=\"videolist-watch\">$content</div>";
$params = array(
?>
.videolist-watch {
- margin-top: 40px;
- margin-left: 20px;
+ margin-top: 40px;
+ position: relative;
+ padding-bottom: 56.25%;
+ padding-top: 30px;
+ height: 0;
}
+
+.videolist-watch iframe,
+.videolist-watch object,
+.videolist-watch embed {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+}
\ No newline at end of file
<?php
$embedurl = $vars['entity']->embedurl;
-$width = $vars['width'];
-$height = $vars['height'];
-echo "<iframe src=\"$embedurl\" width=\"$width\" height=\"$height\" frameborder=\"0\" allowfullscreen></iframe>";
+echo "<iframe src=\"$embedurl\" frameborder=\"0\" allowfullscreen></iframe>";
<?php
$video_id = $vars['entity']->video_id;
-$width = $vars['width'];
-$height = $vars['height'];
-echo "<video width=\"$width\" height=\"$height\" controls=\"\" tabindex=\"0\">
+echo "<video controls=\"\" tabindex=\"0\">
<source type=\"video/ogg\" src=\"http://giss.tv/dmmdb//contents/$video_id\"></source>
</video>";
<?php
$embedurl = $vars['entity']->embedurl;
-$width = $vars['width'];
-$height = $vars['height'];
-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>";
+echo "<embed flashVars=\"playerVars=autoPlay=no\" src=\"$embedurl\" wmode=\"transparent\" allowFullScreen=\"true\" allowScriptAccess=\"always\" name=\"Metacafe_$video_id\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\"></embed>";
<?php
$video_id = $vars['entity']->video_id;
-$width = $vars['width'];
-$height = $vars['height'];
-echo "<iframe src=\"http://player.vimeo.com/video/$video_id?byline=0\" width=\"$width\" height=\"$height\" frameborder=\"0\" webkitAllowFullScreen allowFullScreen></iframe>";
+echo "<iframe src=\"http://player.vimeo.com/video/$video_id?byline=0\" frameborder=\"0\" webkitAllowFullScreen allowFullScreen></iframe>";
<?php
$video_id = $vars['entity']->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>";
+echo "<iframe src=\"https://www.youtube-nocookie.com/embed/$video_id\" frameborder=\"0\" allowfullscreen></iframe>";