mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-11 15:03:24 -05:00
[airplay] Experiment with no toggling on pause and play events (issue #1348)
This commit is contained in:
parent
1418bfb245
commit
c85867b69a
@ -337,18 +337,13 @@ rtsp_parse(enum airplay_events *event, uint8_t *in, size_t in_len)
|
||||
static void
|
||||
handle_event(enum airplay_events event)
|
||||
{
|
||||
struct player_status status;
|
||||
|
||||
player_get_status(&status);
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case AIRPLAY_EVENT_PLAY:
|
||||
player_playback_start();
|
||||
break;
|
||||
case AIRPLAY_EVENT_PAUSE:
|
||||
if (status.status == PLAY_PLAYING)
|
||||
player_playback_pause();
|
||||
else
|
||||
player_playback_start();
|
||||
player_playback_pause();
|
||||
break;
|
||||
case AIRPLAY_EVENT_NEXT:
|
||||
player_playback_next();
|
||||
|
Loading…
Reference in New Issue
Block a user