UpdateCloudRecord
Updates a cloud recording task.
Operation description
Usage
Updates a cloud recording task for an online channel.
QPS limit
This API supports up to 10 requests per second per user. Exceeding this limit triggers rate limiting, which may affect your service. Call the API responsibly.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rtc:UpdateCloudRecord |
create |
*App
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
Yes |
The application ID. You can create and query it in the console. Only one ID is supported. |
eo85**** |
| ChannelId |
string |
Yes |
The existing channel ID. Only one ID is supported. |
testid |
| TemplateId |
string |
Yes |
The template ID. Important To update the layout, change the template ID. Resolution updates are not supported. |
567 |
| TaskId |
string |
Yes |
The task ID for this cloud recording. Only one ID is supported. It can contain letters, digits, underscores (_), and hyphens (-), with a maximum length of 55 bytes. |
123 |
| Panes |
array<object> |
No |
Cell settings. |
|
|
array<object> |
No |
|||
| SourceType |
string |
No |
The media type of the cell. Valid values:
|
video |
| VideoOrder |
string |
No |
The fill order when SourceType is video.
|
cameraFirst |
| PaneId |
integer |
Yes |
The pane ID, starting from 0. |
0 |
| Source |
string |
No |
The media source for the cell. You can specify a userId to target a specific user. Wildcard characters are also supported:
|
22 |
| PaneCropMode |
integer |
No |
The cropping mode. Valid values:
|
2 |
| ReservePaneForOfflineUser |
boolean |
No |
Reserves a pane for a user who goes offline. The default value is true. If true, the pane for a specified user or wildcard user remains as a placeholder. If false, the pane is filled with a video stream based on the Auto Fill order. |
|
| Images |
array<object> |
No |
Local image watermarks for the pane. |
|
|
object |
No |
|||
| Url |
string |
Yes |
The image URL. The image content cannot be updated during stream ingest. |
https://aliyun.com/123xxx.jpg |
| Alpha |
number |
No |
Transparency. |
0.9 |
| PaneImageCropMode |
integer |
No |
The cropping mode. Valid values:
|
2 |
| X |
number |
Yes |
The horizontal coordinate. |
0.2 |
| Y |
number |
Yes |
The vertical coordinate. |
0.2 |
| Width |
number |
Yes |
Width. |
0.2 |
| Height |
number |
Yes |
Height. |
0.2 |
| Layer |
integer |
No |
The z-axis layer. |
0 |
| Display |
string |
No |
When to display the watermark.
|
backup |
| Backgrounds |
array<object> |
No |
Background images. |
|
|
object |
No |
|||
| Url |
string |
Yes |
The background image URL. |
https://aliyun.com/123xx.jpg |
| Alpha |
number |
No |
Transparency. |
0.9 |
| PaneBackgroundCropMode |
integer |
No |
The cropping mode. Valid values:
|
2 |
| X |
number |
Yes |
The horizontal coordinate. |
0.2 |
| Y |
number |
Yes |
The vertical coordinate. |
0.2 |
| Width |
number |
Yes |
Width. |
0.2 |
| Height |
number |
Yes |
Height. |
0.2 |
| Layer |
integer |
No |
The z-axis layer. |
0 |
| Display |
string |
No |
When to display.
|
backup |
| Texts |
array<object> |
No |
Local text watermarks for the pane. |
|
|
array<object> |
No |
|||
| Texture |
string |
Yes |
The watermark content. |
文字水印 |
| FontSize |
integer |
No |
Font size. |
36 |
| Alpha |
number |
No |
Watermark transparency. |
0.9 |
| FontColor |
object |
No |
Font color. |
|
| R |
integer |
No |
R. |
255 |
| G |
integer |
No |
G. |
255 |
| B |
integer |
No |
B. |
255 |
| Font |
integer |
No |
Font.
|
0 |
| X |
number |
Yes |
The horizontal coordinate. |
0.2 |
| Y |
number |
Yes |
The vertical coordinate. |
0.2 |
| Layer |
integer |
No |
The z-axis layer. |
0 |
| HasBox |
boolean |
No |
Whether to draw a rectangle box. |
|
| BoxColor |
object |
No |
Rectangle box color. |
|
| R |
integer |
No |
R. |
255 |
| G |
integer |
No |
G. |
255 |
| B |
integer |
No |
B. |
255 |
| BoxAlpha |
number |
No |
Rectangle box transparency. |
0.6 |
| BoxBorderw |
integer |
No |
Rectangle box border width. |
5 |
| Display |
string |
No |
When to display the watermark.
|
backup |
| Whiteboard |
object |
No |
Whiteboard configuration. |
|
| WhiteboardId |
string |
No |
The whiteboard ID. Default value: default. |
default |
| Images |
array<object> |
No |
Global image watermarks. |
|
|
object |
No |
|||
| Url |
string |
Yes |
The image URL. The image content cannot be updated during stream ingest. |
https://aliyun.com/123.jpg |
| Alpha |
number |
No |
Transparency. |
0.9 |
| ImageCropMode |
integer |
No |
The cropping mode. Valid values:
|
2 |
| X |
number |
Yes |
The horizontal coordinate. |
0.2 |
| Y |
number |
Yes |
The vertical coordinate. |
0.2 |
| Width |
number |
Yes |
Width. |
0.2 |
| Height |
number |
Yes |
Height. |
0.2 |
| Layer |
integer |
No |
The z-axis layer. |
0 |
| Backgrounds |
array<object> |
No |
Background images. |
|
|
object |
No |
|||
| Url |
string |
Yes |
The image URL. |
https://aliyun.com/123.jpg |
| Alpha |
number |
No |
Transparency. |
0.9 |
| BackgroundCropMode |
integer |
No |
The cropping mode. Valid values:
|
2 |
| X |
number |
Yes |
The horizontal coordinate. |
0.2 |
| Y |
number |
Yes |
The vertical coordinate. |
0.2 |
| Width |
number |
Yes |
Width. |
0.2 |
| Height |
number |
Yes |
Height. |
0.2 |
| Layer |
integer |
No |
The z-axis layer. |
0 |
| Texts |
array<object> |
No |
Global text watermarks. |
|
|
array<object> |
No |
|||
| Texture |
string |
Yes |
The watermark content. |
文字水印 |
| FontSize |
integer |
No |
Font size. |
36 |
| Alpha |
number |
No |
Watermark transparency. |
0.1 |
| FontColor |
object |
No |
Font color. |
|
| R |
integer |
No |
R. |
255 |
| G |
integer |
No |
G. |
255 |
| B |
integer |
No |
B. |
255 |
| Font |
integer |
No |
Font.
|
0 |
| X |
number |
Yes |
The horizontal coordinate. |
0.2 |
| Y |
number |
Yes |
The vertical coordinate. |
0.2 |
| Layer |
integer |
No |
The z-axis layer. |
0 |
| HasBox |
boolean |
No |
Whether to draw a rectangle box. |
|
| BoxColor |
object |
No |
Rectangle box color. |
|
| R |
integer |
No |
R. |
255 |
| G |
integer |
No |
G. |
255 |
| B |
integer |
No |
B. |
255 |
| BoxAlpha |
number |
No |
Rectangle box transparency. |
0.6 |
| BoxBorderw |
integer |
No |
Rectangle box border width. |
5 |
| ClockWidgets |
array<object> |
No |
Global clock watermarks. |
|
|
array<object> |
No |
|||
| Zone |
integer |
No |
Time zone. |
8 |
| FontSize |
integer |
No |
Clock font size. |
30 |
| Alpha |
number |
No |
Transparency. |
0.9 |
| FontColor |
object |
No |
Font color. |
|
| R |
integer |
No |
R. |
255 |
| G |
integer |
No |
G. |
255 |
| B |
integer |
No |
B. |
255 |
| Font |
integer |
No |
Font.
|
0 |
| X |
number |
Yes |
The horizontal coordinate. |
0.2 |
| Y |
number |
Yes |
The vertical coordinate. |
0.2 |
| Layer |
integer |
No |
The z-axis layer. |
0 |
| HasBox |
boolean |
No |
Whether to draw a rectangle box. |
|
| BoxColor |
object |
No |
Rectangle box color. |
|
| R |
integer |
No |
R. |
255 |
| G |
integer |
No |
G. |
255 |
| B |
integer |
No |
B. |
255 |
| BoxAlpha |
number |
No |
Rectangle box transparency. |
0.6 |
| BoxBorderw |
integer |
No |
Rectangle box border width. |
5 |
| LayoutSpecifiedUsers |
object |
No |
A list that specifies users for layout generation. It supports both blacklists and whitelists. Whitelist: Specifies the users whose video streams are subscribed to in the channel.
Blacklist: Specifies the users whose video streams are not subscribed to in the channel.
|
|
| Type |
string |
Yes |
The type of the user list. Valid values: `black` for a blacklist and `white` for a whitelist. |
white |
| Ids |
array |
Yes |
The list of specified user IDs. |
|
|
string |
Yes |
A user ID. |
123 |
The total number of local image watermarks, local background images, global image watermarks, and global background images cannot exceed 16.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Result |
||
| TaskId |
string |
The task ID for this cloud recording. |
123 |
| RequestId |
string |
The request ID. |
16A96B9A-F203-4EC5-8E43-CB92E68F4CF8 |
Examples
Success response
JSON format
{
"TaskId": "123",
"RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F4CF8"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.