ModifyViewLayout
Configures the mixed stream layout.
Operation description
QPS limit
The QPS limit per user is 10 calls per second. If this limit is exceeded, API calls are throttled, which may affect your services. Call the API at a reasonable rate.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rtc:ModifyViewLayout |
update |
*App
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
Yes |
The application ID. You can create and query the ID in the console. Only a single ID is supported. |
eo85**** |
| ChannelId |
string |
Yes |
The ID of an existing channel. Only a single ID is supported. |
testid |
| TemplateId |
string |
Yes |
The template ID. |
567 |
| TaskId |
string |
Yes |
The task ID. Only a single ID is supported. The ID can contain letters, digits, underscores (_), and hyphens (-), and can be up to 55 bytes in length. |
123 |
| Panes |
array<object> |
No |
The pane settings. You can configure up to 16 panes. |
|
|
array<object> |
No |
|||
| SourceType |
string |
No |
The media type of the pane. Valid values:
|
video |
| Images |
array<object> |
No |
The image watermarks for the pane. |
|
|
object |
No |
|||
| PaneImageCropMode |
integer |
No |
The crop mode of the image. Valid values:
|
2 |
| Alpha |
number |
No |
The opacity of the image. |
0.9 |
| X |
number |
Yes |
The x-coordinate. |
0.2 |
| Y |
number |
Yes |
The y-coordinate. |
0.3 |
| Height |
number |
Yes |
The height. |
0.2 |
| Width |
number |
Yes |
The width. |
0.2 |
| Layer |
integer |
No |
The z-axis layer. |
0 |
| Url |
string |
Yes |
The URL of the image. |
https://aliyun.com/123xxx.jpg |
| Texts |
array<object> |
No |
The text watermarks for the pane. |
|
|
array<object> |
No |
The text content. |
||
| BoxBorderw |
integer |
No |
The border width of the text box. |
5 |
| BoxColor |
object |
No |
The border color of the text box. |
|
| R |
integer |
No |
The red component. |
255 |
| B |
integer |
No |
The blue component. |
255 |
| G |
integer |
No |
The green component. |
255 |
| FontSize |
integer |
No |
The font size. |
36 |
| FontColor |
object |
No |
The font color. |
|
| R |
integer |
No |
The red component. |
255 |
| B |
integer |
No |
The blue component. |
255 |
| G |
integer |
No |
The green component. |
255 |
| Alpha |
number |
No |
The opacity of the watermark. |
0.9 |
| X |
number |
Yes |
The x-coordinate. |
0.2 |
| HasBox |
boolean |
No |
Specifies whether to display a text box. |
|
| Y |
number |
Yes |
The y-coordinate. |
0.2 |
| Texture |
string |
Yes |
The content of the watermark. |
Text watermark |
| Layer |
integer |
No |
The z-axis layer. |
0 |
| Font |
integer |
No |
The font. Valid values:
|
0 |
| BoxAlpha |
number |
No |
The opacity of the text box. |
0.6 |
| PaneCropMode |
integer |
No |
The crop mode of the image. Valid values:
|
2 |
| PaneId |
string |
Yes |
The ID of the pane. The ID starts from 0. |
0 |
| Source |
string |
No |
The media source of the pane. You can specify a userId. To specify a specific user type, you can use wildcard configurations. The following types are supported:
|
22 |
| Backgrounds |
array<object> |
No |
The background images. |
|
|
object |
No |
The background images. |
||
| BackgroundCropMode |
integer |
No |
The crop mode of the image. Valid values:
|
2 |
| Alpha |
number |
No |
The opacity of the image. |
0.9 |
| X |
number |
Yes |
The x-coordinate. |
0.2 |
| Y |
number |
Yes |
The y-coordinate. |
0.2 |
| Height |
number |
Yes |
The height. |
0.2 |
| Width |
number |
Yes |
The width. |
0.2 |
| Layer |
integer |
No |
The z-axis layer. |
0 |
| Url |
string |
Yes |
The URL of the image. |
https://aliyun.com/123.jpg |
| Images |
array<object> |
No |
The global image watermark. |
|
|
object |
No |
The global image watermark. |
||
| Alpha |
number |
No |
The opacity of the image. |
0.9 |
| X |
number |
Yes |
The x-coordinate. |
0.2 |
| Y |
number |
Yes |
The y-coordinate. |
0.2 |
| Height |
number |
Yes |
The height. |
0.2 |
| ImageCropMode |
integer |
No |
The crop mode of the image. Valid values:
|
2 |
| Width |
number |
Yes |
The width. |
0.2 |
| Layer |
integer |
No |
The z-axis layer. |
0 |
| Url |
string |
Yes |
The URL of the image. |
https://aliyun.com/123xxx.jpg |
| Texts |
array<object> |
No |
The global text watermark. |
|
|
array<object> |
No |
The global text watermark. |
||
| BoxBorderw |
integer |
No |
The border width of the text box. |
5 |
| BoxColor |
object |
No |
The border color of the text box. |
|
| R |
integer |
No |
The red component. |
255 |
| B |
integer |
No |
The blue component. |
255 |
| G |
integer |
No |
The green component. |
255 |
| FontSize |
integer |
No |
The font size. |
36 |
| Alpha |
number |
No |
The opacity of the watermark. |
0.1 |
| FontColor |
object |
No |
The font color. |
|
| R |
integer |
No |
The red component. |
255 |
| B |
integer |
No |
The blue component. |
255 |
| G |
integer |
No |
The green component. |
255 |
| X |
number |
Yes |
The x-coordinate. |
0.2 |
| HasBox |
boolean |
No |
Specifies whether to display a text box. |
|
| Y |
number |
Yes |
The y-coordinate. |
0.2 |
| Texture |
string |
Yes |
The content of the watermark. |
Text watermark |
| Layer |
integer |
No |
The z-axis layer. |
0 |
| Font |
integer |
No |
The font. Valid values:
|
0 |
| BoxAlpha |
number |
No |
The opacity of the text box. |
0.6 |
| ClockWidgets |
array<object> |
No |
The global clock watermark. |
|
|
array<object> |
No |
The global clock watermark. |
||
| BoxBorderw |
integer |
No |
The border width of the text box. |
5 |
| BoxColor |
object |
No |
The border color of the text box. |
|
| R |
integer |
No |
The red component. |
255 |
| B |
integer |
No |
The blue component. |
255 |
| G |
integer |
No |
The green component. |
255 |
| FontSize |
integer |
No |
The clock font size. |
30 |
| Zone |
integer |
No |
The time zone. |
8 |
| Alpha |
number |
No |
The opacity of the image. |
0.9 |
| FontColor |
object |
No |
The font color. |
|
| R |
integer |
No |
The red component. |
255 |
| B |
integer |
No |
The blue component. |
255 |
| G |
integer |
No |
The green component. |
255 |
| X |
number |
Yes |
The x-coordinate. |
0.2 |
| HasBox |
boolean |
No |
Specifies whether to display a text box. |
|
| Y |
number |
Yes |
The y-coordinate. |
0.2 |
| Layer |
integer |
No |
The z-axis layer. |
0 |
| Font |
integer |
No |
The font. Valid values:
|
0 |
| BoxAlpha |
number |
No |
The opacity of the text box. |
0.6 |
| LayoutSpecifiedUsers |
object |
No |
The blacklists and whitelists settings. |
|
| Type |
string |
Yes |
The user list type. Valid values: black: Blacklist. white: Whitelist. |
white |
| Ids |
array |
Yes |
The list of specified user IDs. |
|
|
string |
Yes |
The user ID. |
123 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The parameters. |
||
| TaskId |
string |
The task ID. |
123 |
| RequestId |
string |
The request ID. |
231470C1-ACFB-4C9F-844F-4CFE1E3804C5 |
Examples
Success response
JSON format
{
"TaskId": "123",
"RequestId": "231470C1-ACFB-4C9F-844F-4CFE1E3804C5"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.