Updated Playback states & service states (markdown)
parent
9069abbb05
commit
20879f4201
|
@ -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. |
|
||||
| | | | | | | |
|
Loading…
Reference in New Issue