Wowza Community

Playlist with MPEG-TS as source

I am making a scheduled play list using two sources.

  1. MPEG-TS input

  2. Local file

Above sources alternate at specified hours.

Following the tutorial, I got the system working as expected.

However, this method requires two procedures.

  1. For the MPEG-TS, create a Stream file listening to the UDP port. (Name it ‘’ for now)

  2. Edit ‘streamschedule.smil’ so that video source points to ‘’ at desired hour.

Instead of this, I would like to write directly inside ‘streamschedule.smil’ which UDP port to listen to for the incoming MPEG-TS and use that as video source.

Is this possible?


The streamschedule.smil file needs to have a reference to a file or a stream that is already available/published on your Wowza server.

In order to have Wowza connect/listen to a certain UDP port, you will need to configure the .stream file with the correct IP and port information and then publish the stream to your Wowza server.

After these conditions are satisfied, you will be able to have your scheduled stream working.

Just as a remark, some player do not support a sudden change in video codec and/or video image size. Having this in mind, you will need to make sure that your local file and the incoming MPEG-TS stream, have the same encoding parameters.



It does not have that capability. You would need to extend the module Stream Publisher to do that.

The Schedule Stream Publisher is part of the Wowza Module Collection.

The Module Collection download package includes source code that you can use to see how the modules are implemented and to extend the modules for your own use.



The original method does send a response back to the flash client so it would possibly be left hanging and waiting for a response.

Assuming that the attempt to reload the schedule is malicious, it would probably be better to close the connection instead.

The following will do that.

	public void loadSchedule(IClient client, RequestFunction function, AMFDataList params)
		{"StreamPublisher: Relaod requested by: " + client.getIp());
			if (!client.getIp().equals(""))
				client.setShutdownClient(true);"StreamPublisher: Rejecting remote request.");	
				sendResult(client, params, loadSchedule());
		catch (Exception e)
			sendResult(client, params, e.getMessage());


Dear Zoran,

Thank you.

I will keep the current settings then.

I would appreciate one more help

The files provided to call the reload method from a web browser ‘ModuleScheduleClient’ works fine.

However, by default the module seems to accept calls from any remote host.

Does StreamPublisher module provide a way to limit which hosts to listen to?

Thank you.

Hi Daren,

Thank you.

I modified ‘’,

At the top of ‘loadSchedule’ method, added the following to reject remote calls."StreamPublisher: Relaod requested by: " + client.getIp());

if (!client.getIp().equals(“”)) {“StreamPublisher: Rejecting remote request.”);


}“StreamPublisher: Reloading schedule file.”);

It seems to be working as expected on the surface.

However, to be honest I am not so familiar with the Wowza API, nor Flash programming.

Could the above code (how it leaves the method) potentially leave any server threads or Flash clients waiting for a response hanging?

Hi Roger,

That is great.

I will be using your suggested code.

Thank you.