src/application_helper.rb
# serve audio directy via apache (apache needs to be configured to serve nuxeo repo)
serve audio directy via apache (apache needs to be configured to serve nuxeo repo)
serve audio directy via apache ( apache needs to be configured to serve nuxeo repo )
def render_audio_directly options={}
    content_tag(:div) do
      options[:value].collect do |audio_md5|
        l1 = audio_md5[0..1]
        l2 = audio_md5[2..3]
        content_tag(:audio,
          content_tag(:source, "I'm sorry; your browser doesn't support HTML5 audio in MPEG format.",
             src: "https://cspace-prod-02.ist.berkeley.edu/#TENANT#_nuxeo/data/#{l1}/#{l2}/#{audio_md5}",
             id: 'audio_md5',
             type: 'audio/mpeg'),
             controls: 'controls',
             style: 'height: 60px; width: 640px;')
      end.join.html_safe
    end
  end
def render_audio_directly options = { } content_tag ( :div ) do options [ :value ] . collect do | audio_md5 | l1 = audio_md5 [ 0 .. 1 ] l2 = audio_md5 [ 2 .. 3 ] content_tag ( :audio , content_tag ( :source , "I'm sorry; your browser doesn't support HTML5 audio in MPEG format." , src : "https://cspace-prod-02.ist.berkeley.edu/#TENANT#_nuxeo/data/#{l1}/#{l2}/#{audio_md5}" , id : 'audio_md5' , type : 'audio/mpeg' ) , controls : 'controls' , style : 'height: 60px; width: 640px;' ) end . join . html_safe end end
serve audio directy via apache (apache needs to be configured to serve nuxeo repo)
serve audio directy via apache ( apache needs to be configured to serve nuxeo repo )
# render audio player
options
<not_specific>