Module: Rabbit::Parser::Ext::Video

Included in:
RD::Ext::Video
Defined in:
lib/rabbit/parser/ext/video.rb

Instance Method Summary collapse

Instance Method Details

#make_video(canvas, uri_str, prop) ⇒ Object


25
26
27
28
29
30
31
32
33
# File 'lib/rabbit/parser/ext/video.rb', line 25

def make_video(canvas, uri_str, prop)
  path = Image::Private.uri_string_to_image_filename(canvas, uri_str)
  begin
    Element::Video.new(path, prop)
  rescue Error
    canvas.logger.warn($!.message)
    nil
  end
end