class EmbedRb::BasicVideo
Public Class Methods
new(input, output, options, embeds)
click to toggle source
# File lib/embedrb/video/embed_video.rb, line 8 def initialize(input, output, options, embeds) @input = input @output = output @embeds = embeds @options = options @regex = /((?:https?):\/\/\S*\.(?:ogv|webm|mp4))/mi @service = :video end
Private Instance Methods
render(url)
click to toggle source
# File lib/embedrb/video/embed_video.rb, line 18 def render(url) return <<EOF <div class="ejs-video ejs-embed"> <div class="ejs-video-player"> <div class="ejs-player"> <video src="#{url}" class="ejs-video-js video-js" controls></video> </div> </div> </div> EOF end