简体   繁体   English

通过简单对等点 (WebRTC) 的视频流

[英]Video streaming over simple-peer (WebRTC)

I want to make a website (using NodeJS and Express deployed on Heroku ) where a user can stream any of his local video (using videojs) to other users connected to each other with simple-peer currently what I got is that I make chunks of the local video and send them over using simple-peer data channels and it works fine for 2 users (I can get more user inter connected but the app crashes if I send data to multiple user at the same time) but something definitely can be a better thing to do other than this way.我想创建一个网站(使用部署在Heroku上的NodeJSExpress ),用户可以在其中 stream 将他的任何本地视频(使用 videojs)发送给其他通过简单对等相互连接的用户目前我得到的是我制作了大块本地视频并使用简单对等数据通道发送它们,它适用于 2 个用户(我可以让更多用户相互连接,但如果我同时向多个用户发送数据,应用程序会崩溃)但绝对可以是比这种方式更好的事情。 I looking for other options here and how can I achieve this.我在这里寻找其他选择以及如何实现这一目标。

Maybe its worth to try PeerJS , it's a very easy to use WebRTC simplification and also in my experience stable.也许值得尝试PeerJS ,它是一个非常易于使用的 WebRTC 简化,并且在我的经验中也很稳定。 A connection between more than two users should also be possible.两个以上用户之间的连接也应该是可能的。

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

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