How to Switch between two live streaming video when input cut

I want to switch between two live streaming video when one of the video input is cut.

Im basic level kindly help me how to coding and where to insert coding and all.

Thanks in advance

You can use com.wowza.wms.Stream class to create Stream instance by method

createInstance,and then use method addToPlaylist to insert live source to it.

You can find the API in install_dir/documentation/serverapi/index.html

You can contact me by robin@ttstream.com

you could probably do it with this… https://www.wowza.com/docs/how-to-schedule-streaming-with-wowza-streaming-engine-streampublisher