Merge "MediaPlayer: fix java doc for setSurface and setDisplay." into nyc-dev

This commit is contained in:
Wei Jia
2016-06-14 18:50:00 +00:00
committed by Android (Google) Code Review

View File

@@ -709,6 +709,8 @@ public class MediaPlayer extends PlayerBase
* played. * played.
* *
* @param sh the SurfaceHolder to use for video display * @param sh the SurfaceHolder to use for video display
* @throws IllegalStateException if the internal player engine has not been
* initialized or has been released.
*/ */
public void setDisplay(SurfaceHolder sh) { public void setDisplay(SurfaceHolder sh) {
mSurfaceHolder = sh; mSurfaceHolder = sh;
@@ -739,6 +741,8 @@ public class MediaPlayer extends PlayerBase
* *
* @param surface The {@link Surface} to be used for the video portion of * @param surface The {@link Surface} to be used for the video portion of
* the media. * the media.
* @throws IllegalStateException if the internal player engine has not been
* initialized or has been released.
*/ */
public void setSurface(Surface surface) { public void setSurface(Surface surface) {
if (mScreenOnWhilePlaying && surface != null) { if (mScreenOnWhilePlaying && surface != null) {