diff app/views/tweets/_tweet.html.erb @ 167:522d832d8a8c

Show controls for video
author nanaya <me@nanaya.pro>
date Fri, 03 Aug 2018 03:25:31 +0900
parents 3943833e973c
children 04ca6c4f11d0
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>