The Java Media Framework enables media playback using Java (e.g. to playback MP3 files).
However, this set of libraries is quite dated. For example, the windows performance pack version requires you to enable the 16-bit operations for the installer. If you are using Windows 8 64-bit, you may not want to use this version. The official download is located here.
I downloaded the portable version (Cross-platform Java). However, after I tried to run my program to playback MP3 files, I realized that the codec for MP3 is not included by default. I finally managed to download a copy and placed it in the same directory (but the playback still did not work). I then realized that I must use the JMF Studio to update the registry file to include the MP3 code. After doing all this; I finally managed to get my code to playback the MP3. I have shared a link to the portable lib (with the registry file update). Unzip it into your jre\lib\ext directory.
Look out for the sample code use JMF to playback the MP3 in another post.
Subscribe to:
Post Comments (Atom)
Github CoPilot Alternatives (VSCode extensions)
https://www.tabnine.com/blog/github-copilot-alternatives/
-
The JavaFX APIs are built over a technology stack that enables rich-media applications (2D, 3D and audtio) to be built very quickly. In...
-
You need to add an attribute android:screenOrientation to the activity in the AndroidManifest file
-
Both JQuery and a library like Prototype JS use the $ as shortcut/alias for commands. In order not to prevent conflict, we can change the u...
No comments:
Post a Comment