Add flash video onebox support
http://meta.discourse.org/t/will-there-be-flash-videos-in-the-future/7787
This commit is contained in:
parent
9c617d051e
commit
34dc6a41d9
|
@ -0,0 +1,13 @@
|
|||
require_dependency 'oneboxer/base_onebox'
|
||||
|
||||
module Oneboxer
|
||||
class FlashVideoOnebox < BaseOnebox
|
||||
|
||||
matcher /^https?:\/\/.*\.(swf|flv)$/
|
||||
|
||||
def onebox
|
||||
"<object width='100%' height='100%'><param name='#{@url}' value='#{@url}'><embed src='#{@url}' width='100%' height='100%'></embed></object>"
|
||||
end
|
||||
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue