mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Merge pull request #1166 from jamesaanderson/mobile-and-tablet-video-rendering-fix
Mobile and tablet video rendering fix
This commit is contained in:
@@ -6,7 +6,7 @@ module Oneboxer
|
||||
matcher /^https?:\/\/.*\.(mov|mp4|ogg)$/
|
||||
|
||||
def onebox
|
||||
"<video width='100%' height='100%' controls><source src='#{@url}'><a href='#{@url}'>#{@url}</a></video>"
|
||||
"<video controls><source src='#{@url}'><a href='#{@url}'>#{@url}</a></video>"
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user