Ejemplo n.º 1
0
        @Override
        public void onReceive(final Context context, final Intent intent) {

          if (intent.getAction().equals(VideoConst.SEND_HOSTDP_TO_VIDEOPLAYER)) {
            String mVideoAction = intent.getStringExtra(VideoConst.EXTRA_NAME);

            if (mVideoAction.equals(VideoConst.EXTRA_VALUE_VIDEO_PLAYER_PLAY)) {

              mVideoView.start();
            } else if (mVideoAction.equals(VideoConst.EXTRA_VALUE_VIDEO_PLAYER_STOP)) {
              mVideoView.stopPlayback();
              finish();
            } else if (mVideoAction.equals(VideoConst.EXTRA_VALUE_VIDEO_PLAYER_PAUSE)) {

              mVideoView.pause();
            } else if (mVideoAction.equals(VideoConst.EXTRA_VALUE_VIDEO_PLAYER_RESUME)) {

              mVideoView.resume();
              mVideoView.start();
            } else if (mVideoAction.equals(VideoConst.EXTRA_VALUE_VIDEO_PLAYER_SEEK)) {
              int pos = intent.getIntExtra("pos", -1);
              mVideoView.seekTo(pos);
            }
          }
        }
 @Override
 public void onResume() {
   super.onResume();
   if (mHasPaused) {
     mVideoView.seekTo(mVideoPosition);
     mVideoView.resume();
     mHasPaused = false;
   }
   mHandler.post(mProgressChecker);
 }
Ejemplo n.º 3
0
 public void resume() {
   super.resume();
   for (Iterator iterator = listeners.iterator();
       iterator.hasNext();
       ((PlaybackListener) iterator.next()).resume()) {}
 }
Ejemplo n.º 4
0
 @Override
 protected void onResume() {
   super.onResume();
   videoView.resume();
 }