Blueforcer Well-Known Member Licensed User Longtime User Jan 1, 2020 #1 i need to play a mp3 in my non-Gui application. i tried this workaround: MP3 Player in B4J non-Ui Application 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 ? www.b4x.com But unfortunally this also depends on javaFX B4X: Copy java.lang.NoClassDefFoundError: javafx/beans/value/ChangeListener is there another way?
i need to play a mp3 in my non-Gui application. i tried this workaround: MP3 Player in B4J non-Ui Application 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 ? www.b4x.com But unfortunally this also depends on javaFX B4X: Copy java.lang.NoClassDefFoundError: javafx/beans/value/ChangeListener is there another way?
stevel05 Expert Licensed User Longtime User Jan 1, 2020 #2 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, Attachments NGM.zip NGM.zip 1.1 KB · Views: 491 mp3transform.jar mp3transform.jar 107.8 KB · Views: 503 Upvote 0
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,
Blueforcer Well-Known Member Licensed User Longtime User Jan 1, 2020 #3 It only works if i use an JRE with integrated JavaFX. without it crashes on line "Dim Player As Reflector" with B4X: Copy java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NoClassDefFoundError: javafx/beans/value/ChangeListener Last edited: Jan 1, 2020 Upvote 0
It only works if i use an JRE with integrated JavaFX. without it crashes on line "Dim Player As Reflector" with B4X: Copy java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NoClassDefFoundError: javafx/beans/value/ChangeListener
stevel05 Expert Licensed User Longtime User Jan 1, 2020 #4 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. Upvote 0
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.
Philip Chatzigeorgiadis Active Member Licensed User Longtime User Jan 1, 2020 #5 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) [ABMaterial] sound during an event 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? www.b4x.com Upvote 0
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) [ABMaterial] sound during an event 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? www.b4x.com