Skip to main content

The Studio API manages the full livestream lifecycle: creation, ingest, transcoding, and delivery. You push video via RTMP; Livepeer handles transcoding to adaptive bitrate HLS.

Prerequisites

  • API key from Livepeer Studio under Settings > API Keys
  • SDK installed: npm install livepeer / pip install livepeer / go get github.com/livepeer/livepeer-go
  • An RTMP encoder: OBS Studio, ffmpeg, or a custom stream producer

Step 1 — Create a stream

The response includes:
  • rtmpIngestUrl — push your stream here
  • streamKey — the key portion of the RTMP URL, for encoders that take URL and key separately
  • playbackId — use this to construct the HLS playback URL

Step 2 — Push your stream

OBS Studio:
  1. Open Settings > Stream
  2. Set Service to Custom
  3. Set Server to rtmp://rtmp.livepeer.com/live (or the full rtmpIngestUrl from step 1)
  4. Set Stream Key to the streamKey value
  5. Click Start Streaming
ffmpeg (for testing):

Step 3 — Play back the stream

Construct the HLS URL using your playbackId:
Use the @livepeer/react Player component for the simplest integration:
Or use any HLS player (HLS.js, Video.js, native Safari):

Checking stream status

A stream has two relevant states: idle (no active ingest) and active (receiving video).
Use webhooks to receive event notifications instead of polling:
See the Webhooks guide for full setup.

Access Control

Gate your stream with JWTs or webhook-based authorisation.

Webhooks

Receive notifications for stream.started, stream.idle, and asset events.

Playback

HLS and WebRTC playback options and player integration.

Monitor Stream Health

Check ingest health, bitrate, and segment delivery.
Last modified on April 7, 2026