| CARVIEW |
Control Panel — API documentation
Stream Fetches
Stream Fetches represent external streams that are pulled and streamed from your origin.
Descriptions
Stream Name
May only contain alpha numerical characters, dashes (-), and underscores (_)
Sample value:mystreamname
URL of the Source stream
RFC 2396 compliant URL
Sample value:rtmp://hostname.com/app/inst/stream
Audio codec: -1 for none, 0 for copy, or aac
String
Default:0
Sample value:aac
Examples
Get the Streamfetches object with id .
Example URL
https://api.scaleengine.net/v2/streamfetches/
Example cURL
curl --user 158:8fc8c48da81e6a2a06a9556379bf798af508dc0792497c678b4c3532ba8b637f https://api.scaleengine.net/v2/streamfetches/
Example request body
None
Example response data
{
"id": "N/A",
"cdn_id": "8123",
"stream": "mystreamname",
"source_url": "rtmp://hostname.com/app/inst/stream",
"audio_codec": "aac",
"audio_bitrate": "8000",
"server": "2",
"custom_settings": "true",
"active": "true"
}
Create a new Streamfetches object.
Example URL
https://api.scaleengine.net/v2/streamfetches
Example cURL
curl -X PUT --data-binary @/path/to/request/body --user 158:8fc8c48da81e6a2a06a9556379bf798af508dc0792497c678b4c3532ba8b637f https://api.scaleengine.net/v2/streamfetches
Example request body
{
"stream": "mystreamname",
"source_url": "rtmp://hostname.com/app/inst/stream",
"audio_codec": "aac",
"audio_bitrate": "8000",
"server": "2",
"custom_settings": "true",
"active": "true"
}
Example response data
{
"id": "N/A",
"cdn_id": "8123",
"stream": "mystreamname",
"source_url": "rtmp://hostname.com/app/inst/stream",
"audio_codec": "aac",
"audio_bitrate": "8000",
"server": "2",
"custom_settings": "true",
"active": "true"
}
Update the Streamfetches object with id .
Example URL
https://api.scaleengine.net/v2/streamfetches/
Example cURL
curl -X POST --data-binary @/path/to/request/body --user 158:8fc8c48da81e6a2a06a9556379bf798af508dc0792497c678b4c3532ba8b637f https://api.scaleengine.net/v2/streamfetches/
Example request body
{
"stream": "mystreamname",
"source_url": "rtmp://hostname.com/app/inst/stream",
"audio_codec": "aac",
"audio_bitrate": "8000",
"server": "2",
"active": "true"
}
Example response data
{
"id": "N/A",
"cdn_id": "8123",
"stream": "mystreamname",
"source_url": "rtmp://hostname.com/app/inst/stream",
"audio_codec": "aac",
"audio_bitrate": "8000",
"server": "2",
"custom_settings": "true",
"active": "true"
}
Delete the Streamfetches object with id .
Example URL
https://api.scaleengine.net/v2/streamfetches/
Example cURL
curl -X DELETE --user 158:8fc8c48da81e6a2a06a9556379bf798af508dc0792497c678b4c3532ba8b637f https://api.scaleengine.net/v2/streamfetches/
Example request body
Example response data
None
Errors
You do not have access to modify this field
Missing one or more required fields
Data type does not conform to required field type
The value exceeded maximum length allowed
May only contain alpha numerical characters, dashes (-), and underscores (_)
RFC 2396 compliant URL
The value must be between the predefined range