render ugoira webm if user prefers large files

This commit is contained in:
r888888888
2014-11-19 16:59:48 -08:00
parent e6e6b2fe1c
commit 11731b6dfb
3 changed files with 123 additions and 115 deletions

View File

@@ -0,0 +1,3 @@
<%= content_tag(:video, nil, :id => "image", :width => post.image_width, :height => post.image_height, :autoplay => true, :loop => true, :controls => "controls", :src => post.large_file_url) %>
<p><%= link_to "Save this video (right click and save)", post.large_file_url %> | <%= link_to "View original", post_path(post, :original => 1) %></p>