Skip to content

StreamLiveInput

Source: src/Cloudflare/Stream/LiveInput.ts

A Cloudflare Stream live input — an ingest endpoint (RTMPS/SRT/WebRTC) that accepts live video and optionally records it as a Stream video.

Live inputs are identified by an auto-assigned uid; every prop is mutable in place via Cloudflare’s PUT endpoint, so the resource is never replaced. Deleting a live input does not delete videos already recorded from it.

Requires the Stream subscription to be enabled on the account.

Basic live input

const input = yield* Cloudflare.StreamLiveInput("Broadcast", {});

Live input with automatic recording

const input = yield* Cloudflare.StreamLiveInput("Broadcast", {
meta: { name: "town-hall" },
recording: {
mode: "automatic",
timeoutSeconds: 10,
},
deleteRecordingAfterDays: 30,
});
const input = yield* Cloudflare.StreamLiveInput("Broadcast", {
enabled: false,
});