简体   繁体   English

Tomcat上的Web应用程序中的JMF

[英]JMF in a web-application on Tomcat

I created a web application that is using Java Media Framework. 我创建了一个使用Java Media Framework的Web应用程序。 It runs in my unit tests and successfully finds the capturing devices. 它在我的单元测试中运行,并成功找到了捕获设备。 However when I deploy my application to Tomcat the same method returns an empty list of Capturing devices as if Tomcat is missing something that helps JMF to find media devices. 但是,当我将应用程序部署到Tomcat时,相同的方法将返回捕获设备的空列表,就好像Tomcat缺少有助于JMF查找媒体设备的内容一样。

I suspect jmf.jar cannot find native dll's of JMF package, which somehow are visible in Eclipse but are not visible when application is deployed to Tomcat. 我怀疑jmf.jar找不到JMF包的本机dll,它在Eclipse中是可见的,但是在将应用程序部署到Tomcat时是不可见的。

Can anyone give a hint how to deploy jmf correctly? 任何人都可以提示如何正确部署jmf吗?

As example: this application http://sourceforge.net/projects/webjmf/ claims that it is working, however when war file is deployed to my Tomcat it cannot find any capturing devices. 例如:该应用程序http://sourceforge.net/projects/webjmf/声称它正在运行,但是当war文件部署到我的Tomcat时,它找不到任何捕获设备。

Solution is to copy all JMF dll files into /bin directory. 解决方案是将所有JMF dll文件复制到/ bin目录。 DLL files are native libraries that are used by jmf.jar to interact with Web Cam. DLL文件是jmf.jar用于与Web Cam交互的本机库。 So these libraries should be loaded by Tomcat. 因此,这些库应由Tomcat加载。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM