media/libraries/session/src
jbibik 4b5a457790 Notify listeners of error changes when masking in MediaControllerImplBase
Currently, the implementation of `MediaControllerImplBase` differs from `ExoPlayerImpl`. The listeners of the former are notified of player error changes only in `onPlayerInfoChanged` and not `updatePlayerInfo` (masking method). Whereas `ExoPlayerImpl` has one unified method - `updatePlaybackInfo` - which sends the events to all the available listeners.

This change fixes the lack of 2 particular callbacks - `onPlayerErrorChanged` and `onPlayerError`, however, there might be more differences. Ideally, there should be a unified method for oldPlayerInfo/newPlayerInfo comparison-update-notify-listeners flow.

Issue: androidx/media#449

#minor-release

PiperOrigin-RevId: 539961618
2023-06-14 20:32:55 +01:00
..
androidTest Add injection of BitmapLoader from MediaSession. 2022-10-31 11:32:30 +00:00
main Notify listeners of error changes when masking in MediaControllerImplBase 2023-06-14 20:32:55 +01:00
test Add seekPrev and seekNext buttons on the default compact notification 2023-06-09 13:54:13 +00:00