Hi Ross, Thanks for the reply. The part that I don't understand that if I only have one doEventLoop for any number of streams, how can I stop that event loop without stopping all of the streams? Surely if I stop my one and only eventLoop, then none of the streams will work. I have been experimenting will closing the desired ServerMediaSession and the OnDemandMediaSession but so far no success. Any advise would be appreciated.
________________________________ From: live-devel-boun...@ns.live555.com [mailto:live-devel-boun...@ns.live555.com] On Behalf Of Ross Finlayson Sent: 08 December 2011 10:46 AM To: LIVE555 Streaming Media - development & use Subject: Re: [Live-devel] Stop specific streams. Let me first let you how I am creating these multiple streams: 1. Create an RTSPServer, if none exists. I make use of only 1 RTSP server. 2. Create a new ServerMediaSession for each stream. This ServerMediaSession is saved in a map with a unique identifier for the stream. 3. Create a new OnDemandMediaSubsession of each stream, depending on the type of media. 4. Add the OnDemandMediaSubsession to the ServerMediaSession. 5. Add the ServerMediaSession to the RTSP Server. 6. Run the doEventLoop if it has not been started yet. If it has, do nothing. Note that I have only one RTSP server and one doEventLoop, regardless of how many streams run. I am aware that in order to stop a stream, a watchVariable is used. I am able to stop ALL streams using this method, but I cannot stop a specific stream. First, you may find it better to use the new "event trigger" mechanism - see "UsageEnvironment/include/UsageEnvironment.hh" - rather than the "watchVariable" mechanism. (If you use "event triggers", then the "clientData" parameter to "triggerEvent()" could be used to (somehow) indicate a specific stream that you want to 'stop'.) But alternatively, if you want to still use the "watchVariable" mechanism, the you can do so by having your 'signalling' thread (i.e., the one that sets the 'watch variable', but does not otherwise access any LIVE555 objects) also set some global variable in such a way to indicate which specific stream you want to 'stop'. Ross Finlayson Live Networks, Inc. http://www.live555.com/
_______________________________________________ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel