Class: Onebox::Engine::VideoOnebox
- Inherits:
-
Object
- Object
- Onebox::Engine::VideoOnebox
show all
- Includes:
- Onebox::Engine
- Defined in:
- lib/onebox/engine/video_onebox.rb
Constant Summary
DEFAULT
Instance Attribute Summary
#cache, #timeout, #uri, #url
Instance Method Summary
collapse
engines, included, #initialize, #options, #options=, #placeholder_html
Instance Method Details
#to_html ⇒ Object
12
13
14
15
|
# File 'lib/onebox/engine/video_onebox.rb', line 12
def to_html
url = ::Onebox::Helpers.normalize_url_for_output(@url)
"<video width='100%' height='100%' controls><source src='#{url}'><a href='#{url}'>#{url}</a></video>"
end
|