Volumio2 icon indicating copy to clipboard operation
Volumio2 copied to clipboard

Airplay state not changed to 'stop' after source disconnected

Open monte-monte opened this issue 5 years ago • 4 comments

Volumio version 2.712 (seen the same behavior in previous versions)

Problem: playing music from iPad via Airplay > switch back from Volumio to iPad or any other airplay device > Volumio's status remains 'play', seek state keeps counting into infinity. The only way is to start playing anything from playlist, or stop playing on iPad before disconnecting.

Expected behavior: Volumio detects airplay client disconnected and changes status to 'stop'.

monte-monte avatar Feb 26 '20 03:02 monte-monte

Tried to set status to stop with volumio stop. Response was "response":"stop Success" but player state remained 'play' and even 'seek' time didn't reset.

monte-monte avatar Feb 26 '20 03:02 monte-monte

Okay, so Volumio ignores "ssnc" "pend" call that shairport-sync sends to metadata pipe, when client disconnects but it doesn't ignore it when client sends pause. Maybe this is because no metadata is sent before "ssnc" "pend", when client disconnects abruptly. If this is the case, I think we need to change how Volumio reads shairport's pipe.

monte-monte avatar Feb 26 '20 04:02 monte-monte

The issue is still there in the last version 🙁 Just updated to 2.861 When an airplay client disconnect without pause, the volumio state stays on "play".

"status":"play"

And a cmd stop through the API doesn't change it to stop either 🙁

acresp avatar Jan 25 '21 20:01 acresp

@acresp The PR is still open... But you can add the line manually: see PR #2005

elektro-wolle avatar Jan 25 '21 21:01 elektro-wolle