This document provides details about the Cloud Recording API endpoints with curl examples for testing.
Starts a cloud recording session.
POST: /cloud_recording/start
{
"channelName": "string",
"uid": "string",
"recordingConfig": {
// RecordingConfig fields
},
"storageConfig": {
// StorageConfig fields
}
}
{
"resourceId": "string",
"sid": "string",
"timestamp": "string"
}
Stops an ongoing cloud recording session.
POST: /cloud_recording/stop
{
"cname": "string",
"uid": "string",
"resourceId": "string",
"sid": "string",
"recordingMode": "string",
"async_stop": boolean
}
{
"resourceId": "string",
"sid": "string",
"serverResponse": {
"fileListMode": "string",
"fileList": [
{
"fileName": "string",
"trackType": "string",
"uid": "string",
"mixedAllUser": boolean,
"isPlayable": boolean,
"sliceStartTime": number
}
]
},
"timestamp": "string"
}
Retrieves the status of a cloud recording session.
GET: /cloud_recording/status
resourceId
: stringsid
: stringmode
: string
{
"resourceId": "string",
"sid": "string",
"serverResponse": {
"fileListMode": "string",
"fileList": [
{
"fileName": "string",
"trackType": "string",
"uid": "string",
"mixedAllUser": boolean,
"isPlayable": boolean,
"sliceStartTime": number
}
]
},
"timestamp": "string"
}
Updates the subscriber list for a cloud recording session.
POST: /cloud_recording/update/subscriber-list
{
"cname": "string",
"uid": "string",
"resourceId": "string",
"sid": "string",
"recordingMode": "string",
"recordingConfig": {
// UpdateSubscriptionClientRequest fields
}
}
{
"cname": "string",
"uid": "string",
"resourceId": "string",
"sid": "string",
"timestamp": "string"
}
Updates the layout of a cloud recording session.
POST: /cloud_recording/update/layout
{
"cname": "string",
"uid": "string",
"resourceId": "string",
"sid": "string",
"recordingMode": "string",
"recordingConfig": {
// UpdateLayoutClientRequest fields
}
}
{
"cname": "string",
"uid": "string",
"resourceId": "string",
"sid": "string",
"timestamp": "string"
}
Replace localhost:8080
with your server's address if different.