Description
I want to render multiple videos as shown in the documentation like this:
let participants = client.getAllUser()
stream.attachVideo(participants[0].userId, 3).then((userVideo) => {
document.querySelector('video-player-container').appendChild(userVideo);
})
stream.attachVideo(participants[1].userId, 3).then((userVideo) => {
document.querySelector('video-player-container').appendChild(userVideo);
})
stream.attachVideo(participants[2].userId, 3).then((userVideo) => {
document.querySelector('video-player-container').appendChild(userVideo);
})
stream.attachVideo(participants[3].userId, 3).then((userVideo) => {
document.querySelector('video-player-container').appendChild(userVideo);
})
However, when stream.isSupportMultipleVideos() = false
, only one video is displayed. One approach is to create multiple ‘video-player-container’ elements and append only one video to each container. How can I achieve this in a better way?
Which Web Video SDK version?
1.11.10
Device (please complete the following information):
- Device: Mac Mini M1
- OS: 14.5
- Browser: Safari
- Browser Version: Version 17.5 (19618.2.12.11.6)