Introduces peer-assisted live/VOD primitives (chunking, manifests, crazy trees, bandwidth aggregation, FEC, enterprise controls) with shared media-streaming-base, registry entries, and brittle tests. Four core modules ship as production tier; sixteen as scaffold for deepen passes. Co-authored-by: Cursor <[email protected]>
22 lines
447 B
Markdown
22 lines
447 B
Markdown
# API: hyper-p2p-media-chunker
|
|
|
|
**Protocol:** `media-chunker/v1`
|
|
|
|
**Export:** `{ HyperP2PMediaChunker, PROTOCOL }`
|
|
|
|
## Overview
|
|
|
|
`HyperP2PMediaChunker` — see [`index.js`](../index.js) for methods, events, and `getStats()`.
|
|
|
|
## Lifecycle
|
|
|
|
- `async ready()` — optional Hyperswarm join when `topic` is set
|
|
- `async close()` — teardown
|
|
- `getStats()` — metrics + `protocol: 'media-chunker/v1'`
|
|
|
|
## Testing
|
|
|
|
```bash
|
|
npm install && npm test
|
|
```
|