Live sources PHP query examples for the Wowza Streaming Engine REST API

Wowza Streaming Engine media server software includes a REST Application Programming Interface (API) that you can use to configure, manage, and monitor the media server through HTTP requests. This article describes how to identify and manage the live streaming sources connected to your Wowza Streaming Engine media server by using PHP to query the Wowza Streaming Engine REST service. Incoming live sources can include cameras and encoders that publish streams to your media server.
 

Notes:

Contents


Get a list of live stream sources (publishers)
Create a live stream source
Remove a live stream source
For developers

Get a list of live stream sources (publishers)


To get a list of all live sources that publish streams to your Wowza Streaming Engine media server, use the following request:
$sf = new Com\Wowza\Publisher();
$response = $sf->getAll();

Create a live stream source


The following example shows how to create a new live source:
$sf = new Com\Wowza\Publisher("myUser");
$response = $sf->create("myPassword");

Remove a live stream source


The following example shows how to delete a live source when you no longer need it:
$sf = new Com\Wowza\Publisher("myUser");
$response = $sf->remove();

For developers


Source code is available on GitHub.

Wowza Media Systems™ provides developers with a platform to create streaming applications and solutions. See Wowza Developer Tools to learn more about our APIs and SDK.