HTML5 video fallsback to link

This commit is contained in:
James A. Anderson 2013-06-21 00:12:51 -04:00
parent 974634bbe9
commit 7835b71a9c
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ module Oneboxer
matcher /^https?:\/\/.*\.(mov|mp4|ogg)$/
def onebox
"<video width='100%' height='100%' controls><source src='#{@url}'></video>"
"<video width='100%' height='100%' controls><source src='#{@url}'><a href='#{@url}'>#{@url}</a></video>"
end
end