/** 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); } }
/** * 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); } }