]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/GNUsocialVideo/GNUsocialVideoPlugin.php
show video controls by default, and fit the video inside its container.
[quix0rs-gnu-social.git] / 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'));
         }
     }