Browse Source

feat(external_api): Return external resources for the always on top.

j8
hristoterezov 8 years ago
parent
commit
da9e3fb63e
1 changed files with 18 additions and 0 deletions
  1. 18
    0
      modules/API/external/external_api.js

+ 18
- 0
modules/API/external/external_api.js View File

8
 
8
 
9
 const logger = require('jitsi-meet-logger').getLogger(__filename);
9
 const logger = require('jitsi-meet-logger').getLogger(__filename);
10
 
10
 
11
+const ALWAYS_ON_TOP_FILENAMES = [
12
+    'css/alwaysontop.css', 'libs/alwaysontop.bundle.min.js'
13
+];
14
+
11
 /**
15
 /**
12
  * Maps the names of the commands expected by the API with the name of the
16
  * Maps the names of the commands expected by the API with the name of the
13
  * commands expected by jitsi-meet
17
  * commands expected by jitsi-meet
207
             noSSL,
211
             noSSL,
208
             roomName
212
             roomName
209
         });
213
         });
214
+        this._baseUrl = generateURL(domain, {
215
+            noSSL
216
+        });
210
         this._createIFrame(height, width);
217
         this._createIFrame(height, width);
211
         this._transport = new Transport({
218
         this._transport = new Transport({
212
             backend: new PostMessageTransportBackend({
219
             backend: new PostMessageTransportBackend({
245
         this._frame = this._parentNode.appendChild(this._frame);
252
         this._frame = this._parentNode.appendChild(this._frame);
246
     }
253
     }
247
 
254
 
255
+    /**
256
+     * Returns arrays with the all resources for the always on top feature.
257
+     *
258
+     * @returns {Array<string>}
259
+     */
260
+    _getAlwaysOnTopResources() {
261
+        return ALWAYS_ON_TOP_FILENAMES.map(
262
+            filename => this._baseUrl + filename
263
+        );
264
+    }
265
+
248
     /**
266
     /**
249
      * Sets the size of the iframe element.
267
      * Sets the size of the iframe element.
250
      *
268
      *

Loading…
Cancel
Save