P2P Media Loader Documentation
    Preparing search index...

    Function computeStreamSwarmId

    • Computes the default stream swarm ID for a stream from its raw properties.

      This is the derivation a client with no streamSwarmIdBuilder configured uses. Run it on a server (Node.js 16+) to predict a stream's swarm ID — and, via computeInfoHash, the exact infohash the client announces to trackers.

      Parameters

      Returns string