Archive for the ‘RESTAPI’ Category

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

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