Wowza Community

Difference between releaseStream and publish methods

Hello,

I’m new to Wowza and now learning how to write my own modules. When I read this article

https://www.wowza.com/docs/how-to-block-a-duplicate-publish-stream

https://www.wowza.com/docs/how-to-limit-publishing-of-live-streams-by-ip-list

I found two methods: publish, releaseStream. I thought “releaseStream” is invoked when the encoder stops pushing stream to the Wowza server, but seems that I’m wrong. Their bodies are almost the same. So what is the difference between those two methods?

By the way, is there a way to check the status of the connection between an encoder and a Wowza server? For example, if the encoder goes down, how can the Wowza server detect this and switch to another backup encoder?

Thanks!

Yorick