From def43a626edd8e9efaa9877b6c3bfeb9b96204c1 Mon Sep 17 00:00:00 2001 From: pabloFuente Date: Thu, 28 Jul 2022 20:24:19 +0200 Subject: [PATCH] openvidu-electron: fix HTML file path --- openvidu-electron/src/index.js | 3 ++- openvidu-electron/src/main.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/openvidu-electron/src/index.js b/openvidu-electron/src/index.js index 47ef232d..6f082cc3 100644 --- a/openvidu-electron/src/index.js +++ b/openvidu-electron/src/index.js @@ -43,6 +43,7 @@ async function joinSession() { mySessionId = document.getElementById("sessionId").value; const token = await getToken(mySessionId); + await session.connect(token, { clientData: 'OpenVidu Electron' }); showSession(); session.publish(publisher); @@ -80,7 +81,7 @@ function openScreenShareModal() { require("@electron/remote").require("@electron/remote/main").enable(win.webContents); win.setMenu(null); - win.webContents.openDevTools(); + // win.webContents.openDevTools(); var theUrl = 'file://' + __dirname + '/modal.html' win.loadURL(theUrl); diff --git a/openvidu-electron/src/main.js b/openvidu-electron/src/main.js index 257d9f76..c7de3918 100644 --- a/openvidu-electron/src/main.js +++ b/openvidu-electron/src/main.js @@ -20,7 +20,7 @@ function createWindow() { require("@electron/remote/main").enable(mainWindow.webContents); // and load the index.html of the app. - mainWindow.loadFile('index.html') + mainWindow.loadFile('src/index.html') // Open the DevTools. // mainWindow.webContents.openDevTools()