MediaSFU Angular
    Preparing search index...

    Class GenerateRandomParticipants

    GenerateRandomParticipants - Service to generate a list of random participants.

    This service creates a list of participants based on a set of specified options, with customization for chat broadcasts and designation of specific roles like member, co-host, and host.

    GenerateRandomParticipants

    const generateRandomParticipantsService = new GenerateRandomParticipants();
    const participants = generateRandomParticipantsService.generateRandomParticipants({
    member: 'Alice',
    coHost: 'Bob',
    host: 'Charlie',
    forChatBroadcast: true
    });
    console.log(participants);

    Options for generating participants.

    Primary member to include in the participants list.

    Optional co-host in the participants list.

    Host to include in the participants list.

    Indicates if participants are for a chat broadcast.

    Array of generated participants with randomized levels, muted states, and identifiers.

    Index

    Constructors

    Methods