Home / Docs Center / Device API Reference / Recording FileCloud UploadConfiguration

Recording FileCloud UploadConfiguration

Device API Reference · Recording & Playback

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

Brief Description:

  • A specific version that supports recording upload is required. China Mobile Cloud and Alibaba Cloud Object Storage are supported. For other vendors, please contact us for custom development

Request URL:
- /xsw/set_st

Request Method:
- POST or GET

Parameters:

Parameter Required Type Description
st_enable Yes number Switch, 0 disabled, 1 China Mobile Cloud, 2 Alibaba Cloud
st_name Yes string Outermost folder of the object storage
st_obs Yes string Length less than 512, endpoint ak sk bucketName can be updated independently, i.e. the encode can contain partial fields, see the notes for details

Response Example

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

Request Example

    http://serialnumber.cloud.xstrive.com:9502/set_st?st_name=record-15d&st_enable=1&st_obs=xxxxx
    http://192.168.0.15/set_st?st_name=record-15d&st_enable=0&st_obs=xxxxx

Notes

  • st_obs parameter description:
    endpoint: access domain name
    ak: access key, AccessKey ID: used to identify the user
    sk: secret access key, used to verify the user's key. The AccessKey Secret must be kept confidential
    bucketName: bucket name
    Examples (partial fields can be updated):
    base64.encode(endpoint=obs.xxx.cmecloud.cn&ak=xxxx&sk=xxxx&bucketName=media-record)
    base64.encode(ak=xxxx&sk=xxxx)
    base64.encode(bucketName=media-record)
  • Storage path
    bucketName/st_name/serial number/channel number (starting from 0) - date (20060102)/current milliseconds-duration.ts(.flv)
    Example:
    media-record/record-15d/xuliehao/0-20060102/1659924502314-30000.ts
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.