Flowdock
method

audio_tag

Importance_1
audio_tag(source, options = {}) public

Returns an html audio tag for the source. The source can be full path or file that exists in your public audios directory.

Examples

 audio_tag("sound")  # =>
   <audio src="/audios/sound" />
 audio_tag("sound.wav")  # =>
   <audio src="/audios/sound.wav" />
 audio_tag("sound.wav", :autoplay => true, :controls => true)  # =>
   <audio autoplay="autoplay" controls="controls" src="/audios/sound.wav" />
Show source
Register or log in to add new notes.