feat(external_api): Return external resources for the always on top.
This commit is contained in:
parent
d7bccd0c93
commit
da9e3fb63e
|
@ -8,6 +8,10 @@ import {
|
||||||
|
|
||||||
const logger = require('jitsi-meet-logger').getLogger(__filename);
|
const logger = require('jitsi-meet-logger').getLogger(__filename);
|
||||||
|
|
||||||
|
const ALWAYS_ON_TOP_FILENAMES = [
|
||||||
|
'css/alwaysontop.css', 'libs/alwaysontop.bundle.min.js'
|
||||||
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Maps the names of the commands expected by the API with the name of the
|
* Maps the names of the commands expected by the API with the name of the
|
||||||
* commands expected by jitsi-meet
|
* commands expected by jitsi-meet
|
||||||
|
@ -207,6 +211,9 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
|
||||||
noSSL,
|
noSSL,
|
||||||
roomName
|
roomName
|
||||||
});
|
});
|
||||||
|
this._baseUrl = generateURL(domain, {
|
||||||
|
noSSL
|
||||||
|
});
|
||||||
this._createIFrame(height, width);
|
this._createIFrame(height, width);
|
||||||
this._transport = new Transport({
|
this._transport = new Transport({
|
||||||
backend: new PostMessageTransportBackend({
|
backend: new PostMessageTransportBackend({
|
||||||
|
@ -245,6 +252,17 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
|
||||||
this._frame = this._parentNode.appendChild(this._frame);
|
this._frame = this._parentNode.appendChild(this._frame);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns arrays with the all resources for the always on top feature.
|
||||||
|
*
|
||||||
|
* @returns {Array<string>}
|
||||||
|
*/
|
||||||
|
_getAlwaysOnTopResources() {
|
||||||
|
return ALWAYS_ON_TOP_FILENAMES.map(
|
||||||
|
filename => this._baseUrl + filename
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the size of the iframe element.
|
* Sets the size of the iframe element.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue