Screen and input

Live stream numbers - fps, bitrate, viewer lag, ABR rung (a read key is enough)

get/devices/{name}/stream

Request

  • Base URL: https://api.clousd.com/v1
  • URL: https://api.clousd.com/v1/devices/{name}/stream
  • Auth: HTTP bearer

Response

Stream stats

phonestring
runningboolean

The phone screen is being captured right now

viewersinteger

Browsers watching right now

encoderstring

Phone encoder doing the capture; empty means scrcpy picked one

fps_innumber

Frames from the phone over the last second (0 when no frame arrived for 2 s)

kbps_innumber

Kbit/s from the phone over the last second

last_frame_age_msinteger

Age of the last frame, ms; -1 means there were no frames at all

pli_per_minnumber

Key frame requests from viewers per minute: it grows when the picture falls apart

droppedinteger

Frames the gateway dropped since start (a viewer could not keep up)

up_sinteger

Seconds the capture has been running

g2g_ms_lastnumber

Last glass-to-glass measurement (phone screen to browser), ms

g2g_age_sinteger

Seconds since that measurement; -1 means it was never measured

bitrate_kbpsinteger

Bitrate the encoder runs at right now

Example response

{
  "encoder": "c2.android.avc.encoder",
  "abr": {
    "ladder_kbps": [
      4000,
      2500,
      1500,
      800
    ]
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.