R2 Media - Audio, Images & Slides

Demonstrating R2 CDN media delivery for alteranai: podcast audio (MP3, M4A), infographics (PNG), and slides (PDF)

13 Nov 2026 · 1 min read

R2 Media - Audio, Images & Slides

This post demonstrates the R2 CDN integration for alteranai.com, delivering various media types directly from the cloudflare R2 bucket.

Audio (MP3)

Audio (M4A)

Infographic (PNG)

Alteran AI infographic chart

Slides (PDF)


Technical Implementation

All media files are served from the R2 bucket via custom domains:

  • Audio (.mp3 and .m4a): Native <audio> elements with playback controls
  • Infographics (.png): Responsive images with lazy loading via <img> tags
  • Slides (.pdf): Embedded PDF viewers using <iframe> with full-width layout

The CDN is configured with proper CORS headers allowing fetch access for PDF.js and other clients.

Read next