[Live-devel] Two Sink in same thread
Ross Finlayson
finlayson at live555.com
Sun Aug 6 07:21:28 PDT 2006
>Hi,
>
>I am just new to Liblive555, so need some help from you ppl.
>
>I have to do something like below
>
>RTPSource --> FileSink ---- some processing ---- FileSource ---> RTPSink
No, there is only one sink ("MediaSink" subclass) object in each data
chain: It's the object at the end of the chain. What you really want
is to write your own "FramedFilter" subclass that acts like a
"FileSink". I.e., your class's implementation of the
"doGetNextFrame()" virtual function will be similar to "FileSink"s
implementation of the "continuePlaying()" virtual function - except
that it would also deliver data to the downstream object. (As
always, look at "liveMedia/DeviceSource.cpp" for guidance.)
--
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
More information about the live-devel
mailing list