public void stopPlayback() { if (nativeMode) { mVideoView.stopPlayback(); } else { mVlcPlayer.stop(); } }
@Override protected void onDetachedFromWindow() { super.onDetachedFromWindow(); defaultControls = null; stopPlayback(); overriddenPositionStopWatch.stop(); if (emExoPlayer != null) { emExoPlayer.release(); } if (audioCapabilitiesReceiver != null) { audioCapabilitiesReceiver.unregister(); audioCapabilitiesReceiver = null; } }
/** * Stops the current video playback and resets the listener states so that we receive the * callbacks for events like onPrepared */ public void reset() { stopPlayback(); setVideoURI(null); }
/** * Performs the functionality to stop the progress polling, and stop any other procedures from * running that we no longer need. */ private void onPlaybackEnded() { stopPlayback(); pollRepeater.stop(); }