[Live-devel] RTSPClient, raw udp streaming

Ross Finlayson finlayson at live555.com
Tue Nov 8 20:04:36 PST 2011


> Please, see file OnDemandServerMediaSubsession.cpp
> 
> if (clientRTCPPort.num() == 0) {
>       // We're streaming raw UDP (not RTP). Create a single groupsock:
>       NoReuse dummy; // ensures that we skip over ports that are already in use
>       for (serverPortNum = fInitialPortNum; ; ++serverPortNum) {
> struct in_addr dummyAddr; dummyAddr.s_addr = 0;
>  
> if the second port number was specified, you answer to client - Transport: RAW/RAW/UDP etc, but create RTPSink instead BasicUDPSink.
> Server create BasicUDPSink _only_ if transport raw-udp requested and _one_ port specified.

OK, I understand now what you're asking for.  I find it strange, however, that a client would ask for "RAW/RAW/UDP", but also specify two port numbers in the "client_port=" part of the header.  However, to support clients like this, please change line 714 of "liveMedia/RTSPServer.cpp" from
	clientRTCPPortNum = p2;
to
	clientRTCPPortNum = streamingMode == RAW_UDP ? 0 : p2;

This change will be included in the next version of the software.


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20111108/e7417d23/attachment.html>


More information about the live-devel mailing list