From: Ian Denhardt Date: Mon, 28 Mar 2011 11:59:07 +0000 (-0400) Subject: show video controls by default, and fit the video inside its container. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=58254aa4970392b5d9eab36974fe89c50227c84f;p=quix0rs-gnu-social.git show video controls by default, and fit the video inside its container. --- diff --git a/plugins/GNUsocialVideo/GNUsocialVideoPlugin.php b/plugins/GNUsocialVideo/GNUsocialVideoPlugin.php index 76053f29f3..850761625e 100644 --- a/plugins/GNUsocialVideo/GNUsocialVideoPlugin.php +++ b/plugins/GNUsocialVideo/GNUsocialVideoPlugin.php @@ -137,7 +137,9 @@ class GNUsocialVideoPlugin extends MicroAppPlugin { $vid = Video::getByNotice($notice); if ($vid) { - $out->element('video', array('src' => $vid->url)); + $out->element('video', array('src' => $vid->url, + 'width' => '100%', + 'controls' => 'controls')); } }