From 74fb05cfbe41cb1a5b51aff2bfcaf91a51e6ed32 Mon Sep 17 00:00:00 2001 From: samrobinson Date: Tue, 26 Oct 2021 12:35:36 +0100 Subject: [PATCH] Update MediaMetadata javadoc to clarify nuances. PiperOrigin-RevId: 405616711 --- .../src/main/java/com/google/android/exoplayer2/Player.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/library/common/src/main/java/com/google/android/exoplayer2/Player.java b/library/common/src/main/java/com/google/android/exoplayer2/Player.java index 34d94ede8b..7c00e1dfb9 100644 --- a/library/common/src/main/java/com/google/android/exoplayer2/Player.java +++ b/library/common/src/main/java/com/google/android/exoplayer2/Player.java @@ -141,7 +141,11 @@ public interface Player { * *

The provided {@link MediaMetadata} is a combination of the {@link MediaItem#mediaMetadata} * and the static and dynamic metadata from the {@link TrackSelection#getFormat(int) track - * selections' formats} and {@link Listener#onMetadata(Metadata)}. + * selections' formats} and {@link Listener#onMetadata(Metadata)}. If a field is populated in + * the {@link MediaItem#mediaMetadata}, it will be prioritised above the same field coming from + * static or dynamic metadata. + * + *

This method may be called multiple times in quick succession. * *

{@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.