Updated Playback states & service states (markdown)

tzugen 2021-05-04 12:36:46 +02:00
parent 9069abbb05
commit 20879f4201
1 changed files with 8 additions and 8 deletions

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