# Switching between live streams

**URL:** <https://community.wowza.com/t/switching-between-live-streams/46695>\
**Category:** Wowza Streaming Engine\
**Created:** [March 15, 2016, 12:32pm UTC](https://community.wowza.com/t/switching-between-live-streams/46695 "2016-03-15T12:32:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tadas\_Zidonis](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@Tadas\_Zidonis](https://community.wowza.com/u/Tadas_Zidonis)\
**Post date:** [March 15, 2016, 12:32pm UTC](https://community.wowza.com/t/switching-between-live-streams/46695/1 "2016-03-15T12:32:40Z")

</div>

Hello,

Stream.play allows to switch between live streams.

Is it possible to create 2 out streams with Stream.newIntance and use 2 in streams for out streams?

Example input Live1 and Live2. Create New1 and New2. Switch New1 between Live1 and Live2 and switcher New2 between Live1 and Live2?

Currently done this, but second New2 stream is allways blank, i.e. no Live1 nor Live2 is visible.

---

<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 16, 2016, 7:25am UTC](https://community.wowza.com/t/switching-between-live-streams/46695/2 "2016-03-16T07:25:59Z")

</div>

Take a look at this technique:

How to switch streams using Stream class streams

For a lower-level API, take a look at the IPublishingProvider API

[How to use IPublishingProvider API to publish server-side live streams](https://www.wowza.com/docs/how-to-use-ipublishingprovider-api-to-publish-server-side-live-streams)

Regards,

Salvadore
