# HOWTO: stream from playlist with automatic switch to live and back?

**URL:** <https://community.wowza.com/t/howto-stream-from-playlist-with-automatic-switch-to-live-and-back/424>\
**Category:** Wowza Streaming Engine\
**Created:** [March 8, 2014, 8:07pm UTC](https://community.wowza.com/t/howto-stream-from-playlist-with-automatic-switch-to-live-and-back/424 "2014-03-08T20:07:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)\
**Post date:** [March 8, 2014, 8:07pm UTC](https://community.wowza.com/t/howto-stream-from-playlist-with-automatic-switch-to-live-and-back/424/1 "2014-03-08T20:07:18Z")

</div>

Is there any info that would explain how to accomplish a playlist-based live stream with support to switch automatically to an encoder-sourced live stream, and then back to the playlist when the live stream stops? Will this require a custom app?

T

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [March 9, 2014, 7:23am UTC](https://community.wowza.com/t/howto-stream-from-playlist-with-automatic-switch-to-live-and-back/424/2 "2014-03-09T07:23:44Z")

</div>

You can publish a live stream using static content with this module:

[How to do basic server-side publishing with Stream class streams](https://www.wowza.com/docs/how-to-do-basic-server-side-publishing-with-stream-class-streams)

And then loop the stream back until the live stream from the encoder is published. The published encoder stream will replace the “filler” stream, and when the encoder stream is stopped, the filler stream will resume:

[How to loop a pre-roll until a live stream starts (ModuleLoopUntilLive)](https://www.wowza.com/docs/how-to-loop-a-pre-roll-until-a-live-stream-starts-loopuntillive)

Salvadore
