Archive for the ‘API Examples’ Category

How to receive SAP packets and process them

How to receive SAP packets and process them:

We were asked to look at SAP (Session Announcement Protocol) and how we could make it work with Wowza Streaming Engine. It turns out it is a relatively simple protocol but there are few gotchas which did trip us up however we have come up with an application module that should meet most needs along […]

» continue reading

How To – Do Stream Motion Detection

How To – Do Stream Motion Detection:

We have been asked to look at several features relating to the transcoder, one being motion detection. We did a little digging and it appears Wowza Streaming Engine provides access to frames after they have been decoded. There are several posts such as Stack OverFlow and a somewhat more complete example Wowza Code Example This […]

» continue reading

Record Stream on-demand

Record Stream on-demand:

The following code snippet allows you to record streams on demand.

» continue reading

How to create an IClient object

How to create an IClient object:

There are occasions where code within Wowza requires an IClient object, however you find that either there are no connections or none available within the class space you are working within. You can create an IClient object with the following code IClient thisClient = new Client(appInstance.getVHost(),Server.getInstance().getClientIdGenerator().getNextId()); This will then allow you to pass the created […]

» continue reading

How To Add a MediaCache Source Dynamically

How To Add a MediaCache Source Dynamically:

One of things we have been asked to do many times is add a media cache source WITHOUT the need to restart Wowza Streaming Engine. If you use the Wowza Streaming Engine Manager then this is not possible as it will prompt for a server restart. It is possible to add a MediaCache source and […]

» continue reading

How to control which template is used for transcoding with the Wowza API

How to control which template is used for transcoding with the Wowza API:

The Wowza transcoder does allow you to configure stream specific or generic templates when using the application configuration so can be quite powerful.

» continue reading

How to add a HTTP Provider programmatically when a VHost starts

How to add a HTTP Provider programmatically when a VHost starts:

It is possible to add a HTTP Provider when a VHost starts running. This method potentially removes any mistakes and also means only a small amount of configuration is needed in the Server.xml. In order to add a HTTP Provider you need to write a VHost listener and also have a HTTP Class available, both […]

» continue reading

How to Deny by IP in HTTP Origin Mode

How to Deny by IP in HTTP Origin Mode:

When you are in HTTP Origin Mode it presents a few problems using the conventional code/modules.

» continue reading