Enables or disables strict playback origin checking. Requires block_download to be enabled.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
PUT /panda_only_playback/
Enables or disables strict playback origin checking for the library of the authenticated user.
What this mode doesWhen enabled, the stream can only be played through the Panda player. The player sends the required origin/referer credentials, so the official embed keeps working normally — in browsers and in in-app WebViews alike. Requests that hit the
.m3u8URL directly, outside the player, are refused.
Check your integrations before enablingAnything that consumes the
.m3u8URL outside the Panda player — a custom native player, a TV app, an offline flow — stops working while this mode is on. If every playback path goes through the official embed, there is no impact.
AuthorizationRequires a valid API token in the
Authorizationheader (withoutBearerprefix). The library is resolved from the token — there is nolibrary_idin the path.
HTTP Method & Path
PUT /panda_only_playback/
Base URL: https://api-v2.pandavideo.com.br
Authentication Requirements
| Header | Value |
|---|---|
Authorization | Your Panda API token (no Bearer prefix) |
Request Body
Content-Type: application/json
Body Parameters
| Name | Type | Required | Description |
|---|---|---|---|
status | boolean | yes | true enables strict playback origin checking |
{ "status": true }Response
Success Response (200)
{ "status": true }
Dependency onblock_downloadThis mode can only be enabled when
block_downloadis already enabled. Trying otherwise returns400.
Disablingblock_downloadalso disables this mode, in cascade.
Important
- Changes take a few minutes to apply. Settings are cached: allow up to ~6 minutes before the change affects playback, and responses may stay cached at the CDN for a short while after that.
- Non-boolean values are rejected with
400.
Error Responses
| Status | When | Message |
|---|---|---|
400 | status is not a boolean | status must be a boolean |
400 | block_download is disabled | panda_only_playback só pode ser ativado quando block_download estiver ativo |
404 | Library not found for the token's user | — |
500 | Internal error | — |
The dependency error is returned in PortugueseThe API returns that message in Portuguese. It is reproduced above exactly as your integration will receive it.
Example Usage
cURL — enable (requires block_download already on)
curl -X PUT "https://api-v2.pandavideo.com.br/panda_only_playback/" \
-H "Authorization: $PANDA_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"status": true}'cURL — disable
curl -X PUT "https://api-v2.pandavideo.com.br/panda_only_playback/" \
-H "Authorization: $PANDA_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"status": false}'Related
- Read the current value:
GET /panda_only_playback/ - Prerequisite switch: Update block download status
400status must be a boolean, or block_download is not enabled
