What library to use for a Java-based media player?

I am working on a media player, such as a Java application (this is a swing based application), and I want it to work smoothly using as many file formats as possible. I want to be able to take in a bunch of music files, and then get the tag information (artist / album / songname / etc), and then play them. I was joking a bit, but it's hard to find a library that will support .m4a, .mp3. and possibly even .flac files. Does anyone know of a library that will do what I want? Thanks!

+4
source share
2 answers

JMF is, as far as possible, quite outdated, unsupported, difficult to distribute, and in my experience has quite a few unpleasant errors that occur when you least expect them. And if you can make FMJ work at all, good luck - they are proud that it is relevance, slowdown of substitution, but my experience makes me distinguish between these two points.

Personally, I would not even think about it - just use separate libraries for each format or group of formats that you want to support. JLayer will be good, since it can do quite a bit, JFlac will make your flac files on top of this.

+1
source

There's JMF - see http://en.wikipedia.org/wiki/Java_Media_Framework , which also lists some alternatives. I had pretty mixed success with JMF; it worked well for some static MPEG files, but did not seem compatible with the streaming sources we used at that time (a couple of years ago).

0
source

Source: https://habr.com/ru/post/1394907/


All Articles