forked from DiegoPino/islandora-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvideojs.html.twig
23 lines (22 loc) · 1010 Bytes
/
videojs.html.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{#
/**
* @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 {{ testvar }} </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 }}"/>
{% endfor %}
<track srclang="en" label="English" kind="captions" src="http://localhost:8000/_flysystem/fedora/2019-02/MEDIATRACK_en.vtt" default />
</video>