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

The options for mixing streams.

The list of audio and video streams to mix.

The list of non-audio and video streams to mix.

The list of reference participants to mix.

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);

Constructors

Methods

Constructors

Methods

  • 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.

    mixStreams({
    alVideoStreams: [stream1, stream2],
    non_alVideoStreams: [participant1, participant2],
    ref_participants: [participant1, participant2]
    });