我可以使用 CORBA/RMI 进行实时音频流吗?

发布于 2024-09-14 01:39:36 字数 188 浏览 8 评论 0原文

我需要在服务器/客户端之间进行通信。我看到CORBA用于不同的语言来像RMI一样工作,是吗? 在我的应用程序中,我必须在客户端/服务器之间传输对象、传输二进制文件(我看到可以使用 RMI 来完成)以及从一个客户端到另一个客户端播放实时流媒体。 我正在考虑 CORBA,因为如果需要的话它也可以与 C++ 一起使用,不是吗? 那么我可以用 CORBA 玩流媒体吗?

I need to communicate between server/client. I saw that CORBA is used for different languages to work like RMI, is it?
In my application I will have to transfer objects between client/server, transfer binary files (which I saw that I can do with RMI) and also play live streaming from one client to another.
I was thinking about CORBA because it also can be used with C++ if I need, isnt it?
So can I play streaming with CORBA?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

爱本泡沫多脆弱 2024-09-21 01:39:36

RMI 和 CORBA 是分布式对象技术。然后,您可以像调用本地对象一样调用远程对象的方法。

当然,如果您实现了这样做的方法(例如void sendChunk(byte[] data)),您就可以发送和接收字节。但我认为它们不适合流媒体。同样对于流,您应该选择一些东西来解决流的服务质量——而 RMI 或 CORBA 绝对不会这样做。为此,我可能会看看 UDP 套接字或类似的东西,如果通道饱和,它只会丢弃数据包。

RMI and CORBA are technologies for distributed objects. You then invoke methods on a remote object the same way as on a local object.

Sure, you can send and receive bytes if you implement methods that do so (e.g. void sendChunk(byte[] data)). But I wouldn't consider them appropriate for streaming. Also for streaming, you should pick something to address the quality of service of the stream -- which RMI or CORBA definitively don't do. For that I would maybe have a look at UDP sockets, or something like that, which just drops packets if the channel is saturated.

后来的我们 2024-09-21 01:39:36

CORBA 为您提供了很多服务,但它可能不是流媒体的最佳选择。我能想到的两个原因(尽管也可以找到更多反对的理由)

  1. 对象有效负载不仅仅是数据(编组和解组)
  2. CORBA(特别是实现)通常会争取良好的 QoS,也就是会重试相同的内容也就是说

,已经证明 ORB 可以实时 沟通也是如此。因此,CORBA 作为一个框架并不是完全不可能的。

但我不确定 CORBA 的多播通信功能。

CORBA provides you a lot of services and it possibly is not the best of the options for streaming media. Two reasons I can think of (though one can find more reasons against too)

  1. The object payload is more than just the data (marshalling and unmarshalling)
  2. CORBA (specifically the implementations) generally strive for a good QoS aka there will be retries for the same call

That said, it has been demonstrated that ORBs can work with real-time communication too. So, CORBA as a framework is not completely off the table.

I am not sure of the multicast communication capabilities of CORBA though.

坚持沉默 2024-09-21 01:39:36

如果您一心想使用 CORBA 来解决这个问题,请查看 RT-CORBA(实时 corba)。我相信 TAO 已经实现了它,但是我从未使用过 RT-CORBA,所以我无法直接谈论它是否能为您提供流媒体所需的性能。

If you're hell bent on using CORBA to address this, have a look at RT-CORBA (Real-time corba). I believe TAO has an implementation of it, however I've never used RT-CORBA so I can't speak first-hand if it'll give you the performance you'll require for streaming.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文