Hi,
I am trying to close all streams for a praticular applicationinstance and it seems to work fine when i am publishing on rtmp but not on rtmpt
here is the code i am using:
IApplicationInstance appInstance = client.getAppInstance();
//get all the streams running on this app-instance
MediaStreamMap streamMap = appInstance.getStreams();
List streams = streamMap.getStreams();
getLogger().info(“shuting down clients connected to this appinstance:”);
Iterator streamsIterator = streams.iterator();
while(streamsIterator.hasNext() )
{
IMediaStream current_stream = streamsIterator.next();
getLogger().info(“current_stream Name:” + current_stream.getName());
current_stream.getClient().setShutdownClient(true);
}
any ideas why current_stream.getClient().setShutdownClient(true);
is not shuting down the client that is publishing on rtmpt?
please note i am using wowza 2.
thanks