@xibosignage/xibo-layout-renderer 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -715,6 +715,9 @@ var XiboLayoutRenderer = (function (exports) {
715
715
  var serverKey = options && ((_options$config3 = options.config) === null || _options$config3 === void 0 ? void 0 : _options$config3.cmsKey);
716
716
  return '/pwa/getResource' + '?v=' + schemaVersion + '&serverKey=' + serverKey + '&hardwareKey=' + hardwareKey + '&layoutId=' + params.layoutId + '&regionId=' + params.regionId + '&mediaId=' + params.mediaId;
717
717
  }
718
+ function composeVideoUrl(params) {
719
+ return '/xmds.php?file=' + params.uri;
720
+ }
718
721
  function composeBgUrlByPlatform(platform, params) {
719
722
  var bgImageUrl = params.layoutBackgroundDownloadUrl.replace(":id", params.layout.id) + '?preview=1&width=' + params.layout.sWidth + '&height=' + params.layout.sHeight + '&dynamic&proportional=0';
720
723
  if (platform === 'chromeOS') {
@@ -1288,6 +1291,9 @@ var XiboLayoutRenderer = (function (exports) {
1288
1291
  tmpUrl = composeResourceUrlByPlatform(xlr.config, resourceUrlParams);
1289
1292
  } else if (xlr.config.platform === 'chromeOS') {
1290
1293
  tmpUrl = composeResourceUrl(xlr.config, resourceUrlParams);
1294
+ if (self.mediaType === 'video') {
1295
+ tmpUrl = composeVideoUrl(resourceUrlParams);
1296
+ }
1291
1297
  }
1292
1298
  self.url = tmpUrl;
1293
1299
  // Loop if media has loop, or if region has loop and a single media
@@ -2073,7 +2079,9 @@ var XiboLayoutRenderer = (function (exports) {
2073
2079
  $screen && $screen.appendChild($layout);
2074
2080
  if ($layout) {
2075
2081
  $layout.style.display = 'none';
2076
- $layout.style.outline = 'red solid thin';
2082
+ if (xlr.config.platform === 'CMS') {
2083
+ $layout.style.outline = 'red solid thin';
2084
+ }
2077
2085
  }
2078
2086
  layout.layoutNode = props.data;
2079
2087
  /* Calculate the screen size */