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 Recording | Live replay | Continuous recording | |
|---|---|---|---|
| What you get | One file per start/stop pair, only the parts you choose | Viewers rewind a running stream and keep watching after it ends | The whole session, from start to end |
| Who controls it | Your application (REST calls) or you in the Builder Hub | The viewer, in the player | The stream configuration, automatically |
| Typical use | Game rounds, highlights, compliance clips | DVR-style rewind, catch-up, post-event viewing | Archive, full-event VOD, backup |
| Output | One MP4 file per recording | HLS (.m3u8) replay | MP4 files of the whole session |
| Set up with | nanoStream Real-Time API or the Builder Hub | The replay job in Live Processing + the Live + Replay player | The rec job in Live Processing |
| Page | This page | Live replay | Live Processing |
How it works
- Start your live stream as usual.
- Start a recording with a filename.
- Stop the recording with the same filename. The recording is saved as a file.
- 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.

Before you start
| You need | Details |
|---|---|
| Account | A 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 stream | A 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.
In the Builder Hub, each recording stops after 30 seconds. To record as long as you need, use the API.
- Builder Hub
- API
Who can use it: free account, or production account with recording on for your organisation.
| Account | What happens |
|---|---|
| Guest | Marked Sign in in the menu. To see a recording played back without an account, open Live & Replay Player under Demos. |
| Free account | Works. |
| Production account | Works 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.
- Sign in. Your Builder Hub sign-in carries over; the step shows Signed in as ….
- 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.
- Copy the Ingest URL (for OBS / ffmpeg) and the Stream key into your encoder and start streaming.
- Live player plays your stream once it's live. Open in new tab ↗ opens it on its own.
- Optionally type a Recording label: letters, digits and
_, up to 64 characters. Leave it empty for an automatic name. - Click Start recording. A clock runs, and the player gets a red frame with a Rec tag.
- 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.

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.
Who can use it: free account, or production account with On-Demand Recording enabled, with a bintu token for the nanoStream Real-Time API.
-
Start your live stream as usual.
-
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" }' -
Stop it 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" }' -
List your files with
GET /stream/{stream}/rec/files.
What you get: one MP4 file per start/stop pair, with a download URL. Responses, filename rules and every endpoint are in the API reference below.
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" }
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
| Method | Path | Body | Purpose |
|---|---|---|---|
POST | /stream/{stream}/rec/start | { "filename": "…" } | Start a recording session |
POST | /stream/{stream}/rec/stop | { "filename": "…" } | Stop a recording session |
GET | /stream/{stream}/rec | List active recording sessions | |
GET | /stream/{stream}/rec/files | List 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
| Symptom | What to do |
|---|---|
| Could not start recording | The stream must be live. Start your encoder first and wait until the player shows it. |
| The label is rejected | Use only letters, digits and _, up to 64 characters; no dashes, dots or spaces. default is reserved. |
| No file after stopping | Wait about a minute; files appear once processing is done. |
| Could not load stream | Check the stream name or ID, and that it belongs to your organisation. |
| Your session ended | Sign in to the Builder Hub again. |
| Recording is off for your account | The menu item is marked off. Get support to switch it on. |
API errors
| Status | Meaning | What to do |
|---|---|---|
400 | Missing or invalid input, e.g. a filename with - | Fix the filename |
401 | Missing or invalid bintu token | Renew the token |
403 | The stream doesn't belong to your organisation | Check the stream name and token |
404 | The stream wasn't found | Check the stream name or ID |
502 / 504 | An upstream service failed or couldn't be reached | Retry |
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
- nanoStream Real-Time API: authentication and the full reference
- Live replay: let viewers rewind and watch the stream again
- Live Processing: continuous recording of every session
- Multi-Camera: the other Real-Time API feature
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