[Live-devel] Newbie: How to create a memory sink

Ralf Globisch RGlobisch at csir.co.za
Wed Feb 25 20:54:28 PST 2009


As a starting point have a look at the FileSink class, the two main steps involved are
1) Inherit from MediaSink 
2) Override the virtual afterGettingFrame1(unsigned frameSize,  struct timeval presentationTime) method and call your own "addData" like method where you can do whatever it is you need to.

Then similar to in openRtsp's PlayCommon.cpp file, create your an instance of your own sink before starting the event loop. 



-- 
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. 
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their support.



More information about the live-devel mailing list