lib/onebox/engine/video_onebox.rb in onebox-1.3.0 vs lib/onebox/engine/video_onebox.rb in onebox-1.3.1

- old
+ new

@@ -1,14 +1,13 @@ module Onebox module Engine class VideoOnebox include Engine - matches_regexp /^https?:\/\/.*\.(mov|mp4)$/ + matches_regexp /^(https?:)?\/\/.*\.(mov|mp4|webm|ogv)(\?.*)?$/ def to_html "<video width='100%' height='100%' controls><source src='#{@url}'><a href='#{@url}'>#{@url}</a></video>" end end end end -