简体   繁体   English

适当的Java RTP / RTCP堆栈

[英]Proper Java RTP/RTCP stack

I've been struggling to find a decent RTP stack implementation for Java . 我一直在努力为Java找到一个像样的RTP堆栈实现。 JMF or FMJ are not options here as I don't want all the bells and whistles of codecs and audio/video capture; JMF或FMJ不是这里的选项,因为我不希望编解码器和音频/视频捕获的所有花俏! I just need to create RTP streams, dump data in them and read data from them. 我只需要创建RTP流,在其中转储数据并从中读取数据。

I've been using jlibrtp but its API is shady, logging is based on System.out and every now and then I get a couple of NPE's. 我一直在使用jlibrtp,但它的API很阴暗,日志记录基于System.out, 偶尔我会得到几个NPE。

Also, RTCP support would be nice (again, I'd like to handle the control myself, I just need the API). 此外,RTCP支持会很好(再次,我想自己处理控件,我只需要API)。

So to sum up: 总结一下:

  • Clean API; 清洁API;
  • "Manual" data handling; “手动”数据处理;
  • Decent logging; 体面的伐木;
  • RTCP support; RTCP支持;
  • No dependencies; 没有依赖;
  • Optimised for server-side usage (many RTP sessions active at a given instant). 针对服务器端使用进行了优化(许多RTP会话在给定时刻处于活动状态)。

Is there such a library or will I have to code one? 是否有这样的图书馆或我必须编码一个? ;) ;)

https://github.com/jonbo372/efflux https://github.com/jonbo372/efflux

It depends on Netty (for I/O) and SLF4J (for logging). 它取决于Netty(用于I / O)和SLF4J(用于记录)。

You can download the rtp stack of Mobicents. 你可以下载rtp堆栈的Mobicents。 This stack is part of media server but you can take it as separate module. 此堆栈是介质服务器的一部分,但您可以将其作为单独的模块。 http://code.google.com/p/mediaserver/ http://code.google.com/p/mediaserver/

Inside the module you can find the tests that showing how to use it. 在模块内部,您可以找到显示如何使用它的测试。

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

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