javafx - Java MediaPlayer totalduration unknown -


I have a short question I am creating an audio player, but I have a small problem when I Use: Duration Period = this.mediaplayer.getTotalDuration (); The period will become unknown, then I have tested, media media player is not zero. Does anyone know how can I fix this problem? Thankyou very much.

you mediaPlayer.getCurrentTime ()

getTotalDuration

  receives total playback period including all chakras (repetition).  

getCurrentTime

  retrieves the current media time  

Comments

Popular posts from this blog

c++ - C/pp Sockets, recv()/send() works only under gdb -

GO: Serve static pages -

objective c - How to open front/back camera at the same time in iOS developing? -