Hello,
Each time flash client calls:
ns = new NetStream();
ns.publish(“streamName”)
ns.close();
I see that Wowza creates IMediaStream object. And if I execute above code for five times - Wowza logs tell “Hit license limit for publishing streams.” I want to properly reuse or shutdown previous stream instances on Wowza side.
How can I achieve that?
I tried without success:
@Override
public void onUnPublish(IMediaStream stream, String streamName, boolean isRecord, boolean isAppend) {
// bellow doesn’t really work
stream.shutdown();
stream.close();
stream.getClient().getAppInstance().getStreams().clearStreamName(streamName, stream);
}
Here is article which describes how to block new streams, but I need to clean old one instead.
https://www.wowza.com/docs/how-to-block-a-duplicate-publish-stream
Thank you,
Stan