简体   繁体   English

使用WebRTC捕获来自网络摄像机的媒体流,将其发布到媒体服务器并从那里分发

[英]Use WebRTC to capture media stream from web camera, post the stream to a media server and distribute it from there

I want to broadcast a video stream to many receivers, lets say 5000 - 15000. I only want to use WebRTC to send the media stream from the broadcaster's web camera ( getUserMedia() ) to a server (fe: wowza). 我想向许多接收者广播视频流,比如说5000-15000。我只想使用WebRTC将媒体流从广播者的网络摄像机( getUserMedia() )发送到服务器(fe:wowza)。 Transcode the media stream to HLS and MPEG DASH and distribute it to the receivers. 将媒体流转码为HLS和MPEG DASH,并将其分发给接收器。

So we have B1 who's stream gets distributed to R1, R2, ..., R5000 over a media server. 因此,我们有B1,其流通过媒体服务器分配到R1,R2,...,R5000。

As far as i know WebRTC is not designed for one to many architecture. 据我所知,WebRTC并非为一对多架构而设计。 I do not want to use P2P. 我不想使用P2P。 The main goal would be to get rid of flash to access the broadcaster's web camera. 主要目标是摆脱闪存,以访问广播公司的网络摄像机。

Please note the stream will host adult content and the broadcaster can turn the free stream to private any time. 请注意,该流将托管成人内容,广播公司可以随时将免费流转为私有流。 Which means nobody but the paying members should have access to it only. 这意味着除付费会员外,任何人都只能访问它。

WebRTC is designed as many-to-many. WebRTC设计为多对多。 But it is not only for getting a stream from the webcam. 但这不仅是为了从网络摄像头获取视频流。 It also encodes it and sends it over the network. 它还对它进行编码并通过网络发送。 Plus P2P connection. 加上P2P连接。

If you want to achieve what you're saying, I think you can make a P2P connection between the broadcaster and the media server. 如果您想实现您的意思,我认为您可以在广播公司和媒体服务器之间建立P2P连接。 And in the media server to transform/filter/retransmit the stream. 并在媒体服务器中转换/过滤/重新传输流。

Or you can get the stream from the webcam, encode it and send it to server. 或者,您可以从网络摄像头获取流,对其进行编码并将其发送到服务器。 But I think this is more difficult. 但是我认为这比较困难。

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

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