Overview
Recording and compositing are both done on the server; the client only sends commands and shows the status. Task types are distinguished byMcuTaskType:
You can also use
MeetingCreateReq.autoRecord when creating the meeting so that recording starts automatically once the meeting begins.
Build the layout and task parameters
LayoutData, McuStartReq, and the layout’s Watermark / Tag / Cell / DivList can all be constructed directly; optional parameters have default values:
The active-speaker cell and the speaker border require rtc-backend v1.14.0 and MCU 1.4.0 or later on the server.
Codable; the mapping between fields and JSON keys is in the tables below—if your layout configuration is JSON delivered by your backend, you can also decode it directly with JSONDecoder.
Layout fields
LayoutData:
Watermark:
Tag:
DivList and Cell:
For all
LayoutType enum values, see Types.
Start and stop tasks
McuStartReq fields:
Change the composite layout during the meeting
Query recording configuration and details
McuRecordDetail:
vodKey / vodSize / mcuAt / mcuDur are deprecated as of 1.4.1 (the new server no longer returns vodKey / vodSize); use records, totalSize, beganAt, and totalDuration instead.
Recording state events
When the task state changes, all members in the meeting receive:RoomInfo.recordStatus, which suits initializing a “recording” badge when entering the meeting.