Skip to main content

On-Demand Recording

On-Demand Recording records exactly the moments you choose while a stream is live. You start and stop each recording yourself, and every start/stop pair becomes its own file, ready to play or download about a minute later.

Use it when you need specific moments rather than the whole broadcast: a key segment of an event, a compliance-relevant interaction, a highlight clip, or a single game round. In iGaming this is called Game Round Recording: each round is recorded and tied to your round ID, so the exact round is at hand for disputes, QA, regulator audits and dealer training.

Recording, live replay or continuous recording?​

The platform has three features that record or replay a stream. They solve different problems.

On-Demand RecordingLive replayContinuous recording
What you getOne file per start/stop pair, only the parts you chooseViewers rewind a running stream and keep watching after it endsThe whole session, from start to end
Who controls itYour application (REST calls) or you in the Builder HubThe viewer, in the playerThe stream configuration, automatically
Typical useGame rounds, highlights, compliance clipsDVR-style rewind, catch-up, post-event viewingArchive, full-event VOD, backup
OutputOne MP4 file per recordingHLS (.m3u8) replayMP4 files of the whole session
Set up withnanoStream Real-Time API or the Builder HubThe replay job in Live Processing + the Live + Replay playerThe rec job in Live Processing
PageThis pageLive replayLive Processing

How it works​

  1. Start your live stream as usual.
  2. Start a recording with a filename.
  3. Stop the recording with the same filename. The recording is saved as a file.
  4. Repeat as often as you need on the same stream. Each session gets its own file.

You can run several recording sessions on the same stream.

One live stream with two recording sessions; each start and stop pair produces its own MP4 file
Each start/stop pair on a running stream becomes its own file, which you fetch with GET /rec/files.

Before you start​

You needDetails
AccountA free account, or a production account with recording (Live Processing) switched on for your organisation. If Recording shows Off, ask support. Guests can't record.
Live streamA stream that is ingesting right now. Recording can only start on a live stream.
Token (API only)A bintu token for the nanoStream Real-Time API. See nanoStream Real-Time API.

Set it up​

There is no Dashboard control for On-Demand Recording; use the Builder Hub to try it, and the API to build it into your application.

note

In the Builder Hub, each recording stops after 30 seconds. To record as long as you need, use the API.

Who can use it: free account, or production account with recording on for your organisation.

AccountWhat happens
GuestMarked Sign in in the menu. To see a recording played back without an account, open Live & Replay Player under Demos.
Free accountWorks.
Production accountWorks when recording is on for your organisation. If it isn't, the menu item is marked off.

You need an encoder that sends RTMP (OBS, vMix, ffmpeg or hardware). An existing stream of yours is optional; otherwise the tool creates one.

Open Build › Stream › Record on demand at builder.nanocosmos.net. The tool opens on the stream selected on your Home card, if there is one.

  1. Sign in. Your Builder Hub sign-in carries over; the step shows Signed in as ….
  2. Your stream. Click Create a stream (a new stream is created recordable), pick one under Your recent streams, or type a stream name or ID into Or use an existing stream and click Use this stream. The step then shows Stream ready.
  3. Copy the Ingest URL (for OBS / ffmpeg) and the Stream key into your encoder and start streaming.
  4. Live player plays your stream once it's live. Open in new tab ↗ opens it on its own.
  5. Optionally type a Recording label: letters, digits and _, up to 64 characters. Leave it empty for an automatic name.
  6. Click Start recording. A clock runs, and the player gets a red frame with a Rec tag.
  7. Click Stop recording.

What you get: under On Demand Recording, every file you recorded is listed. A new file shows Processing recording — the file appears shortly. About a minute after you stop, click Play to watch it, or Copy link to share it.

Builder Hub On Demand Recording list with the full-session row and two recorded files, each with Play and Copy link
Every recording you start and stop appears as its own file, ready to play or share.

The row Session · Full session · auto is the continuous recording of the whole session. It starts and stops with the stream and can't be controlled here; it reads Inactive when continuous recording is off for the stream.

API reference​

On-Demand Recording is part of the nanoStream Real-Time API.

  • Base URL: https://real-time-api.nanostream.cloud
  • Authentication: Authorization: Bearer <YOUR_BINTU_TOKEN>
  • {stream}: your stream name (e.g. XXXXX-YYYYY) or stream ID (UUID)

Start a recording​

curl -X POST https://real-time-api.nanostream.cloud/stream/{stream}/rec/start \
-H "Authorization: Bearer $BINTU_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "filename": "round_1042" }'
{ "recordingId": "XXXXX-YYYYY-rec-round_1042" }
info

Filenames use letters, digits and underscores only, 1–64 characters, with no - and no file extension. round_1042 is valid; round-1042.mp4 is rejected with 400. For Game Round Recording, use your round ID as the filename.

Stop the recording​

Stop with the same filename:

curl -X POST https://real-time-api.nanostream.cloud/stream/{stream}/rec/stop \
-H "Authorization: Bearer $BINTU_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "filename": "round_1042" }'
{ "streamname": "XXXXX-YYYYY", "filename": "round_1042", "stopped": true }

Stopping is safe to repeat. If the session was already stopped, stopped is false and nothing changes.

List active recordings​

curl https://real-time-api.nanostream.cloud/stream/{stream}/rec \
-H "Authorization: Bearer $BINTU_TOKEN"
{ "streamname": "XXXXX-YYYYY", "recordings": [{ "filename": "round_1042" }] }

Get your files​

curl https://real-time-api.nanostream.cloud/stream/{stream}/rec/files \
-H "Authorization: Bearer $BINTU_TOKEN"
{
"streamname": "XXXXX-YYYYY",
"files": [
{
"name": "round_1042.mp4",
"url": "https://bintu-vod.nanocosmos.de/vod/rec/round_1042.mp4",
"size": "12345678",
"createdAt": "2026-10-20T10:30:00Z"
}
]
}

Files usually appear within about a minute after a recording stops. size and createdAt can be null until the file is ready. The list also contains files from continuous recording, newest first.

Endpoints​

MethodPathBodyPurpose
POST/stream/{stream}/rec/start{ "filename": "…" }Start a recording session
POST/stream/{stream}/rec/stop{ "filename": "…" }Stop a recording session
GET/stream/{stream}/recList active recording sessions
GET/stream/{stream}/rec/filesList finished recordings with download URLs

The interactive reference with every schema is at real-time-api.nanostream.cloud/docs.

What can go wrong​

In the Builder Hub​

SymptomWhat to do
Could not start recordingThe stream must be live. Start your encoder first and wait until the player shows it.
The label is rejectedUse only letters, digits and _, up to 64 characters; no dashes, dots or spaces. default is reserved.
No file after stoppingWait about a minute; files appear once processing is done.
Could not load streamCheck the stream name or ID, and that it belongs to your organisation.
Your session endedSign in to the Builder Hub again.
Recording is off for your accountThe menu item is marked off. Get support to switch it on.

API errors​

StatusMeaningWhat to do
400Missing or invalid input, e.g. a filename with -Fix the filename
401Missing or invalid bintu tokenRenew the token
403The stream doesn't belong to your organisationCheck the stream name and token
404The stream wasn't foundCheck the stream name or ID
502 / 504An upstream service failed or couldn't be reachedRetry

A file is missing from /rec/files? Wait a minute after stopping: files appear once processing is done. Recording didn't start? The stream must be live when you call /rec/start.

Next steps​

tip

Try it in the Builder Hub: open On-Demand Recording, start and stop a recording on your own stream, and play the file back. Start for Free