Files
modules/media-streaming/hyper-p2p-media-chunker/examples/basic.js
T
Raven ScottandCursor a1f56dc27b Add media-streaming category with 20 P2P streaming modules.
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]>
2026-05-21 01:16:44 -04:00

15 lines
285 B
JavaScript

require('bare-process/global')
const { HyperP2PMediaChunker } = require('../index.js')
async function main () {
const m = new HyperP2PMediaChunker()
await m.ready()
console.log(m.getStats())
await m.close()
}
main().catch((err) => {
console.error(err)
process.exit(1)
})