I'm trying to use Chilkat C API to handle a MJPEG stream from an web-server (Content-Type: multipart/mixed). The stream of frames is continuous, so doing a CkHttp_SynchronousRequest or CkHttp_QuickGetObj will block forever. Is there a way to register a callback function that would periodically be called when a chunk of data is received from the server so that I can process it?
What I'm really interested in is processing the MJPEG video stream and separating the individual JPEG frames from the video stream as they come along..
Is there any way of doing that?
asked Oct 27 '15 at 12:12
This is really really bad.
You should redesign and offer all data in streaming form, including charset conversion etc. I run into this problem when i realized that my application will suck if the user tries to download large files.
Its also no option to download into a file first when you want to do some processing on it, especially on mobile devices with small meory but still large data files.
For version 10 please continue your background thread design and offer streaming.
answered Oct 28 '15 at 22:09