How to create and manage live sources by using the Wowza Streaming Engine REST API

Use the Wowza Streaming Engine™ live streaming software REST API to create and manage encoders and cameras that publish live streams to a Wowza Streaming Engine instance.

Notes:

Contents


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

Get a list of live stream sources (publishers)


View a list of the live stream sources (publishers) connected to a local instance of Wowza Streaming Engine:

curl -X GET --header 'Accept:application/json; charset=utf-8' --header 'Content-Type:application/json; charset=utf-8' http://localhost:8087/v3/servers/_defaultServer_/publishers

The command should return a response that looks like this:

{
  "serverName": "_defaultServer_",
  "publishers": [{
      "publisher": "myRTSPcamera"
  }]
}

Create a live stream source (publisher)


Create a live stream source (publisher) for a local instance of Wowza Streaming Engine:

curl -X POST --header 'Accept:application/json; charset=utf-8' --header 'Content-Type:application/json; charset=utf-8' http://localhost:8087/v2/servers/_defaultServer_/publishers -d'
{
  "password": "123",
  "name": "myRTMPencoder",
  "serverName": "",
  "description": "",
  "version": "3"
}

The command should return a response that looks like this:

{
  "success": true,
  "message": "",
  "data": null
}

Remove a live stream source


Delete a live stream source (publisher):

curl -X DELETE --header 'Accept:application/json; charset=utf-8' --header 'Content-Type:application/json; charset=utf-8' http://localhost:8087/v3/servers/_defaultServer_/publishers/myRTMPencoder

If you're having problems or want to discuss this article, post in our forum.