]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
show video controls by default, and fit the video inside its container.
authorIan Denhardt <ian@zenhack.net>
Mon, 28 Mar 2011 11:59:07 +0000 (07:59 -0400)
committerIan Denhardt <ian@zenhack.net>
Mon, 28 Mar 2011 11:59:07 +0000 (07:59 -0400)
plugins/GNUsocialVideo/GNUsocialVideoPlugin.php

index 76053f29f314769960686b9a805cf531ac8449c7..850761625e547bf4aac4c10bbf1b2b2f391eb263 100644 (file)
@@ -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'));
         }
     }