Livepush Developers

Stream Embed

Toggle adaptive bitrate

PUT https://octopus.livepush.io/streams/{stream_id}/embed/abr

Base URL https://octopus.livepush.io — Core Streams & Media APIs

Enables or disables adaptive bitrate streaming in the embedded player.

Requires a token with write access to the stream (CanWriteStreams).

Authorization

Send a valid access token in the Authorization header.

  • bearerAuth — Bearer token (JWT)
headers.txt
Authorization: Bearer YOUR_API_TOKEN

Try it

PUT https://octopus.livepush.io/streams/{stream_id}/embed/abr — This call changes live data on your account.

Parameters

Path parameters

  • stream_id string required
    Unique identifier of the stream.
    example: st_xxxxxxxxxxxxx

Request body

application/json required

  • state boolean required
    Desired state.
  • isEnabled boolean deprecated
    Legacy alias for state, still sent by the dashboard. The API reads state; send both if you need to match dashboard behaviour exactly.
Example request body response.json
{
  "state": true,
  "isEnabled": false
}

Code samples

request.sh
curl -X PUT 'https://octopus.livepush.io/streams/st_xxxxxxxxxxxxx/embed/abr' \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "state": true,
    "isEnabled": false
  }'
const response = await fetch('https://octopus.livepush.io/streams/st_xxxxxxxxxxxxx/embed/abr', {
  method: 'PUT',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "state": true,
    "isEnabled": false
  }),
});

if (!response.ok) {
  throw new Error(`Livepush API error ${response.status}`);
}

const data = await response.json();
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Content-Type': 'application/json',
}

payload = {
    "state": True,
    "isEnabled": False
}

response = requests.put('https://octopus.livepush.io/streams/st_xxxxxxxxxxxxx/embed/abr', headers=headers, json=payload, timeout=30)
response.raise_for_status()
data = response.json()

Responses

Setting applied.

application/json

  • success boolean
Example 200 response response.json
{
  "success": true
}

No response body.

No response body.