ModifyViewLayout

Updated at:

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

rtc:ModifyViewLayout

update

*App

acs:rtc::{#accountId}:app/{#AppId}

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: The camera or screen sharing stream of the user. This is the default value.

  • camera: The camera stream.

  • screen: The screen sharing stream.

video

Images

array<object>

No

The image watermarks for the pane.

object

No

PaneImageCropMode

integer

No

The crop mode of the image. Valid values:

  • 1: Crops the image while maintaining the aspect ratio.

  • 2: Maintains the aspect ratio and adds padding.

  • 3: Stretches the image to fill the area.

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: Alibaba PuHuiTi Regular

  • 1: Alibaba PuHuiTi Light

  • 2: Alibaba PuHuiTi Medium

  • 3: Alibaba PuHuiTi Bold

  • 4: Alibaba PuHuiTi Heavy

  • 5: Alimama ShuHeiTi

  • 6: DingTalk JinBuTi

  • 7: Alimama DaoLiTi

  • 8: Alimama DongFangDaKai

  • 9: Alimama FangYuanTi

0

BoxAlpha

number

No

The opacity of the text box.

0.6

PaneCropMode

integer

No

The crop mode of the image. Valid values:

  • 1: Crops the image while maintaining the aspect ratio.

  • 2: Maintains the aspect ratio and adds padding.

  • 3: Stretches the image to fill the area.

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:

  • $ActiveSpeaker: The active speaker in the current channel.

  • $ScreenShare: The user who is sharing the screen. If multiple users are sharing their screens in the channel, the panes are filled in chronological order.

22

Backgrounds

array<object>

No

The background images.

object

No

The background images.

BackgroundCropMode

integer

No

The crop mode of the image. Valid values:

  • 1: Crops the image while maintaining the aspect ratio.

  • 2: Maintains the aspect ratio and adds padding.

  • 3: Stretches the image to fill the area.

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:

  • 1: Crops the image while maintaining the aspect ratio.

  • 2: Maintains the aspect ratio and adds padding.

  • 3: Stretches the image to fill the area.

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: Alibaba PuHuiTi Regular

  • 1: Alibaba PuHuiTi Light

  • 2: Alibaba PuHuiTi Medium

  • 3: Alibaba PuHuiTi Bold

  • 4: Alibaba PuHuiTi Heavy

  • 5: Alimama ShuHeiTi

  • 6: DingTalk JinBuTi

  • 7: Alimama DaoLiTi

  • 8: Alimama DongFangDaKai

  • 9: Alimama FangYuanTi

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: Alibaba PuHuiTi Regular

  • 1: Alibaba PuHuiTi Light

  • 2: Alibaba PuHuiTi Medium

  • 3: Alibaba PuHuiTi Bold

  • 4: Alibaba PuHuiTi Heavy

  • 5: Alimama ShuHeiTi

  • 6: DingTalk JinBuTi

  • 7: Alimama DaoLiTi

  • 8: Alimama DongFangDaKai

  • 9: Alimama FangYuanTi

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.