>>> When I am sending :
>>> 
>>> SETUP rtsp://127.0.0.1/testStream/track1 RTSP/1.0
>>> CSeq: 4
>>> User-Agent: ./openRTSP (LIVE555 Streaming Media v2012.02.29)
>>> Transport: RTP/AVP;multicast;destination=230.1.1.1;client_port=7000-7001
>>> 
>>> 
>>> the testMPEG2TransportStreamer responds with:
>>> 
>>> RTSP/1.0 200 OK
>>> CSeq: 4
>>> Date: Thu, Mar 15 2012 14:03:51 GMT
>>> Transport: 
>>> RTP/AVP;multicast;destination=239.255.42.42;source=xxx.xxx.xxx.xxx;port=1234-1235;ttl=7
>>> Session: 0F290F2E
>>> 
>>> 
>>> As u can see destination address is set permanently on server side. I would 
>>> like to change it thru SETUP. How can I achieve this ?

You can't do this with our server code (for multicast streams).  Instead, it's 
the server, not the client, that has to choose the multicast IP address and 
port numbers.  (It's unusual for the client to be requesting a specific 
destination address (and port numbers) - especially for multicast streams, 
which may have many clients - because this poses a potential security risk (for 
'denial of service' attacks).  Instead, it's usually the server, not the 
client, that chooses multicast addresses/ports.)

However, if you know - in advance - that the client will always request the 
address 230.1.1.1, and the ports 7000-7001, then you can probably support this 
by changing the "testMPEG2TransportStreamer" code as follows:
- Change the address in line 58 from 239.255.42.42 to 230.1.1.1
- Change "rtpPortNum" on line 64 from 1234 to 7000


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

_______________________________________________
live-devel mailing list
[email protected]
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to