mirror of
https://github.com/samsonjs/media.git
synced 2026-03-30 10:15:48 +00:00
Fix docs on playUntilStartOfMediaItem to match playUntilPosition
The behaviour and docs of `playUntilPosition` were changed in00c7a9bcbb. 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 (cherry picked from commitfa3212e73e)
This commit is contained in:
parent
396ae86fdd
commit
b218d910ad
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