2020-10-24 02:13:02 +00:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
{% block head %}
|
|
|
|
<meta http-equiv="refresh" content="2;url=/status" />
|
|
|
|
{% endblock %}
|
2020-10-24 14:04:33 +00:00
|
|
|
{% block content_inner %}
|
|
|
|
{% if data %}
|
2020-12-20 01:10:19 +00:00
|
|
|
<div class="row">
|
|
|
|
|
2020-10-24 14:04:33 +00:00
|
|
|
{% for player in data.channels %}
|
2020-12-20 01:10:19 +00:00
|
|
|
<div class="col-4">
|
|
|
|
<h3 class="h5">Player {{player.channel}}</h3>
|
|
|
|
<a href="/player/{{player.channel}}/play">Play</a>
|
|
|
|
{% if player.paused %}
|
|
|
|
<a href="/player/{{player.channel}}/unpause">UnPause</a>
|
|
|
|
{% else %}
|
|
|
|
<a href="/player/{{player.channel}}/pause">Pause</a>
|
|
|
|
{% endif %}
|
|
|
|
<a href="/player/{{player.channel}}/stop">Stop</a>
|
|
|
|
<a href="/player/{{player.channel}}/seek/50.0">Seek 50</a>
|
|
|
|
<br>
|
|
|
|
<label for="file">{{ player.pos_true | int }} / {{ player.length | int }}s ({{ player.remaining | int }}s)</label>
|
|
|
|
<br>
|
2020-12-20 01:40:32 +00:00
|
|
|
<progress id="file" value="{% if player.length > 0 %}{{player.pos_true / player.length * 100}}{% else %}0{% endif %}" max="100" style="width: 100%"></progress>
|
2020-12-20 01:10:19 +00:00
|
|
|
|
|
|
|
<hr />
|
|
|
|
<h4 class="h6">Loaded Item</h3>
|
|
|
|
{{ player.loaded_item }}
|
|
|
|
<hr />
|
|
|
|
<h4 class="h6">Plan Items</h3>
|
|
|
|
{% for planitem in player.show_plan %}
|
|
|
|
|
|
|
|
<small>
|
|
|
|
{{ planitem }}
|
|
|
|
</small>
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
<br>
|
|
|
|
</div>
|
2020-10-24 14:04:33 +00:00
|
|
|
{% endfor %}
|
2020-12-20 01:10:19 +00:00
|
|
|
</div>
|
2020-10-24 14:04:33 +00:00
|
|
|
{% endif %}
|
2020-12-19 14:57:37 +00:00
|
|
|
{% endblock %}
|