I’m trying to achieve showing all participants videos instead of just the active speaker. In the documentation they use event_video_active_change, but I thought of using event_peer_video_state_change like this:
client.on('peer_video_state_change', async(payload) => {
try {
if (payload.action === 'Start') {
await stream.startRenderVideo(canvas, quality, payload.userId, '');
} else {
await astream.stopRenderVideo();
}
} catch (error) {
console.log(error);
}
});
Do you think it’s possible, and if not, can I even achieve something like this? Seeing the current speaker is nice, but my app needs to show all 3-4 guests at the same time.