# Problem when using "ModuleLoopUntilLive"

**URL:** <https://community.wowza.com/t/problem-when-using-moduleloopuntillive/43275>\
**Category:** Wowza Streaming Engine\
**Created:** [July 7, 2014, 12:22pm UTC](https://community.wowza.com/t/problem-when-using-moduleloopuntillive/43275 "2014-07-07T12:22:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tom\_Chan](https://avatars.discourse-cdn.com/v4/letter/t/fbc32d/32.png) [@Tom\_Chan](https://community.wowza.com/u/Tom_Chan)\
**Post date:** [July 7, 2014, 12:22pm UTC](https://community.wowza.com/t/problem-when-using-moduleloopuntillive/43275/1 "2014-07-07T12:22:03Z")

</div>

Hi,

I read the article here [Loop a pre-roll until a live stream starts](https://www.wowza.com/docs/how-to-loop-a-pre-roll-until-a-live-stream-starts-loopuntillive).

I had two playlists that are scheduled to play at two different time.

> The first video “sample.mp4” will start to play at 11:00:00. It is assuming that sample.mp4 is 30 minute long.
> 
> After sample.mp4 finishes playing, the next video “another.mp4” will start to play at 11:30:01 immediately.
> 
> Here comes to question:
> 
> At 11:28:00 I insert a live source and the output screen jumps to the live, everything runs fine.
> 
> However, when it is 11:30:01, the live stream was terminated and the filler video “another.mp4” was switched in!
> 
> Why is this the case? I thought the live stream will be at the first priority no matter there is any scheduled playlist.
> 
> How to fix this problem? I would like the live stream to be in place in any circumstances. (Ignore the scheduled playlist anyway)
> 
> Thanks.

---

<div class="post-metadata">

**Author:** ![Roger\_Littin1](https://avatars.discourse-cdn.com/v4/letter/r/c89c15/32.png) [@Roger\_Littin1](https://community.wowza.com/u/Roger_Littin1)\
**Post date:** [July 7, 2014, 4:46pm UTC](https://community.wowza.com/t/problem-when-using-moduleloopuntillive/43275/2 "2014-07-07T16:46:37Z")

</div>

Hi,

The LoopUntilLive module uses the stream created by the scheduler but doesn’t take over full control of it so any future schedules that are due to run after the live stream started would continue to run. There isn’t any way around this with the current scheduler and loop module.

The source code for both are included with the collection download if you would like to modify them.

Roger.
