From 9ffa3c17bdf6ba0950a9f048284cac95737deb4b Mon Sep 17 00:00:00 2001 From: jcorporation Date: Sun, 10 Jun 2018 18:54:57 +0200 Subject: [PATCH] Added Stop button, issue #14 --- htdocs/index.html | 3 +++ htdocs/js/mpd.js | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/htdocs/index.html b/htdocs/index.html index 0d5ead1d5..316d79394 100644 --- a/htdocs/index.html +++ b/htdocs/index.html @@ -41,6 +41,9 @@ + diff --git a/htdocs/js/mpd.js b/htdocs/js/mpd.js index bae5073b0..72f194cc1 100644 --- a/htdocs/js/mpd.js +++ b/htdocs/js/mpd.js @@ -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')