javascript 我可以使用 WebRTC 接收标准 RTP 视频流吗?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16728562/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Can I use WebRTC to receive a standard RTP video stream?
提问by Pal Szasz
I have two computers on the same network. One of them transmits a movie (H264) with RTP protocol. Is it possible to create a simple javascript app to receive this stream on the second computer and display in a video tag?
我有两台电脑在同一个网络上。其中一个使用 RTP 协议传输电影 (H264)。是否可以创建一个简单的 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),但我只想在接收端使用它。
回答by Konga Raju
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 APIto stream video.
可以使用 WebRTC 流式传输视频,您只能使用 RTP 协议发送数据部分,另一方面,您应该使用Media Source API来流式传输视频。
回答by Abhijeet
May be this might help Janus-Gateway. This has listed RTP in Dependencies
可能这可能有助于Janus-Gateway。这已经在依赖项中列出了 RTP