You can call the DynamicUpdateWaterMarkStreamRule operation to dynamically update a watermark.
Operation description
Dynamically updating a watermark involves replacing the watermark template ID during a live stream. Before you call this operation, you must obtain the ID of the watermark template that you want to use for the TemplateId parameter. To obtain the IDs of available watermark templates, call the DescribeLiveStreamWatermarks operation.
QPS limit
The queries per second (QPS) limit for this operation is 60 for each user. If you exceed this limit, API calls are throttled, which may affect your business. Ensure that you call this operation within this limit.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:DynamicUpdateWaterMarkStreamRule |
*Domain
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-shanghai |
| Domain |
string |
Yes |
The streaming domain. |
pull.aliyundoc.com |
| App |
string |
Yes |
The name of the application to which the stream belongs. |
liveApp**** |
| Stream |
string |
Yes |
The name of the watermarked stream. |
liveStream**** |
| TemplateId |
string |
Yes |
The ID of the watermark template. You can call the DescribeLiveStreamWatermarks operation to obtain the IDs of available watermark templates. Note
The TemplateId parameter is used to replace the watermark template ID during a live stream. |
749b7594-86d6-37b1-513b-e1e19845**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
BE9407FF-F897-4DBD-338D-98A750AD805F |
Examples
Success response
JSON format
{
"RequestId": "BE9407FF-F897-4DBD-338D-98A750AD805F"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameters | %s Please check and try again later. | Exception parameter exists, please check and try again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.