Matt & I went though this issue a while back for live streams. It's probably
similar if you're trying to shut down a file-based stream before it gets to
its end...
To force a session to end before the client requests a teardown, we ended up
deleting the RTSPClientSession instance out from und
I am aware of the watch variable method and the Medium::close(), but
closing the ServerMediaSession, or the Subsession does not entail
sending a BYE to the connected client - the only way I found till now to
send a BYE is to do a handleClosure() from within my framer source when
it detects a shutdo
I believe the best thing to do is to run your doEventLoop with a watch
variable. Then when you wish to exit and cleanup, set the watch variable,
which will cause the doEventLoop call to return. At this point you will be
able to clean up all of the session stuff (hint: use Medium::close()).
On
I've searched in the list archive, but couldn't find something regarding
this - I currently have LiveMedia running on its own thread with the
doEventLoop() the last instruction before it goes off into its own
world;
Ultimately, I would like to have this thread return gracefully by first
invoking a