1
1
mirror of https://github.com/danbee/persephone synced 2025-03-04 08:39:11 +00:00
Commit Graph

12 Commits

Author SHA1 Message Date
4fc18711b1
Render the current playing track in bold 2019-02-05 19:29:46 -05:00
cda2ded9b2
Create status class and reorganise MPDClient 2019-02-04 19:41:59 -05:00
27449cbb21
Show the queue and update it when it changes 2019-02-03 17:32:08 -05:00
61d7a59e52
Remove debugging 2019-02-02 13:27:03 -05:00
edc77355cc
Initialize status
This also fixes an occasional crash seen on quitting the app.
2019-02-02 13:27:03 -05:00
1f064426d1
Add handler delegate for MPD client notifications 2019-02-02 13:27:03 -05:00
be98d0ffd6
Move MPD connection to AppDelegate 2019-02-02 13:27:02 -05:00
66543f9596
Should be able to skip tracks while paused 2019-02-02 13:26:00 -05:00
66e41aca04
Check playing state before sending next/previous 2019-02-02 13:26:00 -05:00
637711edc1
Refactor mpdclient to fetch status 2019-02-02 13:26:00 -05:00
c4cfd57d3d
MPDClient correctly sequences commands
In order to avoid getting disconnected from the server, it is necessary
to send an "idle" command once you are connected. This tells the server
that the client is going to wait for a status change message from the
server. In the meantime if the client needs to send another command, it
must first send "noidle", then send the command, then send "idle" once
more. If the command results in a status change, the "idle" will return
immediately, which must be dealt with and then the "idle" command must
be sent once more.

Phew!
2019-02-02 13:26:00 -05:00
ca55177c81
You can press a button and a thing happens! 2019-02-02 13:26:00 -05:00