开发者

A Scala/Java media framework?

开发者 https://www.devze.com 2023-01-05 06:23 出处:网络
I had the idea to start investigating in creating and using media componen开发者_C百科ts in Java but I didn\'t find any convincing framework. The two that I found were

I had the idea to start investigating in creating and using media componen开发者_C百科ts in Java but I didn't find any convincing framework. The two that I found were

  • Java Media Framework (JMF) : it seems so powerful, not so fast but the last update was in 2003.
  • Java Media Components (JMC) : from what I found, it's easier to use than JMF but it's more limited too.

So I just wanted to know wich of these frameworks should I choose ? Are there any other options ? And can they be used from a Scala-Swing application ?

Thanks


In my experience all existing media frameworks for Java suck big time. What looks very promising in this area is JavaFX. And it integrates with Swing pretty well. I have no doubt that it will work with Scala too (even though I haven't tried).

My suggestion would be to investigate JavaFX for any media related work for any JVM based languages.


The JMF is easy to use, there's a book about JMF programming in pdf online google it and download it. It's very flexible and using JNI ( Java Native Interface ) you can created .d or .dll files and link them into the JNI JAR Class Library and then make your scala, c++, assembly code work, it works great with GNU C++, especially on the Cygwin platform.

Note JMF is 32-bit only, so download the 32-bit JRE and JDK for it.

0

精彩评论

暂无评论...
验证码 换一张
取 消