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); Copy
const mixedStreams = await mixStreams({ alVideoStreams: [stream1, stream2], non_alVideoStreams: [participant1, participant2], ref_participants: [participant1, participant2],});console.log('Mixed streams:', mixedStreams);
mixStreams({ alVideoStreams: [stream1, stream2], non_alVideoStreams: [participant1, participant2],ref_participants: [participant1, participant2]}); Copy
mixStreams({ alVideoStreams: [stream1, stream2], non_alVideoStreams: [participant1, participant2],ref_participants: [participant1, participant2]});
Mixes video and audio streams and participants based on specified parameters.
Param: options
The options for mixing streams.
Param: options.alVideoStreams
The list of audio and video streams to mix.
Param: options.non_alVideoStreams
The list of non-audio and video streams to mix.
Param: options.ref_participants
The list of reference participants to mix.
Returns
A promise that resolves with the mixed streams.
Throws
Will throw an error if there is an issue mixing the streams.
Example