Media and streaming

Last updated Apr 24, 2026 Deliver video, images, and rich media at scale with encoding, optimization, and global distribution. Cloudflare Stream handles video upload, encoding, and adaptive bitrate delivery. Images transforms and optimizes images on-the-fly. R2 stores media files with zero egress fees. Cache serves content from 300+ edge locations. Hotlink Protection and signed URLs secure media from unauthorized access.

Architecture patterns

Video platform

Build a complete video hosting and delivery solution:

  • Stream handles upload, encoding, and adaptive bitrate delivery
  • Stream Live enables live streaming with automatic recording
  • Signed URLs protect content with token authentication

Image optimization pipeline

Serve optimized images without pre-generating variants:

  1. R2 stores original high-resolution images
  2. Images transforms images on-the-fly based on URL parameters
  3. Workers applies custom logic for format selection and caching

User-generated content

Handle media uploads from users at scale:

  1. R2 receives uploads directly via presigned URLs
  2. Workers validates and processes uploaded content
  3. Stream or Images optimizes media for delivery

Prerequisites

Create a new application

Use an existing application


Stream documentation

Complete documentation for video upload, encoding, and delivery.

Images documentation

Complete documentation for image optimization and transformation.

Media case studies

Explore how media companies use Cloudflare.

Was this helpful?

YesNo

On this page

Media and streaming - 图1Docs

{"@context":"https://schema.org","@type":"WebPage","@id":"https://developers.cloudflare.com/use-cases/media-streaming/#page","headline":"Media and streaming","description":"Deliver video, images, and media at scale with Cloudflare Stream, Images, R2, and global caching.","url":"https://developers.cloudflare.com/use-cases/media-streaming/","inLanguage":"en","image":"https://developers.cloudflare.com/use-cases/media-streaming/og.png?v=4ea4d21c69d0864a","dateModified":"2026-04-24","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: Deliver media content from edge locations worldwide. title: Cache and accelerate media delivery image: https://developers.cloudflare.com/use-cases/media-streaming/cache-delivery/og.png?v=aaea85664beb8ce7


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/use-cases/llms.txt
Use this file to discover all available pages before exploring further.