changeset 167:522d832d8a8c

Show controls for video
author nanaya <me@nanaya.pro>
date Fri, 03 Aug 2018 03:25:31 +0900
parents 469df6354341
children 0c60db0a3686
files app/views/tweets/_tweet.html.erb
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/app/views/tweets/_tweet.html.erb	Fri Aug 03 02:39:09 2018 +0900
+++ b/app/views/tweets/_tweet.html.erb	Fri Aug 03 03:25:31 2018 +0900
@@ -37,7 +37,7 @@
           <%= image_tag "#{media.media_url_https}:small", :alt => "attachment #{i + 1}" -%>
         <% end %>
       <% elsif media.is_a? Twitter::Media::Video %>
-        <%= video_tag media.video_info.variants.map(&:url), width: '100%' %>
+        <%= video_tag media.video_info.variants.map(&:url), width: '100%', controls: true %>
       <% end %>
     <% end %>
   </p>