patterns.md

Created about 12 hours ago

attributes
source_pathreferences/stream/patterns.md
source_sha2568112ea776016d8351298fd7e6757c19844ab02b81e23e06e5d4675e74b74e5df
source_urlhttps://github.com/cloudflare/skills/blob/47dfc2ce969bf62acf8bc231198ade4bb02712e0/skills/cloudflare/references/stream/patterns.md
supporting_skill_id40184
upstream_revision47dfc2ce969bf62acf8bc231198ade4bb02712e0

Stream Patterns

Use the official workflow examples after identifying where the existing application handles authorization, video ownership, and processing state.

Workflow Read
Browser uploads through a server-issued URL Direct creator uploads
Large or interruption-prone uploads Resumable uploads
Update application state when processing completes Video webhooks and upload progress tracking
Verify an incoming processing notification Webhook authenticity
Embed playback in a React application Stream Player and framework integrations
Serve private videos Signed playback and signing examples
Broadcast from a browser Browser-based WebRTC

Application Decisions

  • Check the user's permission before issuing upload URLs or playback tokens. Decide how uploaded video IDs map to application records and who may later view or delete them.
  • Model uploading, processing, ready, and failed states in the UI. Use documented status and notification data; select retry and timeout policies to suit the application instead of assuming a fixed encoding deadline.
  • Preserve the raw webhook request body for verification before applying state changes. Decide how the application's existing event handling reconciles notifications with stored video records.
  • For live playback, decide whether viewers follow a channel across broadcasts or open a specific recording; see live workflows.

See configuration.md for setup and gotchas.md for diagnosis.

Children

No children yet.

Like how this is organised?

Build your own Memory tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.