# Pre-roll video without stream publisher and after the end of live stream

**URL:** <https://community.wowza.com/t/pre-roll-video-without-stream-publisher-and-after-the-end-of-live-stream/42487>\
**Category:** Wowza Streaming Engine\
**Created:** [April 7, 2015, 5:21pm UTC](https://community.wowza.com/t/pre-roll-video-without-stream-publisher-and-after-the-end-of-live-stream/42487 "2015-04-07T17:21:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dominik\_Fiser](https://avatars.discourse-cdn.com/v4/letter/d/48db29/32.png) [@Dominik\_Fiser](https://community.wowza.com/u/Dominik_Fiser)\
**Post date:** [April 7, 2015, 5:21pm UTC](https://community.wowza.com/t/pre-roll-video-without-stream-publisher-and-after-the-end-of-live-stream/42487/1 "2015-04-07T17:21:36Z")

</div>

Hi,

we are using [ModuleLoopUntilLive](https://www.wowza.com/docs/how-to-loop-a-pre-roll-until-a-live-stream-starts-loopuntillive)for pre-roll video, but we have two problems with it:

1. Is there any way how to use it without stream publisher ([ServerListenerStreamPublisher](https://www.wowza.com/docs/how-to-schedule-streaming-with-wowza-streaming-engine-streampublisher%28StreamPublisher%29))? I was trying to use mediacaster liverepeater, which was connect to VOD file stream, but it doesn’t work.

2. Now we are using stream publisher and it works but when live stream ends, pre-roll video doesn’t start playing again. We want to start playing pre-roll video again after live stream end. How to do it?

We have Wowza 4.1.2 and JW Player 6.12 as player.

---

<div class="post-metadata">

**Author:** ![Daren\_Johnson](https://avatars.discourse-cdn.com/v4/letter/d/ee59a6/32.png) [@Daren\_Johnson](https://community.wowza.com/u/Daren_Johnson)\
**Post date:** [April 7, 2015, 11:08pm UTC](https://community.wowza.com/t/pre-roll-video-without-stream-publisher-and-after-the-end-of-live-stream/42487/2 "2015-04-07T23:08:16Z")

</div>

Hi,

They way you describe it is how it should work. Did you try to set the playlist in the schedule to repeat=“true” ?

It should loop around if that is the case.

Daren

---

<div class="post-metadata">

**Author:** ![Dominik\_Fiser](https://avatars.discourse-cdn.com/v4/letter/d/48db29/32.png) [@Dominik\_Fiser](https://community.wowza.com/u/Dominik_Fiser)\
**Post date:** [April 9, 2015, 10:39am UTC](https://community.wowza.com/t/pre-roll-video-without-stream-publisher-and-after-the-end-of-live-stream/42487/3 "2015-04-09T10:39:54Z")

</div>

This is my streamschedule.smil file:

\<?xml version="1.0" encoding="UTF-8"?\>

But when incomming streams end, they are disconnected and I don’t see there streams from streams publisher (there are not any incomming streams). My incomming streams have same names as streams defined in smil file (rss and rss2), is that correct?

---

<div class="post-metadata">

**Author:** ![Dominik\_Fiser](https://avatars.discourse-cdn.com/v4/letter/d/48db29/32.png) [@Dominik\_Fiser](https://community.wowza.com/u/Dominik_Fiser)\
**Post date:** [May 14, 2015, 6:55pm UTC](https://community.wowza.com/t/pre-roll-video-without-stream-publisher-and-after-the-end-of-live-stream/42487/4 "2015-05-14T18:55:07Z")

</div>

My problem was with loopUntilLiveOutputStreams configuration.

loopUntilLiveSourceStreams - input (source) live stream name - have to be different from output live stream name!

loopUntilLiveOutputStreams - there should be output live stream name used in player - have to be same as stream name defined in streamschedule.smil file

How it works:

If you start playing live stream _rss_ in player, StreamPublisher starts pre-roll live stream _rss_ (defined in loopUntilLiveOutputStreams and streamschedule.smil file).

When input live stream _rss-source_ starts, wowza switch internally live stream to _rss-source_ (defined in loopUntilLiveSourceStreams).

When input live stream ends, wowza switch internally back to _rss_ live stream pubslihed by StreamPublisher.
