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');">
|
<button id="btnPrev" type="button" class="btn btn-secondary" onclick="socket.send('MPD_API_SET_PREV');">
|
||||||
<span class="material-icons">skip_previous</span>
|
<span class="material-icons">skip_previous</span>
|
||||||
</button>
|
</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();">
|
<button id="btnPlay" type="button" class="btn btn-secondary" onclick="clickPlay();">
|
||||||
<span class="material-icons">pause</span>
|
<span class="material-icons">pause</span>
|
||||||
</button>
|
</button>
|
||||||
|
@ -907,6 +907,10 @@ function clickPlay() {
|
|||||||
socket.send('MPD_API_SET_PAUSE');
|
socket.send('MPD_API_SET_PAUSE');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function clickStop() {
|
||||||
|
socket.send('MPD_API_SET_STOP');
|
||||||
|
}
|
||||||
|
|
||||||
function setLocalStream(mpdhost,streamport) {
|
function setLocalStream(mpdhost,streamport) {
|
||||||
var mpdstream = 'http://';
|
var mpdstream = 'http://';
|
||||||
if ( mpdhost == '127.0.0.1' || mpdhost == 'localhost')
|
if ( mpdhost == '127.0.0.1' || mpdhost == 'localhost')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user