string
Get the default recording configuration
POST /server/v1/mcu/record-config
Authentication: required (see Overview)
Query the app’s current default recording configuration (layout, watermark, and user name label position). No request parameters;
the configuration is per app and determined by the app identity from authentication.
When a task is started without layout_data, this configuration is used—put your standard watermark, labels, and layout strategy here,
so you don’t have to pass them every time you start a task.
Request parameters
None
Response parameters
Label position in each view, a letter or combination: L left, R right, T top, B bottom; empty disables labels
Update the default recording configuration
POST /server/v1/mcu/save-record-config
Authentication: required (see Overview)
Update the app’s default recording configuration. All three fields are optional; pass only what you want to change.
Changes affect only new tasks started afterward; in-progress tasks are not affected.
Request parameters
Layout type: auto (automatic), full (full screen), right_4 (small views on the right), top_4 (small views on top), br_7 (bottom L-shape), tl_7 (top L-shape), tb_8 (side-by-side), equal grids grids_N (N is 2, 3, 4, 5, 6, 8, 9, 12, 16, 20, 25), ring layouts ring_16 (large ring: 25-cell grid with the middle 9 cells merged) and ring_12 (small ring: 16-cell grid with the middle 4 cells merged)
Example:
autoPosition of the user name label on each view, a letter or combination: L left, R right, T top, B bottom (such as LB for bottom left); empty means no label (max length 2)
Example:
Ldata is null
Response example:
List recording tasks
POST /server/v1/mcu/list-task
Authentication: required (see Overview)
List recording tasks with pagination. One recording = one task, and a task may have multiple recording files
(it rolls over to a new segment when the segment duration is exceeded, and resuming after an interruption also starts a new segment).
This endpoint returns only the tasks themselves. To get playable files, use “Get recording task details” (which inlines all files and URLs)
or “List recording files”. Use task_status to tell in-progress tasks from ended ones; record_count is the number of files produced.
Request parameters
Channel; empty means no filter (up to 64 bytes; letters, digits, underscores (_), and hyphens (-) only)
Example:
fireTask status; omit for no filter: 0 pending, 1 in progress, 2 stopping, 3 ended abnormally, 4 ended normally
Example:
4Start time, Unix timestamp in seconds, filtered by task creation time; 0 means no limit
Example:
1718194666Recording start time, Unix timestamp in seconds; 0 means the underlying task hasn’t started running yet
Example:
1718194666Number of recording files. A recording that exceeds the segment duration (1 hour by default) or is resumed after an interruption produces additional files
Get recording task details
POST /server/v1/mcu/detail
Authentication: required (see Overview)
Query the details of a recording task: task type, status, start and end times, total duration, and all recording files from this recording
(the records array, with each file’s playback URL, duration, start and end times, and segment sequence number).
One recording produces multiple files: it rolls over to a new segment when the segment duration (1 hour by default) is exceeded, and if recording is interrupted and then resumed,
that also starts a new segment. To play the entire recording, play the files in records in seq order.
With task_id it queries by task; with only channel it returns the channel’s most recent recording.
Use task_status to see how far the task has progressed (0 pending, 1 in progress, 2 stopping, 3 ended abnormally, 4 ended normally).
Request parameters
Whether to return internal network playback URLs, for purely internal deployments or dedicated-line access; public network URLs are returned by default
Recording start time, Unix timestamp in seconds; 0 means the underlying task hasn’t started running yet
Example:
1718194666Number of recording files. A recording that exceeds the segment duration (1 hour by default) or is resumed after an interruption produces additional files
List recording files
POST /server/v1/mcu/list-record
Authentication: required (see Overview)
List recording files with pagination; each item is one file (segment) produced by a recording.
Ascending seq is the playback order; offset_ms is the offset from the task start, used for the progress bar in multi-segment continuous playback.
reason=2 means there is a time gap between this segment and the previous one (recording was interrupted and resumed); watch for it in continuous playback.
After getting the list, use “Batch get recording file playback URLs” to fetch this page’s URLs in one go, which is much faster than fetching them one by one.
Request parameters
Recording task ID; pass it to view only the files of one recording; empty means no filter
Example:
sxjgwyChannel; empty means no filter (up to 64 bytes; letters, digits, underscores (_), and hyphens (-) only)
Example:
fireSegment start time, Unix timestamp in seconds, used to align with your own timeline
Example:
1718194666Offset from the task start (milliseconds); use this for the progress bar in multi-segment continuous playback
Example:
7200000Segment reason: 0 unknown, 1 split by duration, 2 resumed after interruption (gap from the previous segment), 3 end of task
Whether the upload is complete. false means it is still recording or uploading, and no playback URL is available
Presigned playback URL, valid for 2 hours; returned only by task details, empty in the list endpoint
Get a recording file’s playback URL
POST /server/v1/mcu/vod-url
Authentication: required (see Overview)
Get the playback URL of a single recording file. The file must have finished uploading; no URL is available while it is recording or uploading.
The URL expires (2 hours). Don’t cache it long term or store it in your database; get a new one before each playback.
Request parameters
Recording file ID, taken from the task details or the recording file list
Example:
rc3p9wWhether to return internal network URLs, for purely internal deployments or dedicated-line access; public network URLs are returned by default
Batch get recording file playback URLs
POST /server/v1/mcu/vod-url/batch
Authentication: required (see Overview)
Get playback URLs for recording files in bulk, up to 50 at a time; suited to fetching everything at once for continuous playback of an entire recording.
If issuing a URL fails for a single file (for example, it has been cleaned up), that item’s addr is empty; other items are not affected.
Request parameters
List of recording file IDs, up to 50 per request (max length 50)
Example:
["rc3p9w","rc3p9x"]Whether to return internal network URLs, for purely internal deployments or dedicated-line access; public network URLs are returned by default
Delete a recording task
POST /server/v1/mcu/del-task
Authentication: required (see Overview)
Delete a recording task together with all its recording files. After deletion it no longer appears in the list or details.
If you pass only channel without task_id, all tasks with video recording in that channel are deleted together.
To delete one specific recording, pass task_id.
Request parameters
Request example:
data is null
Response example:
Delete a recording file
POST /server/v1/mcu/del-record
Authentication: required (see Overview)
Delete a single recording file; other files from the same recording are not affected.
Request parameters
Request example:
data is null
Response example:
Start a recording or stream mixing task
POST /server/v1/mcu/start
Authentication: required (see Overview)
Starts a server-side recording or stream mixing task. A channel has only one task in progress per type:
calling again doesn’t create a new task but updates the existing one with the parameters passed in.
Stream mixing (task_type includes 2) publishes the composite video and the channel’s mixed audio back to the channel. To pull the composite video out for playback or push it to a live streaming platform,
call “Request a pull URL” or “Start a push” while the stream mixing task is in progress, with video=mcu as the source.
Request parameters
Task type as bit flags: 1 video recording, 2 stream mixing (publishes the composite video back to the channel), 4 audio recording; for example, 3 means video recording + stream mixing. For pulling or pushing the composite video, see the media output endpoints
Example:
3Channel (up to 64 bytes; letters, digits, underscores (_), and hyphens (-) only)
Example:
fireChannel title. Becomes the recording title and is also the default watermark content (when watermark.text is empty)
Example:
Weekly project sync 2024-06-12External meeting number. A meeting number from your own business, used only for lookup; not validated on the RTC side (max length 50)
Example:
818595664Recording tags, comma-separated (note: in “Update a recording task’s title and tags”, tags is an array)
Example:
Weekly sync,R&DLayout data. If omitted, the server’s default layout is used, and the watermark and user name labels use the app’s default recording configuration (see “Get the default recording configuration”)
Stop a recording or stream mixing task
POST /server/v1/mcu/stop
Authentication: required (see Overview)
Stops a recording or stream mixing task in progress. Recording files finish transcoding only after the task stops, and only then can playback URLs be obtained.
Tasks in progress stop automatically when the channel is destroyed, so you don’t need to call this first.
Request parameters
Task type (optional). Omit to stop tasks of all types in the channel; if set, only the specified types are stopped. Values are the same as for the start endpoint
Example:
1data is null
Response example:
Update a recording task’s title and tags
POST /server/v1/mcu/update-task
Authentication: required (see Overview)
Update a recording task’s title and tags for archiving and organization; the recording files themselves are not affected.
Both the title and tags can be matched by search in the recording task list.
Request parameters
Recording title; omit to leave unchanged (max length 100)
Example:
Weekly project sync (archived)Tags, up to 10. They are replaced as a whole, not appended—include any tags you want to keep (max length 10)
Example:
["Weekly sync","R&D"]data is null
Response example: