Updated Playback states & service states (markdown)

tzugen 2021-05-04 12:36:46 +02:00
parent 9069abbb05
commit 20879f4201

@ -6,11 +6,11 @@
| Condition | Playback State | Service running | Service as Foreground | stopForeground() | | Condition | Playback State | Service running | Service has notification | Service as Foreground | stopForeground() | registerMediaButtonReceiver |
|----------------------------------|----------------|-----------------|-----------------------|--------------------------------------------| |----------------------------------|----------------|-----------------|--------------------------|-----------------------|--------------------------------------------|--------------------------------------|
| App starts, no resumable track | STOPPED | ✗ | ✗ | No | | App starts, no resumable track | STOPPED | ? | ✗ | ✗ | ✗ | Only possible if service is running. |
| App starts, with resumable track | PAUSED | ✓ | ? | No | | App starts, with resumable track | PAUSED | ✓ | ✓ | ? | ✗ | ✓ |
| Active playing | PLAYING | ✓ | ✓ | No | | Active playing | PLAYING | ✓ | ✓ | ✓ | ✗ | ✓ |
| Paused by the user | PAUSED | ✓ | ? | stopForeground(DETACH) | | Paused by the user | PAUSED | ✓ | ✓ | ? | stopForeground(DETACH) | ✓ |
| Playback has finished / idle | STOPPED | ? | ? | stopForeground() or stopForeground(DETACH) | | Playback has finished / idle | STOPPED | ? | ? | ? | stopForeground() or stopForeground(DETACH) | Only possible if service is running. |
| | | | | | | | | | | | | |