<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div>Thanks for a prompt reply. I guess I'm still a bit confused. How would my application access H264 frame<br>received by H264VideoRTPSource ?</div></blockquote><div><br></div><div>You would write a "MediaSink" subclass that encapsulates your decoder, and then call</div><div><span class="Apple-tab-span" style="white-space:pre">      </span>yourDecoderMediaSink->startPlaying(yourH264VideoRTPSource, ... );</div><div>and then</div><div><span class="Apple-tab-span" style="white-space:pre">  env->taskScheduler().doEventLoop();</span></div><div>to enter the event loop.</div><div><br></div><div>(See the numerous examples of this in the "testProgs" directory.)</div><div><br></div><br><blockquote type="cite"><div> One of the requirements I have, is that decoder will ask for a frame<br>when it's ready to process one, so I need to have a routine that returns the last H264 frame and its size.<br></div></blockquote><div><br></div>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.</div><br><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>