logo
On this page

Capture screenshots


Feature Description

Cloud Recording supports two types of screenshot features: Automatic Screenshots without Recording and Manual Screenshots with Recording.

This document describes how to take video screenshots using the cloud recording APIs.

Automatic Screenshots without Recording

Automatic Screenshots without Recording refers to taking screenshots of video streams at fixed intervals in both Single-Stream Recording mode and Mixed-Stream Recording mode. Screenshots are saved in JPG format.

Warning
  • In Single-Stream Recording mode, screenshot operations will be charged at Single-Stream Recording rates based on the screenshot resolution.
  • In Mixed-Stream Recording mode, screenshot operations will only be charged at Single-Stream Recording rates based on the screenshot resolution, without additional recording fees.

To capture screenshots, set the OutputFileFormat to "jpg" when calling the StartRecord method. You can control the screenshot interval by setting the SnapshotInterval parameter. The service takes a screenshot of all streams every 10 seconds by default.

Warning
  • Taking screenshots is not available when the StreamType is 1 (only audio). Video streams are required for screenshots.
  • When querying screenshot task status through the DescribeRecordStatus, the response parameters will not include the file list.

The captured screenshots during recording will be uploaded to your third-party cloud storage, and you will receive a notification through a callback every time a screenshot task is completed, with each callback corresponding to one screenshot file.

Sample request

Below is an example of starting automatic screenshots in Single-Stream Recording mode.

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

The request body of StartRecord is as follows:

Untitled
{
    "RoomId": "xxxx",
    "RecordInputParams": {
        "RecordMode": 1,
        "StreamType": 3,
        "MaxIdleTime": 60
    },
    "RecordOutputParams": {
        "OutputFileFormat": "jpg",
        "OutputFolder": "record/",
        "SnapshotInterval": 10
    },
    "StorageParams": {
        "Vendor": 2,
        "Region": "oss-xxxx",
        "Bucket": "xxxx",
        "AccessKeyId": "xxxx",
        "AccessKeySecret": "xxxx"
    }
}
1
Copied!

Manual Screenshots with Recording

Manual Screenshots with Recording refers to taking screenshots by calling the server API TakeSnapshot when needed after starting a Mixed-Stream Recording task.

Note

When taking manual screenshots during Mixed-Stream Recording, you will only be charged at Single-Stream Recording rates based on the screenshot resolution, without additional recording fees.

Previous

Multi-sector recording (Whiteboard)