Screentoaster,他们是怎么做到的?
我需要开发一个基于浏览器的应用程序来记录用户屏幕,最好是在 flv 上。用java来做这件事就完美了。
这正是他们在 screentoaster.com 上仅使用 javaWS 应用程序所实现的目标。有人知道他们是如何做到的吗?他们使用了 Xuggler 吗?
此致,
I need to develop a browser based application that record the user screen, much preferably on flv. Also doing that with java would be perfect.
That's exactly what they accomplished at screentoaster.com , with just a javaWS app. Would anyone have an idea about how they've done it? Did they use Xuggler?
Best Regards,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
他们似乎正在使用 Java Robot 类,并使用他们使用的自定义构建 JNI 库嵌入了 libx264 编码器。顺便说一句,考虑到他们随 libx264 一起发布并且是安装在客户端计算机上的下载(例如检查二进制文件的 Java 缓存),他们应该将其代码许可为 GPL 以便使用 libx264 进行编译。您可能需要跟进他们以获取来源。
They appear to be using the Java Robot class, and have embedded the libx264 encoder using a custom build JNI library they used. Incidentally, given that they are shipping with libx264 and it's a download that installs on client computers (e.g. check the Java caches for the binaries), they should be licensing their code as GPL to compile with libx264. You may want to follow up with them to get the source.
这可以使用 Java 实现,如本答案所述: 有没有办法使用 Java 截取屏幕截图并将其保存为某种图像? .
您需要使用已签名的 Java 小程序(或 Java Webstart 应用程序),因为未签名的 Java 代码将无法访问本地屏幕(明显的安全问题)。除此之外,它应该很简单。
This is possible using Java, as described in this answer: Is there a way to take a screenshot using Java and save it to some sort of image? .
You'll need to use a signed Java applet (or Java Webstart app), as unsigned Java code will not have access to the local screen (obvious security problem). Other than that, it should be straightforward.