And I have added stream file liveStreamPreRoll.stream and connect it to my live app through MediaCaster as liverepeater. So, now I see liveStreamPreRoll.stream in incomming streams and this stream is working.
I expect that live stream (rtmp://server:1935/live/Stream1 or rtmp://server:1935/live/Stream2) will work now, but it doesn't. What's wrong? Could this work?
2. attempt with ServerListenerStreamPublisher:
I have added Stream publisher module and streamschedule.smil:
Now both live streams (rtmp://server:1935/live/Stream1 and rtmp://server:1935/live/Stream2) work well and play sample.mp4. If external device starts streaming streams (named Stream1 and Stream2) to wowza server, player stops playing sample.mp4 and after aprox. 10 seconds starts playing live stream content. Why there is that delay and could it be minimized?
Second thing, I want to start playing sample.mp4 again after live stream ends, but live stream is closed and disappers from incoming streams. How could it be set?
Streams with pre-roll video are started again after app restart.
I'm using module collection jar file downloaded from wowza site and wowza 4.1.2 (build 13947). JWPlayer is used as player.
It looks like you are on the right track with your configuration attempt #2. The only problem is that you are using your encoders to push their streams using the ame stream names you have configured the ServerListenerStreamPublisher to use the same stream names for the internally generated streams.
You should change your "loopUntilLiveSourceStreams" property from the /Root/Application block so that it is using encoderStream1, encoderStream2 values. Also, you will need to configure your encoders/external devices to publish their streams to rtmp://server:1935/live/encoderStream1 and rtmp://server:1935/live/encoderStream2
You should also use different playlist names for the two different streams generated by the ServerListenerStreamPublisher.