<div class="audio" style="margin-top:1em;">
<audio controls autoplay preload="auto">
<!-- Hello Chrome and Firefox (and Opera?) -->
-<source src="{{ livestream.url|set_host:HOST }}" type="audio/mpeg" />
+<source src="{{ livestream.url|set_host:host }}" type="audio/mpeg" />
</audio>
</div>
{% endif %}
<div class="video">
<video id="my_video_1" class="video-js vjs-default-skin" width="640" height="360" controls preload="auto" data-setup='{}' {% if media.item.related.all %}{% for related in media.item.related.all %}{% if related.title == "preview" %}{% thumbnail related.file "640" as im %}poster="{{ im.url }}"{% endthumbnail %}{% endif %}{% endfor %}{% endif %}>
<!-- Hello Chrome and Firefox (and Opera?) -->
-<source src="{{ MEDIA_URL|set_host:HOST }}{{ media.item.file }}" type="{{ media.mime_type }}" />
+<source src="{{ MEDIA_URL|set_host:host }}{{ media.item.file }}" type="{{ media.mime_type }}" />
</video>
</div>
{% for related in media.item.related.all %}
{% if related.title == "preview" %}
{% thumbnail related.file "300" as im %}
- <img src="{{ im.url|set_host:HOST }}" width="300px" alt="preview" />
+ <img src="{{ im.url|set_host:host }}" width="300px" alt="preview" />
{% endthumbnail %}
{% endif %}
{% endfor %}
</div>
<div class="audio">
<audio controls preload="auto">
-<source src="{{ MEDIA_URL|set_host:HOST }}{{ media.item.file }}" type="{{ media.mime_type }}" />
+<source src="{{ MEDIA_URL|set_host:host }}{{ media.item.file }}" type="{{ media.mime_type }}" />
</audio>
</div>
{% endif %}
{% for related in media.item.related.all %}
{% if related.title == "preview" %}
{% thumbnail related.file "168x96" as im %}
- <div style="background: no-repeat url('{{ im.url|set_host:HOST }}') 0 1px; background-size: 100%; background-color: #dfdfdf;">
+ <div style="background: no-repeat url('{{ im.url|set_host:host }}') 0 1px; background-size: 100%; background-color: #dfdfdf;">
<img src="{{ STATIC_URL }}teleforma/images/play_168.png" width="100%" alt="{% trans 'Click here' %}" />
</div>
{% endthumbnail %}
<img src="{{ STATIC_URL }}telemeta/images/delete.png" style="vertical-align:middle" alt="" title="{% trans ' rejected' %}" />
{% endif %}
{% if media.item.file %}
- <a href="{{ MEDIA_URL|set_host:HOST }}{{ media.item.file }}">
+ <a href="{{ MEDIA_URL|set_host:host }}{{ media.item.file }}">
<img src="{{ STATIC_URL }}teleforma/images/download_media.png" style="vertical-align:middle" alt="" title="{% trans "Download" %}" />
</a>
{% endif %}