# switch stream sources

**URL:** https://community.wowza.com/t/switch-stream-sources/42950
**Category:** Wowza Developer Dojo
**Tags:** wowza-streaming-server-java-api
**Created:** [August 5, 2014, 1:46pm UTC](https://community.wowza.com/t/switch-stream-sources/42950 "2014-08-05T13:46:23Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Sergey\_Pak](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@Sergey\_Pak](https://community.wowza.com/u/Sergey_Pak)
#### Post date: [August 5, 2014, 1:46pm UTC](https://community.wowza.com/t/switch-stream-sources/42950/1 "2014-08-05T13:46:23Z")

</div>

I would like to write a webinar application with several speakers and a moderator should be able to select a speaker (=stream) that is translated now.

So what I need is to have a stream that anyone will connect to, a set of streams that speakers will publish to and a way to switch the source.

I’m quite new to Wowza (but not to the java development :)). Can anyone point to what I should start with to implement that server module?

Many thanks in advance.

---

<div class="post-metadata">

### Author: ![Paul\_Shields](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/paul_shields/32/390_2.png) [@Paul\_Shields](https://community.wowza.com/u/Paul_Shields)
#### Post date: [August 5, 2014, 11:14am UTC](https://community.wowza.com/t/switch-stream-sources/42950/2 "2014-08-05T11:14:18Z")

</div>

Hi,

A quick and simple method would be to code the switching of streams within a web page using Javascript and [JW Player](http://support.jwplayer.com/customer/portal/articles/1413089-javascript-api-reference). An array of buttons with onclick actions to call jwplayer().load with the name of the stream would then switch what’s currently being viewed in the player.

From a programatic perspective, I’d investigate [Stream Class Streams](https://www.wowza.com/docs/how-to-switch-streams-using-stream-class-streams) as a starter.

Kind regards,

Paul

---

<div class="post-metadata">

### Author: ![Sergey\_Pak](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@Sergey\_Pak](https://community.wowza.com/u/Sergey_Pak)
#### Post date: [August 5, 2014, 3:17pm UTC](https://community.wowza.com/t/switch-stream-sources/42950/3 "2014-08-05T15:17:21Z")

</div>

Thank you for your reply. Client-side switching won’t work for me, because I need a way to reliably switch all clients at the same time. I’d investigate Stream Class.
