HTML5 video fallsback to link
This commit is contained in:
parent
974634bbe9
commit
7835b71a9c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue