Commit 9728ac54 by tonihei Committed by Oliver Woodman

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
parent 3c010775
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment