Media File
{% if item and not item.source_url and item.hls_status != 'ready' and item.hls_status != 'pending' %}
{% if item.hls_status == 'processing' %}Processing… please wait
{% elif item.hls_status == 'error' %}Error: {{ item.hls_error|truncatechars:120 }}
{% else %}Pending{% endif %}
{% endif %}
{% if item and item.original_file and not item.source_url and item.media_type != 'image' %}
{% if item.hls_status == 'ready' %}Streaming version is ready. The original file is kept.
{% elif item.hls_status == 'processing' %}Converting to a streaming version.
{% else %}Served as the original file. Convert it for adaptive streaming.{% endif %}
{% if item.hls_status != 'processing' %}
{% endif %}
{% endif %}
Uploaded as is. Convert to HLS afterwards for AES-128 encrypted streaming.