Cloud Recording
  • Introduction
  • Release notes
  • Getting started
  • Guides
    • Single-stream recording
    • Mixed-stream recording
    • Set mixed-stream layout
    • Multi-sector recording (Whiteboard)
    • Capture screenshots
  • API reference
    • API overview
    • Accessing Server APIs
    • Start recording
    • Stop recording
    • Update the mixed-stream layout
    • Update the whiteboard
    • Query recording status
    • Query the recording task list
    • Pause recording
    • Resume recording
    • Callback of the recording status
    • API testing with Postman
  • Error codes
  • Documentation
  • Cloud Recording
  • Common Features
  • Whiteboard Recording

Multi-sector recording (Whiteboard)

Last updated:2022-12-14 15:53

Cloud recording supports recording audio, video streams, and whiteboard files, which is multi-sector recording. And this mode can be used in conjunction with the single-stream and mixed-stream recording modes. In single-stream recording mode, the whiteboard recording will be generated into a single video file. In the mixed-stream recording mode, the whiteboard recording, audio, and video streams will be generated into a file.

We currently support the following image file formats: JPG, JPEG, PNG, BMP.

This document describes how to implement multi-sector recording by using cloud recording APIs.

Implementation

To record the whiteboard, set the HasWhiteboard to true when calling the StartRecord method.

The Whiteboard is an array in JSON format that consists of the configurations of the whiteboard. You can only configure one whiteboard for now.

  • The HorizontalRatio and VerticalRatio parameters indicate the aspect ratio of the original whiteboard region and are required.
  • The Width and Height parameters indicate the resolution of the outputted whiteboard video in single-stream recording mode. While you don't need to set these two parameters in mixed-stream recording mode.
  • The WhiteboardId parameter indicates the ID of the whiteboard that is being recorded.

To change a whiteboard, call the UpdateWhiteboard method, and set the WhiteboardId parameter with the ID of the whiteboard you want to change to.

Sample request

Content-type: application/json; charset=utf-8

The request example of enabling whiteboard recording in mixed-stream recording mode is as follows:

{
    "RoomId": "xxxx",
    "RecordInputParams": {
        "RecordMode": 2,
        "StreamType": 3,
        "HasWhiteboard": true,
        "Whiteboard": [
            {
                "HorizontalRatio": 16,
                "VerticalRatio": 9,
                "Width": 1280,
                "Height": 720,
                "WhiteboardId": "0000"
            }
        ],
        "MaxIdleTime": 60,
        "MixConfig": {
            "MixMode": 3,
            "MixOutputStreamId": "mix",
            "MixOutputVideoConfig": {
                    "Width": 1280, 
                    "Height": 720, 
                    "Fps": 15, 
                    "Bitrate": 1130000
            }
        }
    },
    "RecordOutputParams": {
        "OutputFileFormat": "mp4",
        "OutputFolder": "record/"
    },
    "StorageParams": {
        "Vendor": 2,
        "Region": "oss-xxxx",
        "Bucket": "xxxx",
        "AccessKeyId": "xxxx",
        "AccessKeySecret": "xxxx"
    }
}
Page Directory