Sha256: 42276ac7b521590369ff2e1e2660940e944205d8c39e70d5c4e8d437251d8a1a

Contents?: true

Size: 1.33 KB

Versions: 4

Compression:

Stored size: 1.33 KB

Contents

<% if Hyrax.config.display_media_download_link? && !workflow_restriction?(file_set.try(:parent)) %>
  <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 },
                  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

4 entries across 4 versions & 1 rubygems

Version Path
hyrax-3.0.2 app/views/hyrax/file_sets/media_display/_video.html.erb
hyrax-3.0.1 app/views/hyrax/file_sets/media_display/_video.html.erb
hyrax-3.0.0 app/views/hyrax/file_sets/media_display/_video.html.erb
hyrax-3.0.0.pre.rc4 app/views/hyrax/file_sets/media_display/_video.html.erb