Hello all, I have to code a simple application to play a mP3 file in linux command line. like : PlayMp3 [File to play] It works in Ui mode with Jfx, but not in non-Ui applications. Is there a way to solve this ?
This is my original test project, which I just tried as a non gui app and it still works. I've attached the additional library as well if it helps. I had to remove the mp3 as it was too big to upload, it is obvious where you need to put your mp3filename,
The calls that make this work are made to private methods, which can only be accessed via reflection and not javaobject. You will probably have to find an alternative library that will play the MP3 without a gui. MP3 support is non existent in AWT, so it will have to be a library. I have heard that JLayer may help if you want to look into that.
This is how MP3 files can be played in ABMaterial applications (non-GUI), using Javascript.
(though I am not sure if this could be applicable in your case)
I would like during the event, for example press the button to the user heard the sound. ABMAudioPlayer does not have a background sound. Can you do it?