Skip to main content

Addstream

AddStream

This call can be used to add or update streams, without modifying other streams. An example call:

{
"addstream": {
"streamname_here": {},//contents identical to streams call
//multiple streams may be added/updated simultaneously
}
}

It's usage is identical to the streams call, with the following changes:

  • Streams are never deleted when this call is used, only added or updated.

  • As such, sending an empty "addstream" request will not delete all streams.

  • The resulting "streams" reply from MistServer will not contain all streams, but instead only updated/new streams. To indicate this, a special stream ""incomplete list":1" is added to the list of streams.

Push stream example with optional parameters

{
"addstream":{
"streamname_here": {
"name": "livestream01",
"source": "push://localhost@password",
"stop_sessions": false,
"DVR": "120000",
"cut": null,
"debug": null,
"fallback_stream": null,
"maxkeepaway": null,
"resume": null,
"segmentsize": "6000",
"processes": []
}
}
}

As a reminder, the full list of optional parameters can be found through the capabilities call.