🎯 1:1 Streaming
Stream to only one specific peer (private call)
// Select one peer and click "Start Selective Stream"
mesh.startSelectiveStream('peer-id-123', {
video: true, audio: true
});
📡 1:Many Streaming
Stream to multiple selected peers (group presentation)
// Select multiple peers and click "Start Selective Stream"
mesh.startSelectiveStream([
'peer-id-123', 'peer-id-456', 'peer-id-789'
], { video: true, audio: true });
🌐 Many:Many Streaming
Multiple peers streaming to each other (conference)
// Each peer calls startSelectiveStream with their
// desired targets, creating a many:many topology
peer1.startSelectiveStream(['peer2', 'peer3']);
peer2.startSelectiveStream(['peer1', 'peer3']);
peer3.startSelectiveStream(['peer1', 'peer2']);
🚫 Dynamic Control
Block/allow peers dynamically during streaming
// Block specific peers while keeping others
mesh.blockStreamingToPeers(['peer-id-456']);
// Re-allow blocked peers
mesh.allowStreamingToPeers(['peer-id-456']);