Add Endpoint
REQUEST
Note
There is a limit of 10 endpoints.
<?xml version="1.0"?>
<query>
<userid>[UserID]</userid><!-- REQUIRED -->
<userkey>[UserKey]</userkey><!-- REQUIRED -->
<action>AddStreamEndpoint</action>
</query>
{
"query": {
"userid": "[UserID]",
"userkey": "[UserKey]",
"action": "AddStreamEndpoint"
}
}
RESPONSE
<?xml version="1.0"?>
<response>
<endpoint>
<rtmp>
<url>rtmp://stream.encoding.com/live/[EndpointToken]</url>
<credentials>
<host>stream.encoding.com</host>
<port>1935</port>
<app_name>live</app_name>
<stream>[EndpointToken]</stream>
</credentials>
</rtmp>
</endpoint>
</response>
{
"response": {
"endpoint": {
"rtmp": {
"url": "rtmp://stream.encoding.com/live/[EndpointToken]",
"credentials": {
"host": "stream.encoding.com",
"port": "1935",
"app_name": "live",
"stream": "[EndpointToken]"
}
}
}
}
}
Get Endpoints
REQUEST
<?xml version="1.0"?>
<query>
<userid>[UserID]</userid><!-- REQUIRED -->
<userkey>[UserKey]</userkey><!-- REQUIRED -->
<action>GetStreamEndpointList</action>
</query>
{
"query": {
"userid": "[UserID]",
"userkey": "[UserKey]",
"action": "GetStreamEndpointList"
}
}
RESPONSE
<?xml version="1.0"?>
<response>
<endpoint>
<status>[inactive|online]</status>
<rtmp>
<url>rtmp://stream.encoding.com/live/[EndpointToken]</url>
<credentials>
<host>stream.encoding.com</host>
<port>1935</port>
<app_name>live</app_name>
<stream>[EndpointToken]</stream>
</credentials>
</rtmp>
</endpoint>
</response>
{
"response": {
"endpoint": {
"status": "[inactive|online]",
"rtmp": {
"url": "rtmp://stream.encoding.com/live/[EndpointToken]",
"credentials": {
"host": "stream.encoding.com",
"port": "1935",
"app_name": "live",
"stream": "[EndpointToken]"
}
}
}
}
}
Delete Endpoints
<?xml version="1.0"?>
<query>
<userid>[UserID]</userid><!-- REQUIRED -->
<userkey>[UserKey]</userkey><!-- REQUIRED -->
<action>DeleteStreamEndpoint</action>
<endpoint>[EndpointURL]</endpoint>
</query>
{
"query": {
"userid": "[UserID]",
"userkey": "[UserKey]",
"action": "DeleteStreamEndpoint",
"endpoint": "[EndpointURL]"
}
}