Method: EmbeddedFile::Loader#load_video_url

Defined in:
lib/asker/loader/embedded_file/loader.rb

#load_video_url(value, localdir) ⇒ Object



104
105
106
107
108
109
110
111
112
# File 'lib/asker/loader/embedded_file/loader.rb', line 104

def load_video_url(value, localdir)
  {
    text: "<video controls width=\"400\" height=\"300\">" \
                    + "<source src=\"#{value}\"/></video>",
    file: :none,
    type: :url,
    url: value
  }
end