StartView
Start stream composition.
Operation description
QPS limit
This API supports a maximum of 10 calls per second per user. Exceeding this limit triggers rate limiting, which may impact your business operations. Call this API only when necessary.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rtc:StartView |
create |
*App
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
Yes |
Application ID. Create and view it in the console. Pass only one ID. |
eo85**** |
| ChannelId |
string |
Yes |
Existing channel ID. Pass only one ID. |
testid |
| TemplateId |
string |
Yes |
Template ID. |
567 |
| TaskId |
string |
Yes |
Task ID for this request. Pass only one ID. Use uppercase letters, lowercase letters, digits, underscores (_), or hyphens (-). Maximum length: 55 bytes. |
123 |
| CropMode |
integer |
No |
Cropping mode. Valid values:
|
2 |
| StartWithoutChannel |
boolean |
No |
Whether to start the task even if the channel does not exist.
|
|
| StartWithoutChannelWaitTime |
integer |
No |
Time to wait for the channel to become available, in seconds. This parameter applies only when StartWithoutChannel is true. Valid range: 30 to 120 seconds. |
30 |
| RegionColor |
object |
No |
Background color of the global frame. |
|
| R |
integer |
No |
Red component value. |
255 |
| G |
integer |
No |
Green component value. |
255 |
| B |
integer |
No |
B |
255 |
| BgColor |
object |
No |
Global background color. |
|
| R |
integer |
No |
R |
255 |
| G |
integer |
No |
Green component value. |
255 |
| B |
integer |
No |
B. |
255 |
| ViewSubscribers |
array |
No |
List of user IDs for SIP devices that can view the main stream or screen-sharing stream. |
|
|
string |
No |
User ID. |
12 |
|
| ViewContent |
string |
No |
Stream type.
|
main |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| TaskId |
string |
Task ID for this request. |
123 |
| RequestId |
string |
Request ID. |
FA2F9DE9-8EAD-580E-87DF-A3D25EE87C37 |
Examples
Success response
JSON format
{
"TaskId": "123",
"RequestId": "FA2F9DE9-8EAD-580E-87DF-A3D25EE87C37"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.