Improve doc for setKeepContentOnPlayerReset.
This also applies when seeking or transitioning to unprepared media, which isn't clear from the current documentation. Issue:#5267 PiperOrigin-RevId: 226486685
This commit is contained in:
parent
71f72c5953
commit
3833d98755
@ -679,8 +679,9 @@ public class PlayerView extends FrameLayout {
|
||||
/**
|
||||
* Sets whether the currently displayed video frame or media artwork is kept visible when the
|
||||
* player is reset. A player reset is defined to mean the player being re-prepared with different
|
||||
* media, {@link Player#stop(boolean)} being called with {@code reset=true}, or the player being
|
||||
* replaced or cleared by calling {@link #setPlayer(Player)}.
|
||||
* media, the player transitioning to unprepared media, {@link Player#stop(boolean)} being called
|
||||
* with {@code reset=true}, or the player being replaced or cleared by calling {@link
|
||||
* #setPlayer(Player)}.
|
||||
*
|
||||
* <p>If enabled, the currently displayed video frame or media artwork will be kept visible until
|
||||
* the player set on the view has been successfully prepared with new media and loaded enough of
|
||||
|
Loading…
x
Reference in New Issue
Block a user