@Override public void onPause() { mHasPaused = true; mHandler.removeCallbacksAndMessages(null); mVideoPosition = mVideoView.getCurrentPosition(); mVideoView.suspend(); super.onPause(); }
@Override protected void onPause() { super.onPause(); videoView.suspend(); }
public void suspend() { super.suspend(); for (Iterator iterator = listeners.iterator(); iterator.hasNext(); ((PlaybackListener) iterator.next()).suspend()) {} }
@Override public void onDestroy() { super.onDestroy(); mVideoView.suspend(); }