<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">On Jun 11, 2015, at 6:53 PM, Ross Finlayson <<a href="mailto:finlayson@live555.com" class="">finlayson@live555.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><blockquote type="cite" class=""><div class="">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.<br class=""><br class="">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. <br class=""></div></blockquote><div class=""><br class=""></div>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</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span><a href="http://live555.com/liveMedia/doxygen/html/classStreamReplicator.html" class="">http://live555.com/liveMedia/doxygen/html/classStreamReplicator.html</a></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span><a href="http://live555.com/liveMedia/doxygen/html/StreamReplicator_8hh_source.html" class="">http://live555.com/liveMedia/doxygen/html/StreamReplicator_8hh_source.html</a></div><div class="">and note also the “testReplicator” demo application (in “testProgs”) that demonstrates how to use this class.</div></div></div></blockquote></div><br class=""><div 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?</div><div class=""><br class=""></div><div class="">The use case here would be to allow the user to preview a stream and then start&stop recording of that stream as needed.</div><div class=""><br class=""></div><div class="">thanks again,</div><div class="">-eric</div><div class=""><br class=""></div></body></html>