<%= tag.video controls: true, width: remote_video.width, height: remote_video.height do %> <%= tag.source src: remote_video.url, type: remote_video.content_type %> <% end %> <% if caption = remote_video.try(:caption) %>
<%= caption %>
<% end %>