src/application_helper.rb
# use imageserver and blob csid to serve audio
use imageserver and blob csid to serve audio
use imageserver and blob csid to serve audio
def render_audio_csid options={}
    content_tag(:div) do
      options[:value].collect do |audio_csid|
        content_tag(:audio,
          content_tag(:source, "I'm sorry; your browser doesn't support HTML5 audio in MPEG format.",
             src: "https://webapps.cspace.berkeley.edu/#TENANT#/imageserver/blobs/#{audio_csid}/content",
             id: 'audio_csid',
             type: 'audio/mpeg'),
             controls: 'controls',
             style: 'height: 60px; width: 640px;')
      end.join.html_safe
    end
  end
def render_audio_csid options = { } content_tag ( :div ) do options [ :value ] . collect do | audio_csid | content_tag ( :audio , content_tag ( :source , "I'm sorry; your browser doesn't support HTML5 audio in MPEG format." , src : "https://webapps.cspace.berkeley.edu/#TENANT#/imageserver/blobs/#{audio_csid}/content" , id : 'audio_csid' , type : 'audio/mpeg' ) , controls : 'controls' , style : 'height: 60px; width: 640px;' ) end . join . html_safe end end
use imageserver and blob csid to serve audio
use imageserver and blob csid to serve audio
# render audio player
options
<not_specific>