mirror of
https://github.com/samsonjs/media.git
synced 2026-03-25 09:25:53 +00:00
Update notification when timeline changes
Notification buttons for next/previous should change based on the new index of the currently played media item after another media item is added or removed from a playlist. Issue: androidx/media#130 PiperOrigin-RevId: 485869144
This commit is contained in:
parent
be7dd95692
commit
2633f37a2f
1 changed files with 2 additions and 1 deletions
|
|
@ -294,7 +294,8 @@ import java.util.concurrent.TimeoutException;
|
|||
if (events.containsAny(
|
||||
Player.EVENT_PLAYBACK_STATE_CHANGED,
|
||||
Player.EVENT_PLAY_WHEN_READY_CHANGED,
|
||||
Player.EVENT_MEDIA_METADATA_CHANGED)) {
|
||||
Player.EVENT_MEDIA_METADATA_CHANGED,
|
||||
Player.EVENT_TIMELINE_CHANGED)) {
|
||||
mediaSessionService.onUpdateNotification(session);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue