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

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -