MediaSFU Angular
    Preparing search index...

    Class ConnectLocalIps

    Connects to remote IPs and manages socket connections.

    This method establishes connections to remote IPs for media streaming, handles new pipe producer events, and manages producer closure events. It updates the necessary state in the application to reflect the current connections and stream configurations.

    The options for connecting IPs.

    The socket connection to use for communication.

    The method to handle new pipe producer events (default: newPipeProducer).

    The method to handle producer closed events (default: producerClosed).

    Additional parameters for the operation.

    A promise that resolves when the connection is established.

    Will throw an error if required parameters are missing or if there is an issue connecting to a remote IP.

    const result = await connectLocalIps({
    socket,
    newProducerMethod: newPipeProducer,
    closedProducerMethod: producerClosed,
    parameters,
    });
    Index

    Constructors

    Methods

    Constructors

    Methods