# Managing Announced RTSP session

**URL:** <https://community.wowza.com/t/managing-announced-rtsp-session/37723>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [April 17, 2012, 12:39pm UTC](https://community.wowza.com/t/managing-announced-rtsp-session/37723 "2012-04-17T12:39:47Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![Art\_Harchenko](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@Art\_Harchenko](https://community.wowza.com/u/Art_Harchenko)\
**Post date:** [April 17, 2012, 4:11pm UTC](https://community.wowza.com/t/managing-announced-rtsp-session/37723/11 "2012-04-17T16:11:34Z")

</div>

So looks like I’m not alone.

Here is another person trying to do pretty much the same thing as myself.

> [@Disconnect RTP/RTSP publish stream?](http://community.wowza.com/t/-/35637):
>
> When handling onStreamDestroy for an IMediaStream where isPlay() returns true, is there a way to shut down/disconnect the stream such that the publisher will stop sending video? I tried looping through the streams and shutting down all with a matching name like this: List\<IMediaStream\> streams = mediaStream.getStreams().getStreams(); for (IMediaStream stream : streams) { if (stream.getName().equals(mediaStream.getName())) { getLogger().info("[DVS] Closing stream -…

I guess only Wowza developers can fix this at this point, by sending a TEARDOWN to the RTSP partner on RTPSession shutdown, which would cause the encoder to stop streaming.

but from all the class fields I’ve browsed, Wowza doesn’t track open RTSP sockets.

Would be nice to create some kind of RTSPSession and to be able to control it via some sort of interface.

There could be a lot of useful extensions possible from being able to send SET\_PARAMETERS.

Art.

---

_[View the full topic](https://community.wowza.com/t/managing-announced-rtsp-session/37723)._
