show video controls by default, and fit the video inside its container.

This commit is contained in:
Ian Denhardt 2011-03-28 07:59:07 -04:00
parent 26e3eee769
commit 58254aa497

View File

@ -137,7 +137,9 @@ class GNUsocialVideoPlugin extends MicroAppPlugin
{ {
$vid = Video::getByNotice($notice); $vid = Video::getByNotice($notice);
if ($vid) { if ($vid) {
$out->element('video', array('src' => $vid->url)); $out->element('video', array('src' => $vid->url,
'width' => '100%',
'controls' => 'controls'));
} }
} }