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">
|
2021-03-22 00:33:14 +00:00
|
|
|
{% if player %}
|
|
|
|
<h3 class="h5">Player {{player.channel}}</h3>
|
2021-06-20 23:22:29 +00:00
|
|
|
<p>
|
|
|
|
Initialised: {{player.initialised}}<br/>
|
2021-09-25 17:51:30 +00:00
|
|
|
Successful Load: {{player.loaded}}<br/>
|
2021-09-01 20:27:25 +00:00
|
|
|
Fader Live: {{player.live}}<br/>
|
|
|
|
Current Tracklist: {{player.tracklist_id}}
|
2021-06-20 23:22:29 +00:00
|
|
|
</p>
|
2021-03-22 00:33:14 +00:00
|
|
|
<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>
|
|
|
|
<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 />
|
2021-03-22 00:33:14 +00:00
|
|
|
<h4 class="h6">Loaded Item</h3>
|
|
|
|
{{ player.loaded_item }}
|
|
|
|
<hr />
|
|
|
|
<h4 class="h6">Plan Items</h3>
|
|
|
|
{% for planitem in player.show_plan %}
|
|
|
|
|
|
|
|
<small>
|
|
|
|
<a href="/player/{{player.channel}}/load/{{planitem.weight}}">Load</a> {{ planitem }}
|
|
|
|
</small>
|
|
|
|
<hr />
|
2020-12-20 01:10:19 +00:00
|
|
|
|
2021-03-22 00:33:14 +00:00
|
|
|
{% endfor %}
|
|
|
|
<br>
|
|
|
|
{% else %}
|
2021-09-08 22:36:59 +00:00
|
|
|
<p>Failed to get status from Player Channel. Channel may be busy or has failed.</p>
|
2021-03-22 00:33:14 +00:00
|
|
|
{% endif %}
|
2020-12-20 01:10:19 +00:00
|
|
|
</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 %}
|