lib/onebox/engine/video_onebox.rb in onebox-1.8.73 vs lib/onebox/engine/video_onebox.rb in onebox-1.8.74
- old
+ new
@@ -10,13 +10,15 @@
end
def to_html
escaped_url = ::Onebox::Helpers.normalize_url_for_output(@url)
<<-HTML
- <video width='100%' height='100%' controls>
- <source src='#{escaped_url}'>
- <a href='#{escaped_url}'>#{@url}</a>
- </video>
+ <div class="onebox video-onebox">
+ <video width='100%' height='100%' controls>
+ <source src='#{escaped_url}'>
+ <a href='#{escaped_url}'>#{@url}</a>
+ </video>
+ </div>
HTML
end
end
end
end