How can i change the position of a progressBar, after the duration of a videoView?
问题 i have the following code: final SeekBar videoBar = (SeekBar) findViewById(R.id.videoBar); final VideoView videoView = (VideoView) findViewById(R.id.videoViewPaint); videoView.setVideoPath(videoPath); videoView.start(); videoView.setOnPreparedListener(new MediaPlayer.OnPreparedListener() { @Override public void onPrepared(MediaPlayer mp) { long duration = videoView.getDuration(); videoBar.setMax((int) duration); LogService.log("in runnable", "videoView duration= " + videoView.getDuration());