mirror of
https://github.com/samsonjs/media.git
synced 2026-04-09 11:55:46 +00:00
Fix docs on playUntilStartOfMediaItem to match playUntilPosition
The behaviour and docs of `playUntilPosition` were changed in
00c7a9bcbb.
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
This commit is contained in:
parent
fb7438378d
commit
fa3212e73e
1 changed files with 6 additions and 2 deletions
|
|
@ -340,8 +340,12 @@ public class TestPlayerRunHelper {
|
|||
|
||||
/**
|
||||
* 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}.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue