[Live-devel] MultiFramedRTPSink flush collected packet

Viatcheslav.Sysoltsev at h-d-gmbh.de Viatcheslav.Sysoltsev at h-d-gmbh.de
Thu Aug 30 07:57:50 PDT 2012


>> The frame may be small, so SimpleRTPSink packs several frames into a  
>> single packet. That's right, I wish it to do so. I have nevertheless  
>> troubles to realize, how to make SimpleRTPSink flush its packets in a  
>> time manner, after for example the first frame of a packet has 10ms  
>> overdue time. Is there an easy way to achieve sending the not-yet-full  
>> packets in time?
>
> Yes, you should be able to do this by using a subclass (that you would  
> write) of "SimpleRTPSink", and reimplement the virtual function
> 	virtual Boolean frameCanAppearAfterPacketStart(unsigned char const*  
> frameStart, unsigned numBytesInFrame) const;

Thanks, it works like a charm :)

-- Slava



More information about the live-devel mailing list