[Live-devel] How to get RTP packets

Ross Finlayson finlayson at live555.com
Mon Apr 28 00:58:03 PDT 2008


>When i changed the code like this
>
>if (strcmp(fProtocolName, "UDP") == 0) {
>on line 656 of "MediaSession.cpp" to
>	if (True) {
>
>the MultiFramedRTPSource class is not executed. Now it using the
>BasicUDPSource class.

That's exactly what was supposed to happen when you made that change.

>  I just create a file inside the
>void BasicUDPSource::incomingPacketHandler1()
>and gets the packets.

No! Don't do this.  Just play the source object from a "FileSink", as 
before.  You should not need to change any more code to make this 
happen.

In other words, your original change to "MediaSession.cpp" should be 
the only change that you need to make, in order for "openRTSP" to 
write whole RTP packets into your output file(s).
-- 

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


More information about the live-devel mailing list