53 lines
1.8 KiB
HTML
53 lines
1.8 KiB
HTML
{% extends 'base.html' %}
|
|
{% block head %}
|
|
<meta http-equiv="refresh" content="2;url=/status" />
|
|
{% endblock %}
|
|
{% block content_inner %}
|
|
{% if data %}
|
|
<div class="row">
|
|
|
|
{% for player in data.channels %}
|
|
<div class="col-4">
|
|
{% if player %}
|
|
<h3 class="h5">Player {{player.channel}}</h3>
|
|
<p>
|
|
Initialised: {{player.initialised}}<br/>
|
|
Successful Load: {{player.loaded}}<br/>
|
|
Fader Live: {{player.live}}<br/>
|
|
Current Tracklist: {{player.tracklist_id}}
|
|
</p>
|
|
<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>
|
|
|
|
<hr />
|
|
<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 />
|
|
|
|
{% endfor %}
|
|
<br>
|
|
{% else %}
|
|
<p>Failed to get status from Player Channel. Channel may be busy or has failed.</p>
|
|
{% endif %}
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|