Render quotes in video source type attr

This commit is contained in:
2022-04-03 15:53:26 +02:00
parent 1b480b8ddb
commit 46c6272213

View File

@@ -10,7 +10,7 @@
<h1>{{ title }}</h1> <h1>{{ title }}</h1>
<video width="{{ width }}" height="{{ height }}" {% if poster %}poster="{{ poster }}" {% endif %}controls="controls"> <video width="{{ width }}" height="{{ height }}" {% if poster %}poster="{{ poster }}" {% endif %}controls="controls">
{% for source in sources %} {% for source in sources %}
<source src="{{ source.src }}" type='{{ source.type }}' /> <source src="{{ source.src }}" type='{{ source.type|safe }}' />
{% endfor %} {% endfor %}
You need a browser that understands HTML5 video and supports {% for i in used_codecs %}{{ i }}{% if not loop.last %} or {% endif %}{% endfor %} codecs. You need a browser that understands HTML5 video and supports {% for i in used_codecs %}{{ i }}{% if not loop.last %} or {% endif %}{% endfor %} codecs.
</video><br /> </video><br />