[Live-devel] how to implement env->taskScheduler().doEventLoop() by while(!signal)
freegnu
freegnu at 163.com
Mon Oct 23 18:29:47 PDT 2006
hi all, i want to read the PS from a circular buffer(which get from encode), and the transfers it by testMPEG4VideoStream, so i want to explant testMPEG4VideoStream
but the testMPEG4VideoStream it get the media PS from a file , so i want to use memcpy(fTo, p_buf, fMaxSize) to copy the PS tho fTo buffer,
but the env->taskScheduler().doEventLoop(); to do the task for loop, but memcpy(fTo, p_buf, fMaxSize) is also in a while circular, it look like the
this:
while(!signal)
{
memcpy(fTo, p_buf, fMaxSize);
}
but i dont how to send the packet of fTo to client use RTP and RTCP, so i only to imitate testMPEG4VideoStream.cpp, but i dont know how to use while() instead of env->taskScheduler().doEventLoop()
More information about the live-devel
mailing list