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.
24 lines
1010 B
24 lines
1010 B
5 years ago
|
{#
|
||
|
/**
|
||
|
* @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>
|