{
…
async function start() {
remon = new Remon({ config, listener });
await remon.createRoom(“conference”);
let participants = await remon.fetchRooms(“conference”);
participants.forEach(async function(participant){
if(!conferenceRoom[participant.id]){
conferenceRoom[participant.id] = true;
let newVideo = document.createElement(‘video’);
videoAttrs.id = participant.id.replace(":","-");
Object.keys(videoAttrs).forEach(key => newVideo.setAttribute(key, videoAttrs[key]))
config.view.remote = #${newVideo.id}
newVideo.remon = new Remon({ config })
otherVideos.appendChild(newVideo)
await newVideo.remon.joinCast(newVideo.id.replace("-",":"));
newVideo.onclick = function() {
클릭한 참여자 영상을 conferenceRemon 영상을 캐스트하려면 어떻게 해야 할까요?
}
}
});
config.view.local = "#localVideo";
delete config.view.remote;
conferenceRemon = await new Remon({config});
conferenceRemon.createCast("conference-broadcast");
};