/**
  * Sets the Surface to use for displaying the video portion of the media. This is similar to
  * {@link #setDisplay(SurfaceHolder)}.
  *
  * @param surface the Surface to use for video display
  */
 public void setSurface(Surface surface) {
   if (surface == null) {
     releaseDisplay();
   } else {
     mSurfaceHolder = null;
     mSurface = surface;
     _setVideoSurface();
     updateSurfaceScreenOn();
   }
 }
 /**
  * Sets the SurfaceHolder to use for displaying the video portion of the media. This call is
  * optional. Not calling it when playing back a video will result in only the audio track being
  * played.
  *
  * @param sh the SurfaceHolder to use for video display
  */
 public void setDisplay(SurfaceHolder sh) {
   if (sh == null) {
     releaseDisplay();
   } else {
     mSurfaceHolder = sh;
     mSurface = sh.getSurface();
     _setVideoSurface();
     updateSurfaceScreenOn();
   }
 }