Skip to content Skip to sidebar Skip to footer

Play Mediaplayer For Certain Duration

I want to play the mediaplayer for just 10 sec. How to control it?

Solution 1:

You could use TimerTask to schedule a MediaPlayer.stop() to run after 10 secs.


Post a Comment for "Play Mediaplayer For Certain Duration"