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_video_directly options={}
    content_tag(:div) do
      options[:value].collect do |video_md5|
        l1 = video_md5[0..1]
        l2 = video_md5[2..3]
        content_tag(:video,
          content_tag(:source, "I'm sorry; your browser doesn't support HTML5 video in MP4 with H.264.",
             src: "https://cspace-prod-02.ist.berkeley.edu/#TENANT#_nuxeo/data/#{l1}/#{l2}/#{video_md5}",
             id: 'video_md5',
             type: 'video/mp4'),
             controls: 'controls',
             style: 'width: 640px;')
      end.join.html_safe
    end
  end
def render_video_directly options = { } content_tag ( :div ) do options [ :value ] . collect do | video_md5 | l1 = video_md5 [ 0 .. 1 ] l2 = video_md5 [ 2 .. 3 ] content_tag ( :video , content_tag ( :source , "I'm sorry; your browser doesn't support HTML5 video in MP4 with H.264." , src : "https://cspace-prod-02.ist.berkeley.edu/#TENANT#_nuxeo/data/#{l1}/#{l2}/#{video_md5}" , id : 'video_md5' , type : 'video/mp4' ) , controls : 'controls' , style : '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 video player
options
<not_specific>