[Live-devel] Simultaneous Recording and Viewing

Eric Blanpied eric at sparkalley.com
Sat Jun 13 13:24:44 PDT 2015


> On Jun 11, 2015, at 6:53 PM, Ross Finlayson <finlayson at live555.com> wrote:
> 
>> We’ve got an app that’s successfully using the live555 library to record multiple streams using the QuickTimeFileSink, but now customers want to be able to view that stream at the same time it’s being stored. I’m guessing that’s a fairly common feature request, but I haven’t found any references on the topic.
>> 
>> Since the basic workflow is to set up the Sink and then send it the startPlaying() command, my impression is that using the same packets for multiple purposes would be tricky. 
> 
> No, not really, because we have a class called “StreamReplicator” that will take one data stream (“FramedSource” subclass) as input, and produce two or more ‘replica’ data streams as output.  See
> 	http://live555.com/liveMedia/doxygen/html/classStreamReplicator.html <http://live555.com/liveMedia/doxygen/html/classStreamReplicator.html>
> 	http://live555.com/liveMedia/doxygen/html/StreamReplicator_8hh_source.html <http://live555.com/liveMedia/doxygen/html/StreamReplicator_8hh_source.html>
> and note also the “testReplicator” demo application (in “testProgs”) that demonstrates how to use this class.

Thanks, this looks quite useful. The sample code shows the replicator being set up before the event loop is started. Is it possible to start the stream with a single sink, and then add another later?

The use case here would be to allow the user to preview a stream and then start&stop recording of that stream as needed.

thanks again,
-eric

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20150613/024d13ff/attachment.html>


More information about the live-devel mailing list