Available in Classic and VPC
End recording on a live channel that is recording.
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
PUT | /api/v2/channels/{channelId}/stopRecord |
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/stopRecord' \
--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}.shouldDeleteTime |
Integer | - | Recording file deletion date and time (millisecond)
|
content.recordList.{recordId}.resolution |
String | - | Resolution
|
content.recordList.{recordId}.fileName |
String | - | File name |
content.recordList.{recordId}.duration |
Integer | - | Playback time (millisecond) |
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": "PROCESSING",
"recordSeq": 1307133,
"streamSeq": 361545,
"recordBeginTime": 1755498175000,
"createdTime": 1755498313000,
"shouldDeleteTime": 1755757513000,
"resolution": "720x1280",
"fileName": "361545-1307133-20250818****.mp4",
"duration": 137590,
"videoBitrate": 2500000,
"audioBitrate": 128000,
"videoFrameRate": 30.0,
"audioCodec": "aac",
"objectStorageUrl": "-"
},
"270****": {
"recordType": "HLS",
"channelId": "ls-20250814******-PZohi",
"status": "PROCESSING",
"recordSeq": 1307133,
"streamSeq": 361545,
"recordBeginTime": 1755498175000,
"createdTime": 1755498313000,
"shouldDeleteTime": 1755757513000,
"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": "PROCESSING",
"recordSeq": 1307133,
"streamSeq": 361545,
"recordBeginTime": 1755498175000,
"createdTime": 1755498313000,
"shouldDeleteTime": 1755757513000,
"resolution": "1920x1080",
"fileName": "quality000/playlist.m3u8",
"videoBitrate": 8960000,
"audioBitrate": 320000,
"videoFrameRate": 60.0,
"audioCodec": "AAC",
"objectStorageUrl": "-"
}
}
},
"total": 3
}