UpdateStreamingOut

Updated at:

Updates a bypass live streaming task.

Operation description

Usage notes

This operation updates a bypass live streaming task for an online channel.

QPS limit

The QPS limit for a single user is 10 requests per second. If the limit is exceeded, API calls are throttled, which may affect your services. Make API calls at a reasonable frequency.

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:UpdateStreamingOut

create

*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.

Important When you update the template ID, you can only update the layout. The resolution cannot be updated.

567

TaskId

string

Yes

The ID of the bypass live streaming task. Only a single ID is supported. The ID can contain uppercase and lowercase letters, digits, underscores (_), and hyphens (-), and can be up to 55 bytes in length.

123

CropMode

integer

No

The crop mode. Valid values:

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

  • 2: Adds padding to the image while maintaining the aspect ratio.

  • 3: Stretches the image to fill the area.

2

Panes

array<object>

No

The pane settings. You can configure up to 16 panes.

2

array<object>

No

VideoOrder

string

No

The fill order when SourceType is set to video. Valid values:

  • screenFirst: Screen sharing takes precedence. This is the default value.

  • cameraFirst: The camera takes precedence.

cameraFirst

SourceType

string

No

The media type of the pane. Valid values:

  • video: The user camera or screen sharing stream. This is the default value.

  • camera: The camera stream.

  • screen: The screen sharing stream.

  • whiteboard: The whiteboard.

video

Images

array<object>

No

The local image watermarks for the pane.

object

No

PaneImageCropMode

integer

No

The crop mode. Valid values:

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

  • 2: Adds padding to the image while maintaining the aspect ratio.

  • 3: Stretches the image to fill the area.

2

Alpha

number

No

The transparency.

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 image URL. The image content cannot be updated during stream ingest.

https://aliyun.com/123.jpg

Display

string

No

The condition for displaying the watermark. Valid values:

  • streamOnly: Displayed when the current user has a video stream. This is the default value.

  • backup: Displayed when the current user does not have a video stream.

  • always: Always displayed.

backup

Texts

array<object>

No

The local text watermarks for the pane.

array<object>

No

BoxBorderw

integer

No

The border width of the rectangle.

5

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

Texture

string

Yes

The watermark content.

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

BoxColor

object

No

The color of the rectangle.

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 transparency of the watermark.

0.9

X

number

Yes

The X-coordinate.

0.2

HasBox

boolean

No

Specifies whether to display the rectangle.

Y

number

Yes

The Y-coordinate.

0.2

BoxAlpha

number

No

The transparency of the rectangle.

0.6

Display

string

No

The condition for displaying the watermark. Valid values:

  • streamOnly: Displayed when the current user has a video stream. This is the default value.

  • backup: Displayed when the current user does not have a video stream.

  • always: Always displayed.

always

PaneCropMode

integer

No

The crop mode. Valid values:

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

  • 2: Adds padding to the image while maintaining the aspect ratio.

  • 3: Stretches the image to fill the area.

2

PaneId

integer

No

The pane ID.

1

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 current speaker in the channel.

  • $ScreenShare: The user who is sharing their 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 image of the pane.

object

No

Alpha

number

No

The transparency.

0.9

X

number

Yes

The X-coordinate.

0.2

Y

number

Yes

The Y-coordinate.

0.95

PaneBackgroundCropMode

integer

No

The crop mode. Valid values:

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

  • 2: Adds padding to the image while maintaining the aspect ratio.

  • 3: Stretches the image to fill the area.

1

Height

number

Yes

The height.

0.79

Width

number

Yes

The width.

0.3

Layer

integer

No

The Z-axis layer.

1

Url

string

Yes

The image URL.

https://aliyun.com/123xx.jpg

Display

string

No

The condition for displaying the watermark. Valid values:

  • streamOnly: Displayed when the current user has a video stream. This is the default value.

  • backup: Displayed when the current user does not have a video stream.

  • always: Always displayed.

backup

Whiteboard

object

No

The whiteboard configurations.

WhiteboardId

string

No

The whiteboard ID. Default value: default.

default

ReservePaneForOfflineUser

boolean

No

Specifies whether to reserve the pane as a placeholder for offline users. Default value: true. A value of true indicates that the pane is forcibly reserved as a placeholder when the specific user or wildcard user specified for the grid is offline. A value of false indicates that video streams are displayed in the automatic fill order when the specific user or wildcard user specified for the grid is offline.

Images

array<object>

No

The global image watermark.

object

No

Alpha

number

No

The transparency.

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. Valid values:

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

  • 2: Adds padding to the image while maintaining the aspect ratio.

  • 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 image URL. The image content cannot be updated during stream ingest.

https://aliyun.com/123.jpg

Backgrounds

array<object>

No

The background image.

object

No

BackgroundCropMode

integer

No

The crop mode. Valid values:

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

  • 2: Adds padding to the image while maintaining the aspect ratio.

  • 3: Stretches the image to fill the area.

2

Alpha

number

No

The transparency.

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 image URL.

https://aliyun.com/123.jpg

Texts

array<object>

No

The global text watermark.

array<object>

No

BoxBorderw

integer

No

The border width of the rectangle.

5

BoxColor

object

No

The color of the rectangle.

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 transparency 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 the rectangle.

Y

number

Yes

The Y-coordinate.

0.2

Texture

string

Yes

The watermark content.

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 transparency of the rectangle.

0.6

ClockWidgets

array<object>

No

The global clock watermark.

array<object>

No

BoxBorderw

integer

No

The border width of the rectangle.

5

BoxColor

object

No

The color of the rectangle.

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 transparency.

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 the rectangle.

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 transparency of the rectangle.

0.6

RegionColor

object

No

The global region background color.

R

integer

No

The red component.

255

G

integer

No

The green component.

255

B

integer

No

The blue component.

255

BgColor

object

No

The global background color.

R

integer

No

The red component.

255

G

integer

No

The green component.

255

B

integer

No

The blue component.

255

LayoutSpecifiedUsers

object

No

The specified user list for layout generation, which includes two types: blacklist and whitelist.

Whitelist: specifies the users in the room whose video streams are subscribed to.

  • After the setting is applied, automatic padding is performed in sequence based on this list.

  • When switching between multiple layouts in a template, only users in the whitelist are considered.

Blacklist: specifies the users in the room whose video streams are not subscribed to.

  • When switching between multiple layouts in a template, only users not in the blacklist are considered.

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 specific user ID.

123

SpecMixedUserList

array

No

The list of specified users for audio mixing.

string

No

The user ID.

aa1aa11111a111a1111a111aaa

Important Additional information

The total number of local image watermarks, local background image watermarks, global image watermarks, and global background images cannot exceed 16.

Advanced watermark layer description

The video frames generated by the RTC media server are processed in the following steps:

Render video -> Render image -> Render text.

Video, image, and text are completely separate. In the overall frame, the priority is text > image > video.

  1. Render video: Arrange the video frames based on the user-defined layout.

    a. The layers of images in the grid and global images are arranged uniformly.

    b. Layer 0 is at the bottom. A larger layer value indicates a higher position. The value range of layer is [0, 100].

  2. Render image Images include user-defined PNG/JPG images.

    a. Render based on user-configured information such as width, height, position, and transparency.

    b. Layer 0 is at the bottom. A larger layer value indicates a higher position. The value range of layer is [0, 100].

  3. Render text Text is divided into three types: region text, global text, and timestamp text.

    a. Text of the same type is rendered according to the layer order. Layer 0 is at the bottom. A larger layer value indicates a higher position. The value range of layer is [0, 100].

    b. The priority of different types of text is: timestamp text > global text > region text. When overlapping occurs, the lower priority text is overwritten.

Display of overlapping parts:

  1. For overlapping parts, if no special configuration is set, the higher priority content overwrites the lower priority content.

  2. To prevent lower priority content from being overwritten by higher priority content, you can set the transparency attribute of the higher priority content to 0.

Response elements

Element

Type

Description

Example

object

result

TaskId

string

The task ID of the current bypass streaming.

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.