fix(api-devices): Initial device function calls

This commit is contained in:
Hristo Terezov
2019-03-29 15:42:02 +00:00
parent 427f49367b
commit ed1d3d3df5
8 changed files with 115 additions and 33 deletions
+6 -2
View File
@@ -221,6 +221,8 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
* for iframe onload event.
* @param {Array<Object>} [options.invitees] - Array of objects containing
* information about new participants that will be invited in the call.
* @param {Array<Object>} [options.devices] - Array of objects containing
* information about the initial devices that will be used in the call.
*/
constructor(domain, ...args) {
super();
@@ -234,7 +236,8 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
noSSL = false,
jwt = undefined,
onload = undefined,
invitees
invitees,
devices
} = parseArguments(args);
this._parentNode = parentNode;
@@ -243,7 +246,8 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
interfaceConfigOverwrite,
jwt,
noSSL,
roomName
roomName,
devices
});
this._createIFrame(height, width, onload);
this._transport = new Transport({