How to use the es.upv.paella.opencast.loader function in es

To help you get started, we’ve selected a few es examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github polimediaupv / paella-opencast / src / main / paella-opencast / plugins / es.upv.paella.opencast.loader / 03_oc_search_converter.js View on Github external
constructor() {
    this._config = paella.player.config.plugins.list['es.upv.paella.opencast.loader'] || {};
    this._orderTracks = this._config.orderTracks || ["presenter/delivery", "presenter/preview", "presentation/delivery", "presentation/preview"];
  }
github opencast / opencast / modules / engage-paella-player / src / main / paella-opencast / plugins / es.upv.paella.opencast.loader / 03_oc_search_converter.js View on Github external
matchTrackFilter(flavor, subFlavor) {
    var filters = paella.player.config.plugins.list['es.upv.paella.opencast.loader'].flavors || [['*']];
    for (const filter of filters) {
      filter.push('*');
      if ((filter[0] == '*' || filter[0] == flavor) && (filter[1] == '*' || filter[1] == subFlavor)) {
        return true;
      }
    }
    return false;
  }