Home / Docs Center / Device API Reference / QueryPush/Pull Status

QueryPush/Pull Status

Device API Reference · New API

Project: Device API Documentation (New) | page_id: 365

Brief Description:

  • Query the push/pull stream status. Judged under the condition that the channel switch is enabled

Request URL:
- /xsw/tmpStatus

Request Method:
- POST,GET

URL Parameters:

Parameter Required Type Description
- - - -

Response Example

{
  "rtspstatus": "{\"rtspstatus\":[\"2\",\"2\",\"2\",\"2\",\"0\",\"0\",\"0\",\"0\"]}",
  "rtspband": "{\"rtspband\":[\"65.7k\",\"82.6k\",\"82.3k\",\"81.4k\"]}",
  "rtmpstatus": "{\"rtmpstatus\":[\"1\",\"1\",\"1\",\"1\"]}",
  "rtmpband": "{\"rtmpband\":[\"0.0k\",\"0.0k\",\"0.0k\",\"0.0k\"]}",
  "codecstatus": "{\"codecstatus\":[\"1\",\"1\",\"1\",\"1\"]}"
}

Response Parameter Description

Parameter Type Description
rtspstatus string Pull status, parse the array via JSON.parse(rtspstatus). 0 pull failed, 1 not enabled, 2 normal
rtspband string Pull bandwidth, parse the array via JSON.parse(rtspband). Pull bandwidth
rtmpstatus string Push status, parse the array via JSON.parse(rtmpstatus). 0 push failed, 1 not enabled, 2 normal
rtmpband string Push bandwidth, parse the array via JSON.parse(rtmpband). Push bandwidth
codecstatus string Video format, parse the array via JSON.parse(codecstatus). 0 means h265, 1 not enabled, 2 means h264
Didn't find what you need?Contact us,Talk to our engineers directly.

Request a Quote

Fill in the form and we will get back with a quote and proposal within 1 business day.

Click "Generate inquiry email" to open your mail client with the body pre-filled. If no mail client is configured, click "Copy" and paste it into webmail — recipient: sunshiyang@xstrive.com.