Estimate what a delay costs
GET
/streams/delay-cost/read Read: looks, changes nothing. Scopes
Before saving a delayed stream: the disk it needs on the recording server, the room left there, whether the channel must now run all the time, and when it is ready. Give original (the channel to delay) or nothing (a delayed stream with its own source); stream when editing one.
Query parameters
originalstring (uuid)The channel to delay.
secondsintegerrequiredThe delay: 120 to 604800 (7 days).
serverstring (uuid)The server to record on, when nothing records the channel yet.
streamstring (uuid)The delayed stream being edited.
Response
200 OK
secondsintegerrequiredbitrate_mbpsnumberrequiredmeasuredbooleanrequiredThe bitrate was measured (else estimated).
disk_bytesintegerrequiredextra_disk_bytesintegerrequiredWhat is not recorded there already.
serverobjectrequiredcan be nullidstring (uuid)requirednamestringrequired
disk_free_bytesintegerrequiredcan be nulldisk_total_bytesintegerrequiredcan be nullusable_bytesintegerrequiredcan be nullfitsbooleanrequiredcan be nullNull while the server has not said.
tightbooleanrequiredalways_onbooleanrequiredThe channel must now run all the time.
provider_connectionsintegerrequiredconvertsbooleanrequiredready_atstring (date-time)required
Errors
- 400
- 401 No credential, or one that is wrong, expired or revoked.
- 403 The account, or the key's or app's scopes, may not do this.
- 404
- 429 Slow down: wait the seconds in the Retry-After header, then try again.