Hi all.
im using this demo to learn openvidu, really great job : https://docs.openvidu.io/en/2.14.0/tutorials/openvidu-webcomponent/
I would like to say, how to limit to 2 users the session.
In the code there is a declaration:
if(webComponent.getAttribute("openvidu-secret") != undefined && webComponent.getAttribute("openvidu-server-url") != undefined ){
location.reload();
}else {
var token1 = await getToken(sessionName)
var token2 = await getToken(sessionName);
tokens.push(token1, token2);
webComponent.sessionConfig = { sessionName, user, tokens };
}
But if another user goes in the same session, i can view on video.
What is wrong?
Thanks in advance
Emiliano