Archive for the ‘how-to’ Category

Create custom authentication file for HTTP Provider

Create custom authentication file for HTTP Provider:

Below is some instructions on how you can create a completely separate password file on a per HTTP Provider basis. This may be useful if you want some people to have access to Live stream record or to connection counts etc. In this example, we will be using LSR as our test. You will need […]

» continue reading

How to prevent unwanted http access to your origin in Cloudfront workflow

How to prevent unwanted http access to your origin in Cloudfront workflow:

If you setup the CloudFront workflow, you may want to ensure that only CloudFront requests are able to access the given stream. Since you are in HTTP Origin Mode, you are working with a sessionless environment. Each request can be looked at and validated using the IVHostHTTPStreamerRequestValidator as follows: public class HTTPEventHandler implements IVHostHTTPStreamerRequestValidator{ public […]

» continue reading

How to get a property value in Wowza configuration file

How to get a property value in Wowza configuration file:

An article that demonstrates how to obtain a configuration value from a xml file from within your install.

» continue reading

REST API – Connect and Disable mediacaster stream

REST API – Connect and Disable mediacaster stream:

Below is a couple of useful REST API commands that will allow you to initiate a connect and disable to an inbound stream. Connect: curl -X PUT –header ‘Accept:application/json; charset=utf-8′ –header ‘Content-type:application/json; charset=utf-8′ “http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/streamfiles/[STREAM-NAME]/actions/connect?connectAppName=[YOUR-APP-NAME]&appInstance=_definst_&mediaCasterType=rtp” Disconnect: curl -X PUT –header ‘Accept:application/json; charset=utf-8′ –header ‘Content-type:application/json; charset=utf-8′ “http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/[YOUR-APP-NAME]/instances/_definst_/incomingstreams/[STREAM-FILE-NAME]/actions/disconnectStream”

» continue reading

REST API – How to disable and restart push publish endpoint

REST API – How to disable and restart push publish endpoint:

You can disable/restart the push publish map entry via a PUT verb.

» continue reading

REST API – How to restart an application

REST API – How to restart an application:

You can restart an application by leveraging the PUT verb with the actions endpoint (per the application).

» continue reading

REST API – How to get a list of incoming streams

REST API – How to get a list of incoming streams:

A simple way to obtain a list of incoming streams (per vhost) would be to initiate a curl request against that vhost with the /applications/live/instances endpoint

» continue reading

How to add support for a single file with multiple tracks for any HLS Protocol

How to add support for a single file with multiple tracks for any HLS Protocol:

A question we have received many times over the last several months is can you get Wowza Streaming Engine to support single files with multiple tracks for any HLS Protocol. We have created a workaround for this lack of support via this module. It does require some ‘special’ SMIL file entries as it appears query […]

» continue reading

HTTP Provider to redirect customers to your website

HTTP Provider to redirect customers to your website:

This is a small http provider that will allow you to redirect customers to a sepcified URL instead of displaying the current Wowza Streaming Engine version. Set this up in your conf/VHost.xml just before the┬ácom.wowza.wms.http.HTTPServerVersion provider within the 8086 port as follows: <HTTPProvider> <BaseClass>guru.thewowza.example.httpprovider.website.Redirection</BaseClass> <RequestFilters>meta*</RequestFilters> <AuthenticationMethod>none</AuthenticationMethod> </HTTPProvider> You will also need to add a property […]

» continue reading

REST API – How to obtain information on inbound stream

REST API – How to obtain information on inbound stream:

You can obtain information of an inbound stream by running a simple cURL GET command.

» continue reading