Results 1 to 3 of 3

Thread: Auto Switch from Default Feed to Alternate

  1. #1
    Join Date
    Aug 2012

    Default Auto Switch from Default Feed to Alternate

    I came across a tutorial that explains how to configure WOWZA to send a feed to JTV. Perfect so far. We would like to have a default feed from one studio that WOWZA sends to JTV, but then automatically switch to our remote studio feed when it's established. Is that possible?

    Thank you,

  2. #2
    Join Date
    Sep 2011


    Stream switching is possible using Wowza but requires a custom module which can be done by yourself or a consultant.
    If you do require a consultant you can request an independent consultants list from Wowza just sent a request for the independent consultants list to


  3. #3
    Join Date
    Dec 2007


    Here are some examples that might get you started

    Basic API:

    Scheduler (runs at server start):

    A framework for switching:

    For your project, you might use the scheduler to define Playlists and start Streams, then override publish command to add code to look for the your remote studio feed to start, then switch to that. Something like this:

    package test;
    import com.wowza.wms.amf.*;
    import com.wowza.wms.client.*;
    import com.wowza.wms.module.*;
    import com.wowza.wms.request.*;
    public class ModuleOverridePublishRemapStream extends ModuleBase {
    	public void publish(IClient client, RequestFunction function,
    	        AMFDataList params) {
    		String streamName = getParamString(params, PARAM1);
    		if (streamName.equalsIgnoreCase("myStream"))
    			// The following two lines assume you used the scheduler and have stream named "Stream1" and Playlist named "pl1" that define the stream that will be starting.
    			Stream stream = (Stream)client.getAppInstance().getProperties().getProperty("Stream1");	
    			Playlist playlist = (Playlist)client.getAppInstance().getProperties().getProperty("pl1");
    		invokePrevious(client, function, params);

Similar Threads

  1. AUTO Switch on "livestream" from other stream
    By kkstyle in forum Server-side Modules and Code Samples Discussion
    Replies: 2
    Last Post: 04-01-2013, 09:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts