如何使用 Java EE 流式传输实时音频视频?
我想流式传输现场音频和视频通过 Internet 将视频从一个客户端传输到另一个客户端,我使用 WebSphere 社区版作为我的服务器,并且我应该使用 Java EE 技术来完成此任务。
我这样做是作为 IBM TGMC 项目的一部分。
哪种特定 API 或技术最适合我的目的?
我用谷歌搜索了 JMF,但听说它有点复杂而且老旧。有更好的选择吗?
I wanted to stream live audio & video from one client to another over the internet, I'm using WebSphere community edition as my server, and I'm supposed to do this task using Java EE technologies.
I'm doing this as a part of the project for IBM TGMC.
Which particular API or tech is best suited for my purpose?
I googled for JMF, but heard that it's a bit complex and old. Is there a better alternative?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
JMF 很复杂,因为媒体处理很复杂 - 没有“魔杖”。它不仅古老而且被遗弃。
JMF 对于它支持的编解码器工作得很好,但这些编解码器不像后来开发的一些编解码器那么压缩。 OTOH 如果您可以为感兴趣的编解码器开发一个编码器/解码器,那么让 JMF 使用它应该相对简单 - JMF 通过 SPI 支持新的编解码器。
不,据我所知,没有更好的选择。 FMJ 被设计为 JMF 的替代品,但据我所知,它也已被放弃。
JMF is complex because media handling is complex - there is no 'magic wand'. It is not only old but abandoned.
JMF works just fine for the codecs it supports, but those codecs are not as compressive as some that were developed later. OTOH if you can develop an encoder/decoder for the codec of interest, it should be relatively simple to get JMF to use it - JMF supports new codecs via the SPI.
No there is no better alternative that I know about. FMJ was designed as an alternative to JMF, but last I heard, it had also been abandoned.