简体   繁体   English

我可以使用 WebRTC 接收标准 RTP 视频流吗?

[英]Can I use WebRTC to receive a standard RTP video stream?

I have two computers on the same network.我有两台电脑在同一个网络上。 One of them transmits a movie (H264) with RTP protocol.其中一个使用 RTP 协议传输电影 (H264)。 Is it possible to create a simple javascript app to receive this stream on the second computer and display in a video tag?是否可以创建一个简单的 javascript 应用程序来在第二台计算机上接收此流并显示在视频标签中?

So far my impression of WebRTC is that it's designed to be used between browser (both using WebRTC api), but I want to use it only on the receiving side.到目前为止,我对 WebRTC 的印象是它被设计为在浏览器之间使用(都使用 WebRTC api),但我只想在接收端使用它。

It is possible to stream video uisng WebRTC, you can send only data parts with RTP protocol, on the other side you should use Media Source API to stream video. 可以流式传输视频uisng WebRTC,只能发送带有RTP协议的数据部分,另一方面你应该使用Media Source API来传输视频。

Here is article with demo explained about Media Source API 以下是有关Media Source API的演示 文章

May be this might help Janus-Gateway . 可能这可能有助于Janus-Gateway This has listed RTP in Dependencies 这已在Dependencies中列出了RTP

you can use mediasoup for this it provides apis for receiving and sending rtp here is the link which may help.您可以为此使用 mediasoup,它提供用于接收和发送 rtp 的 api,这里是可能有帮助的链接。 https://mediasoup.org/documentation/v3/communication-between-client-and-server/#producing-media-from-an-external-endpoint https://mediasoup.org/documentation/v3/communication-between-client-and-server/#production-media-from-an-external-endpoint

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

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