[Live-devel] Proper use of StreamReplicator

Ross Finlayson finlayson at live555.com
Sat Oct 18 15:15:44 PDT 2014


> The replica is wrapped in the above class, as per instructions. However, doGetNextFrame() can not simply call
> getNextFrame() as that requires a set of parameters that are not accessible:
> 
>        m_replica->getNextFrame( fTo, fMaxSize, fAfterGettingFunc, fAfterGettingClientData, fOnCloseFunc, fOnCloseClientData );
> 
> The fAfterGettingClientData and fOnCloseClientData are private and not accessible to my wrapper. I can also not override getNextFrame()
> in my wrapper and save said data as that method is not virtual. Instead if I assume you made a typo and meant:
> 
> 	m_replica->doGetNextFrame();

No, I meant “getNextFrame()” - i.e., the regular call that an object makes to get data from an upstream “FramedSource”.  You need to provide your own ‘after getting’ and ‘on close’ functions and data.  There are numerous examples of this in the code.


> Anyway, currently stream replicating does not work at all and it does not seem to be easy to do. The StreamReplicator class works in
> trivial examples but breaks in real world code.

No, it works just fine.  It just needs to be used properly.

In any case, I’ve pretty much used up all the free help I can give you on your project right now.

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20141018/0e115bca/attachment.html>


More information about the live-devel mailing list