> Thanks for a prompt reply. I guess I'm still a bit confused. How would my
> application access H264 frame
> received by H264VideoRTPSource ?
You would write a "MediaSink" subclass that encapsulates your decoder, and then
call
yourDecoderMediaSink->startPlaying(yourH264VideoRTPSource, ... );
and then
env->taskScheduler().doEventLoop();
to enter the event loop.
(See the numerous examples of this in the "testProgs" directory.)
> One of the requirements I have, is that decoder will ask for a frame
> when it's ready to process one, so I need to have a routine that returns the
> last H264 frame and its size.
Yes, your decoder "MediaSink" subclass would do this by implementing the
"continuePlaying()" virtual function by calling "getNextFrame()" on its input
source (which, in this case, will be "yourH264VideoRTPSource"). I suggest that
you look at the code for "FileSink" (another "MediaSink" subclass) for hints on
how to do this.
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
_______________________________________________
live-devel mailing list
[email protected]
http://lists.live555.com/mailman/listinfo/live-devel