Deepen all 20 media-streaming modules with expanded APIs and tests.
Add batch ingest, tree depth/path, peer scoring helpers, scheduler peek, FEC and ABR controls, telemetry sessions, and richer production api.md for bandwidth-aggregator and media-tree-orchestrator. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -9,5 +9,7 @@ test('pick top peers', async (t) => {
|
||||
m.registerPeer('a', { uploadBps: 1_000_000, rttMs: 30, stability: 0.9 })
|
||||
m.registerPeer('b', { uploadBps: 10_000_000, rttMs: 20, stability: 0.95 })
|
||||
t.is(m.pickTop(1)[0].peerId, 'b')
|
||||
m.updatePeer('a', { uploadBps: 20_000_000 })
|
||||
t.ok(m.peersAboveScore(0.5).length >= 1)
|
||||
await m.close()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user