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
Post a Comment