Sha256: 61b6c480631e93005e27068221f9d06948df6c196519f0ca8e6ebae7075ed0c3

Contents?: true

Size: 1.28 KB

Versions: 4

Compression:

Stored size: 1.28 KB

Contents

<% if Hyrax.config.display_media_download_link? %>
    <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.0.pre.rc3 app/views/hyrax/file_sets/media_display/_video.html.erb
hyrax-3.0.0.pre.rc2 app/views/hyrax/file_sets/media_display/_video.html.erb
hyrax-3.0.0.pre.rc1 app/views/hyrax/file_sets/media_display/_video.html.erb
hyrax-3.0.0.pre.beta3 app/views/hyrax/file_sets/media_display/_video.html.erb