PlayState
in package
Table of Contents
Cases
- Paused
- Music is currently paused.
- Playing
- Currently plating music.
- Stopped
- No music playing, but not paused.
- Transitioning
- The speaker is currently working on either playing or pausing.
- Unknown
- The speaker is in an unknown state.
Cases
Stopped
No music playing, but not paused.
This is a rare state, but can be encountered after an upgrade, or if the queue was cleared
Playing
Currently plating music.
Paused
Music is currently paused.
Transitioning
The speaker is currently working on either playing or pausing.
Check it's state again in a second or two
Unknown
The speaker is in an unknown state.
This should only happen if Sonos introduce a new state that this code has not been updated to handle.