Available in Classic and VPC
Start video recording of a live channel. It can be started only for channels with the PUBLISHING
status.
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
PUT | /api/v2/channels/{channelId}/startRecord |
Request headers
For information about the headers common to all Live Station APIs, see Live Station request headers.
Request path parameters
You can use the following path parameters with your request:
Field | Type | Required | Description |
---|---|---|---|
channelId |
String | Required | Channel ID
|
Request example
The request example is as follows:
curl --location --request PUT 'https://livestation.apigw.ntruss.com/api/v2/channels/ls-20250814******-PZohi/startRecord' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--header 'x-ncp-region_code: KR'
Response
This section describes the response format.
Response body
The response body includes the following data:
Field | Type | Required | Description |
---|---|---|---|
content |
Object | - | Response result |
content.recordList |
Object | - | Recording file list |
content.recordList.{recordId} |
Object | - | Recording file information
|
content.recordList.{recordId}.recordType |
String | - | Recording file type
|
content.recordList.{recordId}.channelId |
String | - | Channel ID |
content.recordList.{recordId}.status |
String | - | File status
|
content.recordList.{recordId}.recordSeq |
Integer | - | Recording file sequence number |
content.recordList.{recordId}.streamSeq |
Integer | - | Stream sequence number |
content.recordList.{recordId}.recordBeginTime |
Integer | - | Recording start date and time (millisecond)
|
content.recordList.{recordId}.createdTime |
Integer | - | Recording file creation date and time (millisecond)
|
content.recordList.{recordId}.resolution |
String | - | Resolution
|
content.recordList.{recordId}.fileName |
String | - | File name |
content.recordList.{recordId}.videoBitrate |
Integer | - | Video stream's bitrate (bps) |
content.recordList.{recordId}.audioBitrate |
Integer | - | Audio stream's bitrate (bps) |
content.recordList.{recordId}.videoFrameRate |
Float | - | Number of frames per second (fps) |
content.recordList.{recordId}.audioCodec |
String | - | Audio codec |
content.recordList.{recordId}.objectStorageUrl |
String | - | Recording URL
|
total |
Integer | - | Total number of recording files |
Response status codes
For information about the HTTP status codes common to all Live Station APIs, see Live Station response status codes.
Response example
The response example is as follows:
{
"content": {
"recordList": {
"270****": {
"recordType": "MP4",
"channelId": "ls-20250814******-PZohi",
"status": "RECORDING",
"recordSeq": 1307133,
"streamSeq": 361545,
"recordBeginTime": 1755498175000,
"createdTime": 1755498175000,
"fileName": "361545-1307133-20250818****.mp4",
"objectStorageUrl": "-"
},
"270****": {
"recordType": "HLS",
"channelId": "ls-20250814******-PZohi",
"status": "RECORDING",
"recordSeq": 1307133,
"streamSeq": 361545,
"recordBeginTime": 1755498175000,
"createdTime": 1755498175000,
"resolution": "720x1280",
"fileName": "720p-9-16/playlist.m3u8",
"videoBitrate": 2500000,
"audioBitrate": 128000,
"videoFrameRate": 30.0,
"audioCodec": "AAC",
"objectStorageUrl": "-"
},
"270****": {
"recordType": "HLS",
"channelId": "ls-20250814******-PZohi",
"status": "RECORDING",
"recordSeq": 1307133,
"streamSeq": 361545,
"recordBeginTime": 1755498175000,
"createdTime": 1755498175000,
"resolution": "1920x1080",
"fileName": "quality000/playlist.m3u8",
"videoBitrate": 8960000,
"audioBitrate": 320000,
"videoFrameRate": 60.0,
"audioCodec": "AAC",
"objectStorageUrl": "-"
}
}
},
"total": 3
}