Workaround for galleria and videos

It looks like galleria's video tag in json support only external
provider (youtube etc.). So instead this shows an empty image and on top
a layer with the html video tag.
This commit is contained in:
Simon Conseil
2018-04-04 00:50:00 +02:00
parent fbdd95295c
commit c5366eba4d
2 changed files with 2 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 B

View File

@@ -152,7 +152,8 @@
image: "{{ media.filename }}"
{% endif %}
{% if media.type == "video" %}
video: "{{ media.filename }}"
image: "{{ theme.url }}/img/empty.png",
layer: "<video controls><source src='{{ media.filename }}' type='{{ media.mime }}' /></video>"
{% endif %}
},
{% endfor %}