Exemplo n.º 1
0
 public void handleMessage(Message msg) {
   if (videoView == null) {
     return;
   }
   timeString = (new Timestamp(System.currentTimeMillis())).toString().substring(11, 16);
   timeTextView.setText(timeString);
   play_tiem.setText(StringUtils.generateTime(videoView.getCurrentPosition()));
   if (videoView != null) {
     seekBar(videoView.getCurrentPosition());
   }
 };
Exemplo n.º 2
0
 @Override
 public void onPrepared(MediaPlayer arg0) {
   nextButton.setEnabled(true);
   fontbButton.setEnabled(true);
   bar.setVisibility(View.GONE);
   if (path.startsWith("http")) {
     videoView.setBufferSize(1024 * 1000);
   } else {
     videoView.setBufferSize(0);
   }
   endTime.setText(StringUtils.generateTime(videoView.getDuration()));
   bar.setVisibility(View.GONE);
   if (pauseSize > 0) {
     videoView.seekTo(pauseSize);
   }
   pauseSize = 0;
 }