WHIP_ENDPOINT const
.
https://api.gcore.com/streaming/streams
.Example request:"push_url_whip"
value from the response to start the stream.https://api.gcore.com/streaming/streams/{id}
.
Example request:
https://api.gcore.com/streaming/streams/{id}
.Example request:https://api.gcore.com/streaming/streams/$id
.Example request:status
and detail
fields of the error object.
Typical cases for ServerRequestError
HTTP status code | Explanation | Example |
---|---|---|
400 | The client’s request is wrong. It may be due to the incorrect request parameters sent by the WHIP client. If you see this error with an unintelligible description or with no description at all, contact the Gcore support team. A special case to note is when multiple clients attempt to stream to the same endpoint simultaneously. Check the example for details. | err.message: Server request failed with status 400 err.status: 400 err.detail: {"error": "someone is already publishing to the path '1960197_XXX'"} |
403 | The endpoint you are trying to connect to is unreachable. Probable causes:
| err.message: Server request failed with status 403 err.status: 403 |
500, 502, 503, 504, 5xx (infrequently) | Gcore infrastructure is experiencing pressure or outage. Contact the Gcore support team. The app should render itself unavailable. It should not retry the request. | err.message: Server request failed with status 504 err.status: 504 |
Typical cases for TimeoutError
Error message | Explanation |
---|---|
Timeout waiting for ICE candidates | Cause 1. Incorrectly configured ICE servers. The default configuration (when no ICE servers are specified) is to fetch a list of them from the WHIP endpoint. Cause 2. ICE servers fetched from the WHIP endpoint are unreachable from your client’s location. This is very unlikely to happen. In both cases, start by checking the ICE servers your WebRTC uses as described in the Network troubleshooting section. If that doesn’t work, contact the Gcore support team. The client app should render itself unavailable due to network conditions as an explanation. |
mediaDevicesAutoSwitch
option and subscribe to the event:
Link
headers. For example: