Hi, i am trying to write a handler incase the live stream stops or cuts off.
i am not sure if i should create a listener on the client or server side module
I already have a working scheduler that starts off playing the smil file and switches when the live come back on but i can't seem to get it to switch back to the smil file when the live stops.
I get the error "Failed to play myStream; stream not found." and then i would have to restart wowza to get the smil file to work again.
I presume i put a handler on the onUnpublish to help switch me pack to the playlist smil but i have not managed to achieve this
I have search all over the forum but i am new to wowza ide and i don't seem to understand it
public void onUnPublish(IMediaStream stream, String streamName, boolean isRecord, boolean isAppend)
Stream streams = (Stream)stream.getProperties().getProperty(streamName);
String name = streams.getCurrentItem().getName();