[Live-devel] stopPlaying()
    Ross Finlayson 
    finlayson at live555.com
       
    Wed May 24 19:53:14 PDT 2006
    
    
  
>I would like to have the ability to stop and then play another file 
>during the
>same session RTSPServer from the RTSP server side. This means that I have to
>call the MediaSink::stopPlaying or the destructor ~Mediasink().
Just the former.  Because you want to keep the RTP session intact, 
you should *not* close the (RTP)Sink object.
To change the input source for a running stream, you should do the 
following, in order:
         sink->stopPlaying();
         Medium::close(oldSource);
         create newSource
         sink->startPlaying(newSource, ...);
	Ross Finlayson
	Live Networks, Inc. (LIVE555.COM)
	<http://www.live555.com/>
    
    
More information about the live-devel
mailing list