mirror of
https://github.com/SuperBFG7/ympd
synced 2025-03-04 02:28:19 +00:00
Added Stop button, issue #14
This commit is contained in:
parent
b6a887f055
commit
9ffa3c17bd
@ -41,6 +41,9 @@
|
||||
<button id="btnPrev" type="button" class="btn btn-secondary" onclick="socket.send('MPD_API_SET_PREV');">
|
||||
<span class="material-icons">skip_previous</span>
|
||||
</button>
|
||||
<button id="btnStop" type="button" class="btn btn-secondary" onclick="clickStop();">
|
||||
<span class="material-icons">stop</span>
|
||||
</button>
|
||||
<button id="btnPlay" type="button" class="btn btn-secondary" onclick="clickPlay();">
|
||||
<span class="material-icons">pause</span>
|
||||
</button>
|
||||
|
@ -907,6 +907,10 @@ function clickPlay() {
|
||||
socket.send('MPD_API_SET_PAUSE');
|
||||
}
|
||||
|
||||
function clickStop() {
|
||||
socket.send('MPD_API_SET_STOP');
|
||||
}
|
||||
|
||||
function setLocalStream(mpdhost,streamport) {
|
||||
var mpdstream = 'http://';
|
||||
if ( mpdhost == '127.0.0.1' || mpdhost == 'localhost')
|
||||
|
Loading…
x
Reference in New Issue
Block a user