UpdateStreamingOut
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
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rtc:UpdateStreamingOut |
create |
*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. 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:
|
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:
|
cameraFirst |
| SourceType |
string |
No |
The media type of the pane. Valid values:
|
video |
| Images |
array<object> |
No |
The local image watermarks for the pane. |
|
|
object |
No |
|||
| PaneImageCropMode |
integer |
No |
The crop mode. Valid values:
|
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:
|
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 |
| 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:
|
always |
| PaneCropMode |
integer |
No |
The crop mode. Valid values:
|
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:
|
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 |
| 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:
|
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:
|
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:
|
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 |
| 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 |
| 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.
Blacklist: specifies the users in the room whose video streams are not subscribed to.
|
|
| 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 |
The total number of local image watermarks, local background image watermarks, global image watermarks, and global background images cannot exceed 16.
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.