java applet截图,如何使用applet从Java中的摄像头捕获视频?

博主分享了在Java环境中进行网络视频流传输遇到的问题,指出JMF过时且FMJ无法满足实时性要求。他们通过编写JNI来实现跨平台的视频捕获和编码/解码,但此方法需要为不同操作系统编写特定代码。使用JNLP(Java Web Start)作为替代方案,可以自动下载并安装适用于当前操作系统的正确JNI。然而,无论选择JNLP还是Applet,都需要创建签名的JAR文件才能运行。
摘要由CSDN通过智能技术生成

I am loking into capturing and streaming video over the network using a java applet. So far, it looks like JMF is outdated and FMJ won't be able to capture at any reasonable speed. Is there any other library that I can use to go about capturing and or streaming video from a webcam at at least 10-15 frames per second?

解决方案

I have done this recently and had to write a JNI to capture the video and encode it or decode it.

It is a pain because you have to write the JNI for each platform like Windows 32 and 64 bit, OSX 32 and 64 bit and Linux 32 and 64 bit.

Using JNLP (Java web start) is a better choice than an applet as it allows you to set it up so it will automatically download and install the correct JNI for the current O/S.

Either a JNLP or Applet will require you to generate a signed jar to work.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值