提交工单
咨询集成、功能及报价等问题
Forbids a specified live stream to be published to ZEGOCLOUD's RTC server.
When a stream is forbidden on ZEGOCLOUD's RTC server, the app client that is publishing the stream and the app clients that are playing the stream will be notified of the event through the following callbacks:
ZEGO Express SDK | ||
---|---|---|
Platform |
Callback |
Error code |
iOS/macOS |
onPublisherStateUpdate |
1003025 |
Android |
onPublisherStateUpdate |
1003025 |
Windows |
onPublisherStateUpdate |
1003025 |
Platform | ZegoExpress SDK | |
---|---|---|
Callback | Error code | |
iOS/macOS |
onPlayerStateUpdate |
1004025 |
Android |
onPlayerStateUpdate |
1004025 |
Windows |
onPlayerStateUpdate |
1004025 |
Listed below are the parameters specific to this request and part of the public request parameters. For the complete list of public request parameters, see Server APIs public request parameters.
Parameter | Type | Required | Description |
---|---|---|---|
StreamId |
String |
Yes |
Stream ID. |
Sequence |
String |
Yes |
Request sequence number. Requests must be sent with the request sequence number in ascending order. It is recommended to use a timestamp (in milliseconds) as the request sequence number. |
https://rtc-api.zego.im/?Action=ForbidRTCStream
&StreamId=rtc01
&Sequence=1617249600001
&<Public Request Parameters>
Parameter | Type | Description |
---|---|---|
Code |
Number |
Return code. |
Message |
String |
Description of the request execution result. |
RequestId |
String |
Request ID. |
Data |
Object |
Returned data. |
{
"Code":0,
"Message":"ok",
"RequestId":"1929203990360298509",
"Data":null
}
Listed below are the return codes related to this API. For the complete list of return codes, see Return codes.
Return Code | Description | Suggested Action |
---|---|---|
3000 | Invalid App. | Please contact ZEGOCLOUD technical support for handling. |
3001, 5006, 30003 | Internal error. | Please contact ZEGOCLOUD technical support for handling. |
3002 | Timestamp error. | Please regenerate a new Timestamp. |
3003 | App is not configured with Token. | Please contact ZEGOCLOUD technical support for handling. |
30002 | API call frequency is too high. | Please reduce the API request frequency. |
30004 | Parameter isTest is incorrect. | Please check if the common request parameter isTest is correct. |
30005 | Invalid AppId. | Please check if the AppId is correct. |
30009 | Invalid StreamId, stream name is not standardized. | Please check if the StreamId conforms to the stream name coding specifications. |
40005 | Authentication failed. | Please check if the signature Signature is correct. |