Browse Source

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.
pull/322/head
Simon Conseil 8 years ago
parent
commit
c5366eba4d
  1. BIN
      sigal/themes/galleria/static/img/empty.png
  2. 3
      sigal/themes/galleria/templates/index.html

BIN
sigal/themes/galleria/static/img/empty.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 B

3
sigal/themes/galleria/templates/index.html

@ -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 %}

Loading…
Cancel
Save