Creates a WHIP ingest URL for an ApsaraVideo Real-time Communication channel by calling CreateRTCWhipStreamAddress.
Operation description
Usage notes
-
Call the CreateRTCWhipStreamAddress operation to create a WHIP ingest URL (WhipAddress) for the specified RTC channel.
-
Use OBS to ingest a stream by using the WHIP protocol.
-
Run the OBS streaming tool.
-
In the menu bar, choose File > Settings.
-
On the Settings page, select Stream, configure the following information, and then click OK.
Parameter Description Service Set Service to WHIP. Server Use the WhipAddress generated by the operation in Step 1. Bearer Token Leave the stream key empty. 
-
-
Other users can join the corresponding channel to watch the stream.
QPS limit
The single-user QPS limit for this operation is 40 calls per second. If the limit is exceeded, API calls are throttled, which may affect your business. Call this operation appropriately.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:CreateRTCWhipStreamAddress |
none |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClientToken |
string |
No |
The idempotency parameter. Note
This parameter is used to identify whether multiple requests are the same request. We recommend that you do not specify this parameter for this operation. |
58E73333-xxxx-xxxx-xxxx |
| AppId |
string |
Yes |
The application ID. You can view your application IDs by navigating to ApsaraVideo Live > Live+ > ApsaraVideo Real-time Communication > Application Management. If no application exists, create one by clicking Create Application. |
6a0**6dcc-xxxx-xxxx-xxxx-e**e3exxxxxx |
| ChannelId |
string |
Yes |
The ID of the channel to join. |
ch00000****001 |
| UserId |
string |
Yes |
The user ID. The user ID must be unique within the channel. |
zb0000****0001 |
| DisplayName |
string |
Yes |
The display name of the user in the channel. Note
Chinese characters and other characters are supported. To avoid excessively long names, keep the size under 32 bytes. |
主播小二 |
| ExpireTime |
integer |
No |
The validity period of the ingest URL. Unit: seconds. Default value: 43200. Note
If the validity period expires, an ongoing stream that uses the URL generated by this operation is not affected. However, a new stream ingest attempt using the same URL will fail. |
43200 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
58E7**D4-xxxx-xxxx-xxxx-6B5**6Cxxxxx |
| WhipAddress |
string |
The WHIP protocol URL. |
https://xxxxxx.media-sh.xxxxx.com/xxxxxxxxxxxx/3723a3xxxxxxxxx223c606b***5f7a2bc7c56ea5cdd0xxxxe?auth_key=17495xxxxx-xxxx-0-f013003067c78c4053f9cd0xxxxxxx&qqzr=H4sIAAAAAAAC_6pWSlayUkrOMxxxxxxrPyCxQ0lFKQTCLlKyUjM2Nj**NDQ1TEy2Mjc3xxxxxxxxxxqRYAAAD__xxxxx__xxxxxxxx |
Examples
Success response
JSON format
{
"RequestId": "58E7**D4-xxxx-xxxx-xxxx-6B5**6Cxxxxx",
"WhipAddress": "https://xxxxxx.media-sh.xxxxx.com/xxxxxxxxxxxx/3723a3xxxxxxxxx223c606b***5f7a2bc7c56ea5cdd0xxxxe?auth_key=17495xxxxx-xxxx-0-f013003067c78c4053f9cd0xxxxxxx&qqzr=H4sIAAAAAAAC_6pWSlayUkrOMxxxxxxrPyCxQ0lFKQTCLlKyUjM2Nj**NDQ1TEy2Mjc3xxxxxxxxxxqRYAAAD__xxxxx__xxxxxxxx"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InputInvalid | %s. | Illegal input parameters |
| 500 | ServerError | %s. | Unknown error, please try again later or submit a ticket for consultation. |
| 403 | NoAuth | %s. | No permission |
| 404 | ResourceNotExist | %s. | The requested resource does not exist, please check and try again |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.