P2P Media Loader Documentation
    Preparing search index...

    Type Alias Stream

    Represents a media stream with various defining characteristics.

    type Stream = {
        runtimeId: string;
        type: StreamType;
        properties: Readonly<StreamProperties>;
        swarmId: string;
        identityHash: string;
        streamSwarmId: string;
        infoHash: string;
    }
    Index
    runtimeId: string

    Runtime identifier of the stream from an engine. May differ from peer to peer.

    Stream type.

    properties: Readonly<StreamProperties>

    Raw stream properties from the manifest, provided by the player integration.

    swarmId: string

    The swarm ID the stream was registered with: the configured swarmId or, if not set, the manifest response URL. Resolved once at registration.

    identityHash: string

    Stream identity hash derived from the normalized stream properties. The same for all peers regardless of the player in use.

    streamSwarmId: string

    The pre-hash string that defines which P2P swarm the stream belongs to. By default ${peerProtocolVersion}-${swarmId}-${type}-${identityHash}; a custom streamSwarmIdBuilder may override it. Computed once at registration.

    infoHash: string

    The infohash announced to trackers for the stream's swarm: a 20-character ASCII string derived from the stream swarm ID. Computed once at registration.