Start a new stream.
Parameter | Type | Description |
---|---|---|
settings | StreamSettings object | The stream settings. See notes below |
callback | function | A callback function which will be called with the status of the request |
an array of http headers (key,value) pairs, for example: [{ key: "Content-Type", value: "application/json" }].
A callback function which will be called with the status of the request
{ "status": "success", "stream_id": 1 }
A callback function which will be called with the status of the request
{ "status": "error", "error": "something went wrong..." }
function(result) {
if (result.status == "success")
{
console.debug(result.stream_id);
}
}
Fired when the stream started streaming a new image source (desktop, game).
Container for the stream settings.
Parameter | Type | Description |
---|---|---|
rate | int | The frame rate of this stream |
quality | int | The quality of this stream |
Media type for the Media Event.
Option | Description |
---|---|
Video | |
Image |