53 lines
1.7 KiB
Django/Jinja
53 lines
1.7 KiB
Django/Jinja
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' />
|
|
<title>{{ configuration['pagetitle'] }} - Stream Overview</title>
|
|
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.default.css') }}">
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<h1>{{ configuration["pagetitle"] }}</h1>
|
|
<h2>{{ configuration["subtitle"] }}</h2>
|
|
</header>
|
|
<main>
|
|
{% if items == [] %}
|
|
<p style="margin-top: 20px; margin-bottom: 150px;">
|
|
<span style="color: #888; font-size: 14pt;">There are currently no streams running</span>
|
|
</p>
|
|
{% endif %}
|
|
{% for item in items %}
|
|
<article>
|
|
<h1>{{ item[1] }}</h1>
|
|
<table>
|
|
<tbody>
|
|
<tr>
|
|
<th>Protocol</th>
|
|
<th>URL</th>
|
|
<th></th>
|
|
</tr>
|
|
<tr>
|
|
<td>RTMP</td>
|
|
<td><em class="url">rtmp://{{ configuration["rtmp_base"] }}/{{ item[0] }}/{{ item[1] }}</em></td>
|
|
<td class="btn"><a href="rtmp://{{ configuration["rtmp_base"] }}/{{ item[0] }}/{{ item[1] }}" class="btn btn-green">▶<br/>RTMP</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td>HTTP-FLV</td>
|
|
<td><em class="url">{{ configuration["web_proto"] }}://{{ configuration["base_url"] }}/flv?app={{ item[0] }}&stream={{ item[1] }}</em></td>
|
|
<td class="btn"><a href="{{ configuration["web_proto"] }}://{{ configuration["base_url"] }}/flv?app={{ item[0] }}&stream={{ item[1] }}" class="btn btn-green">▶<br/>HTTP-FLV</a></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<a href="{{ url_for('frontend.show_player', streamname=item[1], appname=item[0]) }}"
|
|
class="btn-large btn-green">
|
|
▷ Web Player
|
|
</a>
|
|
</article>
|
|
{% endfor %}
|
|
</main>
|
|
<footer>
|
|
{{ configuration["footer"] }}
|
|
</footer>
|
|
</body>
|
|
</html>
|