¡@

Home 

2014/10/16 ¤W¤È 08:19:38

android Programming Glossary: mp.getcurrentposition

Looking for a working example of addTimedTextSource for adding subtitle to a video from an .srt file in Android 4.1

http://stackoverflow.com/questions/13422673/looking-for-a-working-example-of-addtimedtextsource-for-adding-subtitle-to-a-vid

MediaPlayer mp final TimedText text if text null handler.post new Runnable @Override public void run int seconds mp.getCurrentPosition 1000 txtDisplay.setText secondsToDuration seconds text.getText To display the seconds in the duration format 00 00..

android: how do i use the progress bar?

http://stackoverflow.com/questions/2967337/android-how-do-i-use-the-progress-bar

0 int total mp.getDuration while mp null currentPosition total try Thread.sleep 1000 currentPosition mp.getCurrentPosition catch InterruptedException e return catch Exception e return progressBar.setProgress CurrentPosition share improve..

Android media player and seekbar sync issue

http://stackoverflow.com/questions/5242918/android-media-player-and-seekbar-sync-issue

seekbar.setMax total while gs.mp null currentPosition total try Thread.sleep 1000 currentPosition gs.mp.getCurrentPosition catch InterruptedException e return catch Exception e return seekbar.setProgress currentPosition Service class that.. String.valueOf duration return duration public int getCurrentDuration int index int current_position current_position mp.getCurrentPosition Log.v Current Dur String.valueOf current_position return current_position android media player seekbar share improve.. MediaPlayer mp seekBar.setMax mp.getDuration new Thread new Runnable @Override public void run while mp null mp.getCurrentPosition mp.getDuration seekBar.setProgress mp.getCurrentPosition Message msg new Message int millis mp.getCurrentPosition..