openvidu-webcomponent: localhost OpenVidu Server

This commit is contained in:
pabloFuente 2020-03-17 12:46:09 +01:00
parent 8f519813fd
commit a5f6b2e455

View File

@ -52,7 +52,7 @@ function joinSession() {
* 3) Configure OpenVidu Web Component in your client side with the token
*/
var OPENVIDU_SERVER_URL = 'https://demos.openvidu.io' + ':4443';
var OPENVIDU_SERVER_URL = "https://" + location.hostname + ":4443";
var OPENVIDU_SERVER_SECRET = 'MY_SECRET';
function getToken(sessionName) {