Class: MediaEmbed::Video

Inherits:
Object
  • Object
show all
Defined in:
lib/media_embed/video.rb

Class Method Summary collapse

Class Method Details

.vimeo_template(code, options = {}) ⇒ Object



7
8
9
# File 'lib/media_embed/video.rb', line 7

def self.vimeo_template(code, options = {})
  iframe("//player.vimeo.com/video/#{code}", options)
end

.youtube_template(code, options = {}) ⇒ Object



3
4
5
# File 'lib/media_embed/video.rb', line 3

def self.youtube_template(code, options = {})
  iframe("//www.youtube.com/embed/#{code}/enablejsapi=1", options)
end