Skip to content

Latest commit

 

History

History
41 lines (21 loc) · 1.08 KB

Readme.md

File metadata and controls

41 lines (21 loc) · 1.08 KB

Bnuuy

A Cloudflare Workers demo, serving Big Buck Bunny (and maybe others soon).

Streams

https://bnuuy.stream/assets/big_buck_bunny/index.m3u8
https://bnuuy.stream/encrypted/big_buck_bunny/index.m3u8

Components

Web

The web directory stores the website and video files. It's uploaded and served by Cloudflare Pages as-is.

Analytics

A small Worker that dumps some logs from incoming request into Analytics Engine then forwards the request on.

Crypto

Catches requests under the encrypted/ path and rewrites the HLS manifests to include an EXT-X-KEY. Also catches requests for media chunks and encrypts them on the fly with the same key. Keys are generated dynamically, based on the current date for simplicity.

Stats

Queries Analytics Engine and totals up view-counts for the different manifests.