Skip to content

Commit

Permalink
Fix docs on playUntilStartOfMediaItem to match playUntilPosition
Browse files Browse the repository at this point in the history
The behaviour and docs of `playUntilPosition` were changed in
00c7a9b.

This change also affects `playUntilStartOfMediaItem` (since it delegates
to `playUntilPosition`), so the same doc change should also be made
here.

#minor-release

PiperOrigin-RevId: 607364897
  • Loading branch information
icbaker authored and copybara-github committed Feb 15, 2024
1 parent fb74383 commit fa3212e
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,12 @@ public static void playUntilPosition(ExoPlayer player, int mediaItemIndex, long

/**
* Calls {@link Player#play()}, runs tasks of the main {@link Looper} until the {@code player}
* reaches the specified media item or a playback error occurs, and then pauses the {@code
* player}.
* reaches the specified media item or a playback error occurs.
*
* <p>The playback thread is automatically blocked from making further progress after reaching the
* media item and will only be unblocked by other {@code run/playUntil...} methods, custom {@link
* RobolectricUtil#runMainLooperUntil} conditions or an explicit {@link
* ThreadTestUtil#unblockThreadsWaitingForProgressOnCurrentLooper()} on the main thread.
*
* <p>If a playback error occurs it will be thrown wrapped in an {@link IllegalStateException}.
*
Expand Down

0 comments on commit fa3212e

Please sign in to comment.