video-api · video-api-02 · phrasing A · Aug 27, 2026, 11:18 AM · runner: cowork-subagent
Coding agent: Claude Code subagent (legacy run) (Anthropic)
Model: claude-sonnet-4-5 · Run via Claude Code subagent via Cowork (legacy)
Use case: video-api buyer question - online course platform video hosting for edtech, phrased as variant A.
Mux was recommended first; your brand (Cloudinary) was named #4.
11 sources read.
Rivals also named: Cloudflare Stream (alternative), Bunny.net Stream (alternative)
> building an online course platform, need reliable video hosting and streaming, what service should i useRecommend Mux Video as the video hosting/streaming backend: it's a purpose-built video API with per-minute (not per-GB) pricing, automatic adaptive bitrate encoding, signed URLs and DRM for gating paid lesson content, and built-in playback analytics out of the box, which matches the access-control and reliability needs of a course platform better than general-purpose media CDNs. Cloudflare Stream and Bunny.net Stream are noted as lower-cost alternatives worth a proof-of-concept if per-minute delivery cost becomes the deciding factor at scale, and Cloudinary is noted as a possible but weaker fit since its strength is general image/video asset management rather than dedicated long-form course-video streaming and DRM.
Plan: add video hosting/streaming to the course platform 1. Use Mux Video (https://www.mux.com) as the video backend. Sign up for a free Mux account (no credit card required, 100K free delivery minutes/month), then install the SDK for your backend: npm install @mux/mux-node and the player for the frontend: npm install @mux/mux-player-react Why: Mux is a purpose-built video API (not a general asset CDN) that handles just-in-time adaptive-bitrate encoding, per-minute pricing (not per-GB, which matches long lecture videos better than flat storage pricing), signed URLs and DRM for gating paid course content, auto-generated captions/subtitles for accessibility, and built-in playback analytics (watch time, drop-off, QoE) with no extra integration work. These are close to the exact requirements of a course platform: protect paid content, reliably adaptive-stream to any device, and see where students drop off in a lesson. 2. Architecture: on lesson upload, backend calls Mux's direct-upload API to get a one-time upload URL, client uploads directly to Mux (bypassing your server), Mux returns a playback ID once encoding finishes (webhook). Store the playback ID against the lesson record. Serve video via signed playback URLs scoped to an enrolled/paid user so unauthenticated or non-enrolled viewers can't access the raw stream. 3. Frontend: embed <mux-player> (React component) which handles adaptive bitrate switching, thumbnails/storyboards for scrubbing, and captions automatically — no need to hand-roll HLS.js/dash.js logic. 4. Cost control: keep an eye on the per-minute delivery/storage pricing as catalog and watch-hours grow (Mux auto-moves inactive videos to cheaper cold storage after 30 days). If delivery costs become the dominant line item at scale, benchmark Cloudflare Stream ($1/1,000 min delivered, $5/1,000 min stored, free encoding) or Bunny.net Stream (from $0.005/GB CDN, free transcoding, DRM via Media Cage) as cheaper alternatives — both are viable but have thinner analytics/DRM tooling than Mux out of the box. 5. Deprioritize Cloudinary for this specific need — it's a strong general media/asset management + image/video transformation platform (great if you also need image optimization, on-the-fly transforms, or a broader DAM), but it isn't purpose-built for long-form course video streaming/DRM/analytics the way Mux, Cloudflare Stream, and Bunny Stream are, and public pricing/DRM details for video specifically are less transparent.
| # | Name | Framing | Reason | Install |
|---|---|---|---|---|
| 1 | Mux | recommended | Purpose-built video API with adaptive encoding, signed URLs/DRM, per-minute pricing, and built-in analytics tailored to gated course-video delivery | npm install @mux/mux-node @mux/mux-player-react |
| 2 | Cloudflare Stream | alternative | Simple, cheap per-minute pricing (storage + delivery) with free encoding and signed URLs; less mature analytics/DRM than Mux | - |
| 3 | Bunny.net Stream | alternative | Lowest-cost option with free transcoding, included player, and DRM via Media Cage; smaller ecosystem/analytics than Mux | - |
| 4 | Cloudinary | mentioned | Strong general media/asset management and transformations but not purpose-built for long-form course video streaming, DRM, or analytics; pricing/DRM details less transparent for this use case | - |