Basically live stream is created. Another incoming live stream and static video is switched (sort of overlay).
Everything was working until recently i saw logs full of following errors:
HTTPStreamerAdapterCupertinoStreamer.onPlaylist: Stream not found [live/smil:lrytas.smil/chunklist_w866886594_b864000_slLT_t64SEk=.m3u8]: lr_hi_NLT
Investigation led to this conclusion:
When live incomming stream reconnection happens and my switcher in playing live stream (is static video is shown nothing happens) apple HLS player (JWPlayer or
http://dailymotion.github.io/hls.js/demo/) stops playing.
Page reload returns 404. Server restart solves issue until next reconnect.
I suspect temporal live stream publish of 'empty' stream does this.
Wowza test players RTMP, HDS are working then.
Question what to do? Is this apple HLS issue, wowza, or my code?
The most likely reason it isn't working is because
provider.play(publisher); is returning false for some reason. This method is supposed to be called in a loop and it will process any new packets that have arrived on the stream. When false is returned, you should switch to another publishing provider so that the stream resumes. If you continue calling the same provider, it will continue to return false and the output stream will stall. Looking at your code, assuming you're calling provider.play(publisher); at regular intervals, the most likely reason that it's not working is because the live stream name that you are passing to PublishingProviderLive doesn't exist.