Skip to content

Latest commit

 

History

History
189 lines (147 loc) · 2.77 KB

Cloud_Recording_Endpoints.md

File metadata and controls

189 lines (147 loc) · 2.77 KB

Cloud Recording API

This document provides details about the Cloud Recording API endpoints with curl examples for testing.

Start Recording

Starts a cloud recording session.

Endpoint

POST: /cloud_recording/start

Request Body

{
  "channelName": "string",
  "uid": "string",
  "recordingConfig": {
    // RecordingConfig fields
  },
  "storageConfig": {
    // StorageConfig fields
  }
}

Response

{
  "resourceId": "string",
  "sid": "string",
  "timestamp": "string"
}

Stop Recording

Stops an ongoing cloud recording session.

Endpoint

POST: /cloud_recording/stop

Request Body

{
  "cname": "string",
  "uid": "string",
  "resourceId": "string",
  "sid": "string",
  "recordingMode": "string",
  "async_stop": boolean
}

Response

{
  "resourceId": "string",
  "sid": "string",
  "serverResponse": {
    "fileListMode": "string",
    "fileList": [
      {
        "fileName": "string",
        "trackType": "string",
        "uid": "string",
        "mixedAllUser": boolean,
        "isPlayable": boolean,
        "sliceStartTime": number
      }
    ]
  },
  "timestamp": "string"
}

Get Recording Status

Retrieves the status of a cloud recording session.

Endpoint

GET: /cloud_recording/status

Query Parameters

  • resourceId: string
  • sid: string
  • mode: string

Response

{
  "resourceId": "string",
  "sid": "string",
  "serverResponse": {
    "fileListMode": "string",
    "fileList": [
      {
        "fileName": "string",
        "trackType": "string",
        "uid": "string",
        "mixedAllUser": boolean,
        "isPlayable": boolean,
        "sliceStartTime": number
      }
    ]
  },
  "timestamp": "string"
}

Update Subscriber List

Updates the subscriber list for a cloud recording session.

Endpoint

POST: /cloud_recording/update/subscriber-list

Request Body

{
  "cname": "string",
  "uid": "string",
  "resourceId": "string",
  "sid": "string",
  "recordingMode": "string",
  "recordingConfig": {
    // UpdateSubscriptionClientRequest fields
  }
}

Response

{
  "cname": "string",
  "uid": "string",
  "resourceId": "string",
  "sid": "string",
  "timestamp": "string"
}

Update Layout

Updates the layout of a cloud recording session.

Endpoint

POST: /cloud_recording/update/layout

Request Body

{
  "cname": "string",
  "uid": "string",
  "resourceId": "string",
  "sid": "string",
  "recordingMode": "string",
  "recordingConfig": {
    // UpdateLayoutClientRequest fields
  }
}

Response

{
  "cname": "string",
  "uid": "string",
  "resourceId": "string",
  "sid": "string",
  "timestamp": "string"
}

Replace localhost:8080 with your server's address if different.