Fix javaDoc of onMediaItemTransition

PiperOrigin-RevId: 322145517
This commit is contained in:
bachinger 2020-07-20 16:04:20 +01:00 committed by Oliver Woodman
parent df1536ab24
commit 7c995a3cfa

View File

@ -471,9 +471,13 @@ public interface Player {
Timeline timeline, @Nullable Object manifest, @TimelineChangeReason int reason) {} Timeline timeline, @Nullable Object manifest, @TimelineChangeReason int reason) {}
/** /**
* Called when playback transitions to a different media item. * Called when playback transitions to a media item or starts repeating a media item according
* to the current {@link #getRepeatMode() repeat mode}.
* *
* @param mediaItem The {@link MediaItem}. May be null if the timeline becomes empty. * <p>Note that this callback is also called when the playlist becomes non-empty or empty as a
* consequence of a playlist change.
*
* @param mediaItem The {@link MediaItem}. May be null if the playlist becomes empty.
* @param reason The reason for the transition. * @param reason The reason for the transition.
*/ */
default void onMediaItemTransition( default void onMediaItemTransition(