How to force client to switch RTP transport from UDP to TCP?

后端 未结 6 1668
情深已故
情深已故 2020-12-15 12:23

If the client wants to watch a stream that is on my RTSP server, it first tries to setup a stream through the UDP protocol. How can I tell it that my server only supports RT

6条回答
  •  粉色の甜心
    2020-12-15 13:01

    To expand on the answer for android, For Android clients, they will always attempt to establish a UDP connection first.

    For both OpenCore and StageFright I can confirm that if I return "461 Unsupported Transport" from my server in response to the first SETUP request for UDP transfer, both of these clients will then IMMEDIATELY attempt to establish a TCP based connection over the RTSP port.

    All other responses are detailed here: http://www.ietf.org/rfc/rfc2326.txt

提交回复
热议问题