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"

Comments are closed.