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