{% extends "base.html" %} {% load static %} {% block title %}{{ session.channel.name }} Session - Stream Processor{% endblock %} {% block page_title %} Session Details {% endblock %} {% block extra_css %} {% endblock %} {% block extra_head %} {% endblock %} {% block content %} {% if session.is_running %} {% else %} {% endif %}

{{ session.channel.name }} Session {% if session.is_running %} Running {% else %} Stopped {% endif %}

Started {{ session.started_at|date:"M d, Y H:i" }} {% if session.ended_at %} • Ended {{ session.ended_at|date:"M d, Y H:i" }} {% endif %}

View Channel {% if session.is_running %} {% else %} {% endif %}

Session Information

Session ID
{{ session.id|truncatechars:8 }}
Started
{{ session.started_at|date:"M d, Y H:i:s" }}
Status
{% if session.is_running %} Running {% else %} Stopped {% endif %}
{% if session.ended_at %}
Ended
{{ session.ended_at|date:"M d, Y H:i:s" }}
Duration
{% if total_duration %} {{ total_duration|floatformat:1 }} seconds {% else %} - {% endif %}
{% endif %} {% if session.error_message %}
Error Message
{{ session.error_message }}
{% endif %}

Recent Segments

{{ total_segments }} total segments
{% if recent_segments %}
{% for segment in recent_segments %}
{% if segment.is_available %} {% else %} {% endif %}
Segment #{{ segment.sequence_number }}
{% if segment.duration %} {{ segment.duration|floatformat:1 }}s {% endif %} {% if segment.file_size %} • {{ segment.file_size|filesizeformat }} {% endif %} • {{ segment.processed_at|date:"H:i:s" }}
{% if segment.is_available %} Available {% else %} Processing {% endif %} {% if segment.file_path %} {% endif %}
{% endfor %}
{% else %}

No segments found for this session

{% endif %}

Statistics

Total Segments
{{ total_segments|default:0 }}
Available Segments
{{ available_segments|default:0 }}
{% if total_duration %}
Total Duration
{{ total_duration|floatformat:1 }}s
{% endif %} {% if total_size %}
Total Size
{{ total_size|filesizeformat }}
{% endif %}
Session Status
{% if session.is_running %} Active {% else %} Inactive {% endif %}

Quick Actions

View Channel {% if session.is_running %} {% endif %} {% if not session.is_running %} {% endif %}

Channel Info

Channel Name
{{ session.channel.name }}
Stream URL
{{ session.channel.stream_url|truncatechars:30 }}
Output Directory
{{ session.channel.output_directory }}
Channel Status
{% if session.channel.is_active %} Active {% else %} Inactive {% endif %}
{% endblock %}