From 58254aa4970392b5d9eab36974fe89c50227c84f Mon Sep 17 00:00:00 2001 From: Ian Denhardt Date: Mon, 28 Mar 2011 07:59:07 -0400 Subject: [PATCH] show video controls by default, and fit the video inside its container. --- plugins/GNUsocialVideo/GNUsocialVideoPlugin.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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')); } } -- 2.39.5