Streams

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.

  • secondsintegerrequired

    The 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

  • secondsintegerrequired
  • bitrate_mbpsnumberrequired
  • measuredbooleanrequired

    The bitrate was measured (else estimated).

  • disk_bytesintegerrequired
  • extra_disk_bytesintegerrequired

    What is not recorded there already.

  • serverobjectrequiredcan be null
    • idstring (uuid)required
    • namestringrequired
  • disk_free_bytesintegerrequiredcan be null
  • disk_total_bytesintegerrequiredcan be null
  • usable_bytesintegerrequiredcan be null
  • fitsbooleanrequiredcan be null

    Null while the server has not said.

  • tightbooleanrequired
  • always_onbooleanrequired

    The channel must now run all the time.

  • provider_connectionsintegerrequired
  • convertsbooleanrequired
  • ready_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.

What each error means