Home / Docs Center / Device API Reference / Recording Switch (Latest Version)

Recording Switch (Latest Version)

Device API Reference · Recording & Playback

Project: Device Interface Document (New Version) | page_id: 1019

Brief Description:

  • Recording switch (supported from version greater than 1.27.0 shown in the upper right corner of the web page)

Request URL:
- /xsw/api/record/control

Request Method:
- POST

Parameters:

Parameter Name Required Type Description
channel Yes int Channel, i.e. the stream index, starting from 0
enable Yes int Whether to enable: 0 disabled, 1 enabled

Return Example

  {
        "code": 0,
        "msg": "",
  }

Return Parameter Description

Parameter Name Type Description
code int Status code. 0 means success, others mean failure
msg string Failure message

Notes

  • None
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.