Example #1
0
  /** If a video is currently in playback then the playback will be suspended */
  public void suspend() {
    videoViewImpl.suspend();
    setKeepScreenOn(false);

    if (videoControls != null) {
      videoControls.updatePlaybackState(false);
    }
  }
Example #2
0
  /**
   * Starts the playback for the video specified in {@link #setVideoURI(android.net.Uri)} or {@link
   * #setVideoPath(String)}. This should be called after the VideoView is correctly prepared (see
   * {@link #setOnPreparedListener(OnPreparedListener)})
   */
  public void start() {
    videoViewImpl.start();
    setKeepScreenOn(true);

    if (videoControls != null) {
      videoControls.updatePlaybackState(true);
    }
  }