udp - Android: Using TCP to receive stream from Darwin Streaming Server(DSS) -


I am working on an Android app that uses DSS to play the RTSP stream from a server. It works most of the time, but sometimes I can not get this work done. I tested with the virusHark and saw that the UDP sends a request but no response is received, and the reason may be that the firewall has blocked the UDP packet, I suppose that while I used to open VLC to open the same RTSP stream I use the RTP response, which uses TCP.

For now because I can not change the firewall situation, I want to change my app to get an RTSP stream using TCP. , Which I think is not possible to use build-in media player / video view. So how can I do this?

Any suggestions?

Thanks in advance.

Bolton

If the underlying media player does not support it, You need to implement RTSP client and RTSP setup requests, you must specify the TCP as the transport.

Standard RTSP setup:

Track 1:

  SETUP rtsp: //146.64.28.137/TheItCrowd.mm1 / Track1 RTSP / 1.0 csac: 3 Transport: RTP / AVP; Unicast; Client_port = 4116-4117 User-agent: OpenRTSP (LIVE555 streaming media v2010.04.09)   

Track 2:

  SETUP rtsp: //146.64.28.137 /TheItCrowd.mm1/track2 RTSP / 1.0 CSeq: 4 Transport: RTP / AVP; Unicast; Client_port = 4118-411 9 Sessions: 6b8b4567 User-agent: RTRSP (LIVE555 streaming media v2010.04.09)   

RTSP setup for interleave on RTSP / TCP :

Track 1:

  SETUP rtsp: //146.64.28.137/TheItCrowd.mm1/ Track 1 RTSP / 1.0Csec: 3 Transport: RTP / AVP / TCP; Unicast; Interleaved = 0-1 user-agent: OpenRTSP (EY555 streaming media v2010.04.09)   

Track 2:

  SETUP rtsp: //146.64 .28.137 / TheItCrowd.mm1 / track2 RTSP / 1.0 csik: 4 Transport: RTP / AVP / TCP; Unicast; Interleaved = 2-3 sessions: 35 B 9 387A user-agent: OpenRTSP (LIVE555 streaming media v2010.04.09)    

Comments