对等2对等库使用websocket广播实时视频? [英] peer 2 peer libraries to broadcast real time video using websocket?

查看:96
本文介绍了对等2对等库使用websocket广播实时视频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,使用对等2对等方广播实时视频是一个不错且成功的想法吗?我知道它将使应用程序具有可调用性,并允许更多的用户获得实时视频,而又不会对服务器造成太大影响,但是在性能和​​视频质量方面都存在缺点吗?

First of all, is it a nice and successfull idea to use peer 2 peer to broadcast realtime video ? I know that it will make the application scallable and will allow more users to get the real time video without affecting the server much, but are there drawbacks performance-wise and video quality-wise ?

现在是一个特殊的问题,我的意图是共享实时视频,然后使用websocket在webclient级别使用peer2peer,是否有用于此目的的库?

Now the specefic question, my intention is to share realtime video, and then use peer2peer in the webclient level using websockets, are there any libraries that are used for this purpose?

我知道使用UDP进行流传输应该更好,但随后的帖子说,即使以30fps的速度使用websockets(TCP)也足够快(

I know that streaming should be better using UDP but the follwing post says that even using websockets (TCP) at 30fps is fast ennough (Video streaming over websockets using JavaScript)

推荐答案

您可以查看 IceLink (免责声明:我在FM上工作),它将帮助您做到这一点.

You can check out IceLink (disclaimer: I work @ FM), it'll help you do this.

实际上,我已经按照这些思路为我们的客户构建了一些东西,其中每个连续的客户都成为潜在的分发"节点.因此,X客户端连接到主服务器,然后其他客户端可以从那里连接到这些客户端(前提是它们具有适当的带宽/CPU/等)以进行重新广播.这是一个超节点/网格概念,并且运行良好.

I've actually built something along these lines for a client of ours, where each successive client becomes a potential "distribution" node. So X clients connect to the main server, and from there, other clients can connect to those clients (provided they have appropriate bandwidth/CPU/etc) for a re-broadcast version. It's sort of a supernode/mesh concept, and it works reasonably well.

这篇关于对等2对等库使用websocket广播实时视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆