Initial commit
This commit is contained in:
12
_includes/item/video-player.html
Normal file
12
_includes/item/video-player.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{% comment %}
|
||||
|
||||
Adds html video element with source given in object_location.
|
||||
Sizing is controlled using Bootstrap "ratio" styles.
|
||||
|
||||
{%- endcomment -%}
|
||||
<div class="ratio ratio-16x9">
|
||||
<video {% if page.image_small %}poster="{{ page.image_small | relative_url }}" {% endif %}preload="metadata" controls>
|
||||
<source src="{{ page.object_location | relative_url }}">
|
||||
Your browser does not support the video tag. Please <a href="{{ page.object_location | relative_url }}">download the video file</a>.
|
||||
</video>
|
||||
</div>
|
||||
Reference in New Issue
Block a user