Skip to content

StreamWatermark

Source: src/Cloudflare/Stream/Watermark.ts

A Cloudflare Stream watermark profile — a PNG image stamped onto videos at upload time.

Watermark profiles are create-only: Cloudflare exposes no update endpoint, so every prop change triggers a replacement (a new profile is created and the old one deleted). The image is downloaded by Cloudflare from the given URL at creation time.

Requires the Stream subscription to be enabled on the account.

Default watermark from an image URL

const watermark = yield* Cloudflare.StreamWatermark("Logo", {
url: "https://example.com/logo.png",
});

Centered semi-transparent watermark

const watermark = yield* Cloudflare.StreamWatermark("Logo", {
url: "https://example.com/logo.png",
position: "center",
opacity: 0.5,
scale: 0.3,
});