fyhertz / libstreaming

A solution for streaming H.264, H.263, AMR, AAC using RTP on Android
Apache License 2.0
3.49k stars 1.08k forks source link

Question: interleaved mode supported? #92

Open 4ntoine opened 9 years ago

4ntoine commented 9 years ago

https://github.com/fyhertz/libstreaming/blob/master/src/net/majorkernelpanic/streaming/rtsp/RtspServer.java#L466

By default it parses request assuming it's Non-interleaved mode (UDP) and replies for Non-interleaved mode:

response.attributes = "Transport: RTP/AVP/UDP;"+(InetAddress.getByName(destination).isMulticastAddress()?"multicast":"unicast")+
                        ";destination="+mSession.getDestination()+
                        ";client_port="+p1+"-"+p2+
                        ";server_port="+src[0]+"-"+src[1]+
                        ";ssrc="+Integer.toHexString(ssrc)+
                        ";mode=play\r\n" +
                        "Session: "+ "1185d20035702ca" + "\r\n" +
                        "Cache-Control: no-cache\r\n";

But in https://github.com/fyhertz/libstreaming/blob/master/src/net/majorkernelpanic/streaming/rtsp/RtspClient.java#L398 TCP mode is supported. Does it mean some code is not just pushed or Interleaved mode (TCP) is not supported at server-side?

wildeyes commented 8 years ago

Very interested in getting an answer.