MediaSFU Angular
    Preparing search index...

    Class GetDomains

    Service to handle domain-related operations, such as retrieving and processing domains for connection.

    GetDomains

    This service provides a method to retrieve and process domains by connecting IPs that are not currently present in the room.

    getDomains

    The options for retrieving and connecting domains.

    The list of domains to process.

    An object mapping primary domains to alternative domains.

    The API username for authentication.

    The API key for authentication.

    The API token for authentication.

    Additional parameters for the operation.

    The list of IP addresses already connected in the room.

    A function to get updated parameters.

    A function to connect IPs that are not currently present.

    A promise that resolves when the operation is complete.

    Throws an error if the domain retrieval or connection fails.

    const options = {
    domains: ['example.com', 'example.org'],
    alt_domains: { 'example.com': 'alt-example.com' },
    apiUserName: 'user123',
    apiKey: 'key123',
    apiToken: 'token123',
    parameters: {
    roomRecvIPs: ['192.168.1.1'],
    getUpdatedAllParams: () => updatedParameters,
    connectIps: connectIpsFunction,
    }
    };
    getDomainsService.getDomains(options);
    Index

    Constructors

    Methods

    Constructors

    Methods