{% if "video" in media_transcoded.mime_type %}
<div class="video">
<video id="my_video_1" class="video-js vjs-default-skin" width="864" height="480" controls preload="auto" data-setup='{}' {% if media.poster_file %}{% thumbnail media.poster_file "640" as im %}poster="{{ im.url }}"{% endthumbnail %}{% endif %}>
- <source src="{{ MEDIA_URL }}{{ media_transcoded.file }}" type="{{ media.mime_type }}" />
+ <source src="{% url 'teleforma-media-stream' period.id media.id %}" type="{{ media.mime_type }}" />
</video>
</div>
</div>
<div class="audio">
<audio controls preload="auto">
- <source src="{{ MEDIA_URL }}{{ media_transcoded.file }}" type="{{ media.mime_type }}" />
+ <source src="{% url 'teleforma-media-stream' period.id media.id %}" type="{{ media.mime_type }}" />
</audio>
</div>
{% endif %}