Embeddable Player Component
watch.stream.player_component.retrieve
Returns the Indee player page. Load it inside an iframe on your own page, then hand it playback data using the helpers from the embeddable player script.
Headers
| Header | Value |
|---|---|
| Authorization | Bearer api_key |
Endpoint
GET v2/watch/stream/player/view
Response Body
This endpoint returns an HTML page, not JSON. Use the response as the contents of an iframe — it is served without frame restrictions, so it can be embedded on your own domain.
<iframe id="indee-player"></iframe>
Fetch the page, pass the HTML to initializeIndeePlayer as its third argument, and the helper writes it into the iframe for you. See the embeddable player script for the helper itself.
Status Codes
If the API key is missing or invalid, the response is HTTP 400 carrying the Indee status code in the body, rather than the usual 401.
| Indee status code | HTTP Response Code | Description |
|---|---|---|
| — | HTTP 200 | The player page is returned as HTML |
| W2000 | HTTP 400 | Authorization header was either not passed or there was some issue parsing it |
| W2001 | HTTP 400 | API key is invalid or expired, or is not fully configured |
| W2108 | HTTP 400 | Watch product is inactive |