Drupal modules for browsing and managing Fedora-based digital repositories.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
{#
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* Default theme implementation to display a formatted video field.
|
|
|
|
*
|
|
|
|
* Available variables:
|
|
|
|
* - items: A collection of videos.
|
|
|
|
* - player_attributes: Player options including the following:
|
|
|
|
* - width: The width of the video (if known).
|
|
|
|
* - height: The height of the video (if known).
|
|
|
|
* - autoplay: Autoplay on or off
|
|
|
|
*
|
|
|
|
* @ingroup themeable
|
|
|
|
*/
|
|
|
|
#}
|
|
|
|
<h3>Videojs Test </h3>
|
|
|
|
<video data-setup="{}" class="video-js vjs-default-skin" preload="{{ player_attributes.preload }}" {{ player_attributes.controls ? 'controls' : '' }} style="width:{{ player_attributes.width }}px;height:{{ player_attributes.height }}px;" {{ player_attributes.autoplay ? 'autoplay' : '' }} {{ player_attributes.loop ? 'loop' : '' }} {{ player_attributes.muted ? 'muted' : '' }}>
|
|
|
|
{% for user in items %}
|
|
|
|
<source src="{{ user }}" type="{{ mimes[ loop.index - 1 ] }}"/>
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{% for transcript_url in transcript_urls %}
|
|
|
|
<track srclang="en" label="English" kind="captions" src="{{ transcript_url }}" default />
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
</video>
|