Wowza Community

How to stop rtsp and http session from server side during its playback?

I need to be able to close/interrupt streaming session immediately upon an internal (triggering) event. Currently, I am using session.shutdown() call but onRTSPSessionDestroy()/HTTPSessionDestroy() listener method is called only in about a minute after session.shutdown() call is issued. How can I interrupt/stop the playback immediately from the server side?

The client is playing out the cache. I don’t know how you can stop that in non-Flash clients.


I suppose you can do something with these cupertino settings:

But there are going to be segments already sent to the player.


Is there a way to limit amount of cache available to the client? Other streaming servers allow certain directives that control cache/no-cache policy. If we are to control playback from the server side, isn’t it somewhat a necessity to control how much stream is played by the client after the stream is terminated? I cam understand a few seconds, but over a minute?

Is there anything in Wowza that allows to have a finer control over this?



We are trying to stop the httpsession playback from server side. We are using the IHTTPStreamerCupertinoVODActionNotify2 to watch the chunk loading and the call to httpsession.shutdown() is from public void onFillChunkEnd(IHTTPStreamerCupertinoIndex fileIndex,

IHTTPStreamerCupertinoIndexItem item,

LiveStreamPacketizerCupertinoChunk chunk, boolean audioOnly) {


I m getting the handle of current session in

public void onCreate(IHTTPStreamerCupertinoIndex fileIndex,

IHTTPStreamerApplicationContext appContext,

IHTTPStreamerSession httpStreamerSession, String rawStreamName,

String streamExt, String streamName) {

this.httpSession = httpStreamerSession;

And then i call



inside the onFillChunkEnd

The above call does not end the playback. The IHTTPStreamerCupertinoVODActionNotify2 continue to run.