简体   繁体   English

通过代理直播视频

[英]Live video streaming through proxy

I have two endpoints behind firewalls who can only communicate through an external relay/proxy. 我在防火墙后面有两个端点,它们只能通过外部中继/代理进行通信。

I'm going to stream video frames from one endpoint to the relay to the other endpoint. 我将把视频帧从一个端点流传输到中继到另一端点。 It doesn't matter if frames are lost - the main requirement is that latency is as low as possible. 帧是否丢失并不重要-主要要求是等待时间尽可能低。 Frame order is also fairly important. 帧顺序也很重要。

Which would be best suited to this, UDP or TCP? 哪种协议最适合UDP或TCP? What additional considerations would I need to make if I used UDP? 如果使用UDP,还需要考虑哪些其他因素? Are there any other better suited protocols/libraries I could use? 我还能使用其他更适合的协议/库吗? I'm doing this from Java. 我正在用Java来做。

From you description (frame order is not significant, some frames can be dropped) - UDP (or protocol based on UDP) is an ideal candidate. 根据您的描述(帧顺序并不重要,可以丢弃某些帧)-UDP(或基于UDP的协议)是理想的选择。 Here's some information about various protocols that can be used to stream live video 下面是一些有关各种协议的详细信息,可用于实时视频流

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

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