Hi, when I use javafx.scene.media.MediaPlayer to play a music file (mp3/wav), I am physically unable to delete the file (after stopping the music).
It just says the JVM is still using it.
Of course if I quit the program I can delete, but I really need to have the delete functionality whilst program is running.
I've looked a little at the API for javafx.scene.media.MediaPlayer and javafx.scene.media.Media.
Similarly to when reading/writing to file, one should always close any streams that are still open, but I can't seem to flush or close music file playing with MediaPlayer.