问题
I'm trying Java Media Framework and I'm noticing that it doesn't support many video formats and it seems not to be updated enough. Is there an alternative for JMF for Windows Java Desktop Applications?
回答1:
Yes, I'd definitely recommend staying away from JMF. I've felt your frustrations! Personally I recommend VLCJ, especially if you need support for a wide range of formats - I'm using it in my application and it works very well.
The following questions may also be relevant:
Dealing with video (DVDs, .avi .mkv) in Java
Adding other video codecs / DVD support to JavaFX 2.2
回答2:
In short, it looks like a dead-end. I'd switch to JavaFX 2.1 - it's got much better support and seems to be "live" as well. There's some more information right here on Stack Overflow as well : Adding other video codecs / DVD support to JavaFX 2.2
来源:https://stackoverflow.com/questions/10598482/play-video-in-a-java-desktop-application