Java 视频如何在友好的安装过程中工作?
如何使用 Java 捕获视频?你必须使用JMF吗?在我的研究中,音频部分已解决,有人不需要带有 JMF 的音频(以防减少安装麻烦)
对于 Java 视频,在我的测试用例中:
如果我的 PC 中没有安装 JMF,它会说包不存在,但是我安装了Java。 import javax.media.*;
在我的第二台 PC 上安装 JMF 后,它就可以工作了。这意味着需要单独安装 JAVA + JMF。
但是:
- 有很多用户,想要简单的安装过程,例如:下载->安装。点击安装->运行->谈话和观看
或
- 许多用户不遵循安装JAVA,然后安装JMF,最后安装我的应用程序来谈话和观看
解决方案:
JNLP是一个希望,但我可以嵌入整个JMF作为源跨平台并将其部署在我的应用程序中?尽量减少安装过程,重点关注用户友好的安装方法。
有没有其他方法可以最大程度地减少安装问题,并完全切换到其他一些类/库,我可以在其中进行 h264 的 RAW 视频捕获、压缩视频、文本重叠、流式传输等?
跟进:
JMF Cross platform:
.
├── bin
│ ├── jmfcustomizer
│ ├── JMF.ico
│ ├── jmfinit
│ ├── jmfregistry
│ └── jmstudio
├── doc
│ ├── attributions.html
│ ├── formats.html
│ └── readme.html
└── lib
├── customizer.jar
├── jmf.jar
├── jmf.properties
├── mediaplayer.jar
└── multiplayer.jar
3 directories, 13 files
How can you capture Video using Java ? You have to use JMF ? In my research Audio part is solved, someone would not require Audio with JMF (in case to reduce installation headaches)
For Java Video, In my test case:
Without JMF installed in my PC, it says package does not exist, but i have Java installed.
import javax.media.*;With JMF installed in my second PC, it works. which means JAVA + JMF seperately need to be installed.
But:
- There are many users, want simple installation procedure, for example: Download -> click install -> run -> talk and watch
OR
- Many users dont follow install JAVA and then install JMF and then finally install my application to talk and watch
Solution:
JNLP is one hope, but can i embed whole JMF as source for cross platform and deploy it within my application ? To minimize the installation procedure to focus user friendly installation method.
Is there any other way arround to minimize this installations headache, and completely switch to some other class/libraries, where i can do RAW video capture for h264, compress video, text overlap, streaming etc etc ?
Follow ups:
JMF Cross platform:
.
├── bin
│ ├── jmfcustomizer
│ ├── JMF.ico
│ ├── jmfinit
│ ├── jmfregistry
│ └── jmstudio
├── doc
│ ├── attributions.html
│ ├── formats.html
│ └── readme.html
└── lib
├── customizer.jar
├── jmf.jar
├── jmf.properties
├── mediaplayer.jar
└── multiplayer.jar
3 directories, 13 files
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
JMF 可以通过 JNLP 部署。 (1)
这可以通过从 installer-desc JNLP 中调用安装过程来实现。当应用程序调用时,安装程序被调用一次。首次推出。
至于在安装程序 JNLP 中做什么,有两个选项。
一种方法是调用普通安装程序(例如,对于 Windows - 这将是 .exe),但这样做的缺点是会提示用户重新启动。我通过不重新启动来检查,发现这是不必要的,但该消息令人恼火。 JWS 可以对下载进行分区,以便 Windows 获取 .exe,而 Mac 和 *nix 则获取适合它们的任何安装程序。
另一种方法是简单地将适当的 JMF Jars 添加到主 JNLP 文件的资源部分中,但您可能需要编写一些代码来调用 JMFRegistry,我认为这是在安装程序中自动完成的。
1)注意:我没有测试过这两种方法。
编辑:忘记提及我有一个小演示。通过调用的 ExtensionInstallerService 的。上面提到的安装程序描述。
JMF can be deployed via JNLP. (1)
It would be achieved by calling the install procedure from within an installer-desc JNLP. The installer is invoked a single time, when the app. is first launched.
As to what to do within that installer JNLP, there are two options.
One way is to call the normal installer (e.g. for Windows - that would be the .exe), but that has the disadvantage that the user would be prompted to reboot. I checked that by not rebooting and found it to be unnecessary, but the message is irritating. JWS can partition the download so that Windows gets the .exe, while Mac and *nix get whatever installer is appropriate to them.
The other way is to simply add the appropriate JMF Jars into the resources section of your main JNLP file, but you might need to write some code to invoke the JMFRegistry, which I think is done automatically in the installer.
1) Note: I have tested neither method.
Edit: Forgot to mention that I have a little demo. of the ExtensionInstallerService that is invoked via. the installer-desc mentioned above.