MediaPlayer and current time
Is there a way for one to retrieve the current time of a Media object, say an mp3, while it is being played by MediaPlayer? For example, let's say I would like to display the time of a song while it is playing... so that the display would start at 0:00 and continue increasing until the end of the song. I couldn't find something in the javafx.scene.media.MediaPlayer API to retrieve this value. I believe I saw something to use to set the current time, which is the field MediaPlayer.currentTime field, but I didn't see how I could retrieve the current time so that I could bind to it and display it as it changes. Any ideas?