{% extends "layouts/base.html" %} {% load static %} {% block title %}{{ channel.name }} - Channel Details - Stream Processor{% endblock %} {% block extra_css %} {% endblock %} {% block extra_head %} {% endblock %} {% block content %}

{{ channel.name }} {% if channel.is_active %} Active {% else %} Inactive {% endif %}

{% if channel.description %} {{ channel.description }} {% else %} Channel configuration and streaming details {% endif %}

Live Player TS Files iFrames Jingles Edit {% if active_session %}
{% csrf_token %}
{% else %}
{% csrf_token %}
{% endif %}
{% if active_session %}
Currently Streaming
Session ID: {{ active_session.id|truncatechars:8 }}
Started: {{ active_session.started_at|date:"M d, Y H:i" }}
Status: {{ active_session.get_status_display }}
{% else %}
Stream Not Active

This channel is not currently streaming. Click “Start Stream” to begin capturing.

{% endif %}
Channel Information
Channel Name
{{ channel.name }}
Slug
{{ channel.slug }}
HLS Source URL
{{ channel.hls_url }}
Output Directory
{{ channel.output_directory }}
Created By
{{ channel.created_by.username }}
Created
{{ channel.created_at|date:"M d, Y H:i" }}
Last Updated
{{ channel.updated_at|date:"M d, Y H:i" }}
HLS Configuration
Segment Duration
{{ channel.segment_duration }} seconds
Max Segments
{{ channel.max_segments }} segments
Retry Attempts
{{ channel.retry_attempts }} attempts
Retry Interval
{{ channel.retry_interval }} seconds
Recent Sessions
View All Sessions
{% if recent_sessions %}
{% for session in recent_sessions %}
{% if session.status == 'streaming' %} {% elif session.status == 'stopped' %} {% elif session.status == 'error' %} {% else %} {% endif %}
Session {{ session.id|truncatechars:8 }}
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 %}
{{ session.get_status_display }}
{% endfor %}
{% else %}
No streaming sessions yet
{% endif %}
Quick Actions
Edit Channel
Configurations
Video Configurations
{% if video_configs %}
{% for config in video_configs %}
{{ config.name }} ({{ config.resolution }})
{% endfor %}
{% else %}
No video configurations
{% endif %}
Audio Configurations
{% if audio_configs %}
{% for config in audio_configs %}
{{ config.name }} ({{ config.bitrate }})
{% endfor %}
{% else %}
No audio configurations
{% endif %}
Statistics
Total Sessions {{ recent_sessions|length }}
Active Sessions {% if active_session %}1{% else %}0{% endif %}
Channel Status {% if channel.is_active %} Active {% else %} Inactive {% endif %}
{% endblock %}