mirror of
https://github.com/samsonjs/media.git
synced 2026-04-07 11:35:46 +00:00
Exclude tracks from PlayerInfo if not changed
This change includes a change in the `IMediaController.aidl` file and needs
to provide backwards compatibility for when a client connects that is of an older or
newer version of the current service implementation.
This CL proposes to create a new AIDL method `onPlayerInfoChangedWithExtensions`
that is easier to extend in the future because it does use an `Bundle` rather than
primitives. A `Bundle` can be changed in a backward/forwards compatible way
in case we need further changes.
The compatibility handling is provided in `MediaSessionStub` and `MediaControllerStub`. The approach is not based on specific AIDL/Binder features but implemented fully in application code.
Issue: androidx/media#102
#minor-release
PiperOrigin-RevId: 490483068
(cherry picked from commit f262e9132b)
This commit is contained in:
parent
989e2f71d3
commit
20e54a829d
1 changed files with 2 additions and 1 deletions
|
|
@ -674,7 +674,8 @@ public interface Player {
|
|||
* to the current {@link #getRepeatMode() repeat mode}.
|
||||
*
|
||||
* <p>Note that this callback is also called when the playlist becomes non-empty or empty as a
|
||||
* consequence of a playlist change.
|
||||
* consequence of a playlist change or {@linkplain #onAvailableCommandsChanged(Commands) a
|
||||
* change in available commands}.
|
||||
*
|
||||
* <p>{@link #onEvents(Player, Events)} will also be called to report this event along with
|
||||
* other events that happen in the same {@link Looper} message queue iteration.
|
||||
|
|
|
|||
Loading…
Reference in a new issue