Function mixStreams

  • Mixes video and audio streams and participants based on specified parameters.

    Parameters

    Returns Promise<(Stream | Participant)[]>

    A promise that resolves with the mixed streams.

    Will throw an error if there is an issue mixing the streams.

    const mixedStreams = await mixStreams({
    alVideoStreams: [stream1, stream2],
    non_alVideoStreams: [participant1, participant2],
    ref_participants: [participant1, participant2],
    });
    console.log('Mixed streams:', mixedStreams);