TCP vs UDP on video stream

后端 未结 13 1880
名媛妹妹
名媛妹妹 2020-12-04 05:38

I just came home from my exam in network-programming, and one of the question they asked us was \"If you are going to stream video, would you use TCP or UDP? Give an

13条回答
  •  粉色の甜心
    2020-12-04 05:50

    It depends. How critical is the content you are streaming? If critical use TCP. This may cause issues in bandwidth, video quality (you might have to use a lower quality to deal with latency), and latency. But if you need the content to guaranteed get there, use it.

    Otherwise UDP should be fine if the stream is not critical and would be preferred because UDP tends to have less overhead.

提交回复
热议问题