Commit eb07739c authored by Tom Jorquera's avatar Tom Jorquera
Browse files

fix external lib loading issue

The external libs would not get loaded before running the behavior functions
that required them.

Move loading function call and add timeout to force them to get loaded before
robot start.
parent 4c27cd30
......@@ -7,6 +7,8 @@
const config = arguments[1];
robotController.external.load(config);
robot = {
recordedParticipants: {},
......@@ -18,7 +20,6 @@ robot = {
return mediaRecorder;
},
start: () => {
robotController.external.load(config);
robotLib.stt = robotLib.stt(config);
robotLib.archive = robotLib.archive(config);
......
......@@ -16,9 +16,11 @@ module.exports = config => ({
.then(() => resolveSequentially(f => client.execute(f, room, clientConfig),
controllerFilesList))
.then(() => client.execute(() => {
/* eslint-disable no-undef */
robot.start();
/* eslint-enable */
setTimeout(() => {
/* eslint-disable no-undef */
robot.start();
/* eslint-enable */
}, 500);
}))
.waitForVisible('#displayname', 30000)
.setValue('#displayname', clientConfig.name)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment