mirror of
https://github.com/samsonjs/media.git
synced 2026-04-26 14:57:47 +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
This commit is contained in:
parent
412c98e230
commit
f262e9132b
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