Sha256: 0e91b03a5cb6e7903dfa7de9577043f4473a382ce11048cabe4796c36abfa36f

Contents?: true

Size: 1.36 KB

Versions: 5

Compression:

Stored size: 1.36 KB

Contents

<% if display_media_download_link?(file_set: file_set) %>
  <div>
      <h2 class="sr-only"><%= t('hyrax.file_set.show.downloadable_content.heading') %></h2>
      <video controls="controls" class="video-js vjs-default-skin" style="width:100%" data-setup="{}" controlsList="nodownload" preload="auto">
        <source src="<%= hyrax.download_path(file_set, file: 'webm') %>" type="video/webm" />
        <source src="<%= hyrax.download_path(file_set, file: 'mp4') %>" type="video/mp4" />
        <%= t('hyrax.file_set.show.downloadable_content.video_tag_not_supported') %>
      </video>
      <%= link_to t('hyrax.file_set.show.downloadable_content.video_link'),
                  hyrax.download_path(file_set),
                  data: { label: file_set.id, work_id: @presenter.id, collection_ids: @presenter.member_of_collection_ids },
                  target: :_blank,
                  id: "file_download" %>
    </div>
<% else %>
    <div>
      <video controls="controls" class="video-js vjs-default-skin" style="width:100%" data-setup="{}" controlsList="nodownload" preload="auto">
        <source src="<%= hyrax.download_path(file_set, file: 'webm') %>" type="video/webm" />
        <source src="<%= hyrax.download_path(file_set, file: 'mp4') %>" type="video/mp4" />
        <%= t('hyrax.file_set.show.downloadable_content.video_tag_not_supported') %>
      </video>
    </div>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hyrax-5.0.0.rc1 app/views/hyrax/file_sets/media_display/_video.html.erb
hyrax-4.0.0 app/views/hyrax/file_sets/media_display/_video.html.erb
hyrax-4.0.0.rc3 app/views/hyrax/file_sets/media_display/_video.html.erb
hyrax-4.0.0.rc2 app/views/hyrax/file_sets/media_display/_video.html.erb
hyrax-4.0.0.rc1 app/views/hyrax/file_sets/media_display/_video.html.erb