@xibosignage/xibo-layout-renderer 1.0.13 → 1.0.14

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.
@@ -1,5 +1,6 @@
1
1
  import { IMedia } from '../../Types/Media';
2
2
  import { IXlr } from '../../types';
3
+ import './media.css';
3
4
  export declare function composeVideoSource($media: HTMLVideoElement, media: IMedia): HTMLVideoElement;
4
5
  export default function VideoMedia(media: IMedia, xlr: IXlr): {
5
6
  init: () => void;
package/dist/styles.css CHANGED
@@ -251,6 +251,11 @@ iframe {
251
251
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
252
252
  cursor: pointer;
253
253
  }
254
+
255
+ .vjs-control-bar, .vjs-big-play-button {
256
+ display: none !important;
257
+ }
258
+
254
259
  /* Style the Splash Screen */
255
260
  div.preview-splash {
256
261
  height: 100%;
@@ -73137,7 +73137,7 @@ function Media(region, mediaId, xml, options, xlr) {
73137
73137
  $media = getNewMedia();
73138
73138
  }
73139
73139
  if (!$media) {
73140
- _context2.next = 40;
73140
+ _context2.next = 39;
73141
73141
  break;
73142
73142
  }
73143
73143
  $media.style.setProperty('display', 'block');
@@ -73166,48 +73166,46 @@ function Media(region, mediaId, xml, options, xlr) {
73166
73166
  _context2.t3 = _context2.t2;
73167
73167
  _context2.t4 = _context2.t1.concat.call(_context2.t1, _context2.t3);
73168
73168
  _context2.t0.setProperty.call(_context2.t0, 'background-image', _context2.t4);
73169
- _context2.next = 39;
73169
+ _context2.next = 38;
73170
73170
  break;
73171
73171
  case 22:
73172
73172
  if (!(self.mediaType === 'video' && self.url !== null)) {
73173
- _context2.next = 27;
73173
+ _context2.next = 26;
73174
73174
  break;
73175
73175
  }
73176
73176
  // Initialize video.js
73177
- videojs($media, {
73177
+ self.player = videojs($media, {
73178
73178
  controls: false,
73179
73179
  preload: 'auto',
73180
73180
  autoplay: false,
73181
73181
  muted: self.muted,
73182
73182
  errorDisplay: xlr.config.platform !== 'chromeOS',
73183
- restoreEl: $media,
73184
73183
  loop: self.loop
73185
73184
  });
73186
- self.player = videojs($media);
73187
- _context2.next = 39;
73185
+ _context2.next = 38;
73188
73186
  break;
73189
- case 27:
73187
+ case 26:
73190
73188
  if (!(self.mediaType === 'audio' && self.url !== null)) {
73191
- _context2.next = 38;
73189
+ _context2.next = 37;
73192
73190
  break;
73193
73191
  }
73194
73192
  if (!isCMS) {
73195
- _context2.next = 34;
73193
+ _context2.next = 33;
73196
73194
  break;
73197
73195
  }
73198
- _context2.next = 31;
73196
+ _context2.next = 30;
73199
73197
  return preloadMediaBlob(self.url, self.mediaType);
73200
- case 31:
73198
+ case 30:
73201
73199
  _context2.t5 = _context2.sent;
73202
- _context2.next = 35;
73200
+ _context2.next = 34;
73203
73201
  break;
73204
- case 34:
73202
+ case 33:
73205
73203
  _context2.t5 = self.url;
73206
- case 35:
73204
+ case 34:
73207
73205
  $media.src = _context2.t5;
73208
- _context2.next = 39;
73206
+ _context2.next = 38;
73209
73207
  break;
73210
- case 38:
73208
+ case 37:
73211
73209
  if ((self.render === 'html' || self.mediaType === 'webpage') && self.iframe && self.checkIframeStatus) {
73212
73210
  // Set state as false ( for now )
73213
73211
  self.ready = false;
@@ -73223,9 +73221,9 @@ function Media(region, mediaId, xml, options, xlr) {
73223
73221
  // }
73224
73222
  // });
73225
73223
  }
73226
- case 39:
73224
+ case 38:
73227
73225
  self.emitter.emit('start', self);
73228
- case 40:
73226
+ case 39:
73229
73227
  case "end":
73230
73228
  return _context2.stop();
73231
73229
  }
@@ -73287,6 +73285,9 @@ function Region(layout, xml, regionId, options, xlr) {
73287
73285
  self.complete = false;
73288
73286
  self.ending = false;
73289
73287
  self.ended = false;
73288
+ self.curMedia = undefined;
73289
+ self.nxtMedia = undefined;
73290
+ self.currentMediaIndex = 0;
73290
73291
  self.id = props.regionId;
73291
73292
  self.uniqueId = "".concat(nextId(self.options));
73292
73293
  self.options = _objectSpread2(_objectSpread2({}, platform), props.options);
@@ -74574,9 +74575,7 @@ function XiboLayoutRenderer(inputLayouts, options) {
74574
74575
  console.debug('prepareLayouts::xlr>layouts', self.layouts);
74575
74576
  return _context3.abrupt("return", new Promise(function (resolve) {
74576
74577
  layouts.map(function (layoutItem) {
74577
- if (!Boolean(self.layouts[layoutItem.index])) {
74578
- self.layouts[layoutItem.index] = layoutItem;
74579
- }
74578
+ self.layouts[layoutItem.index] = layoutItem;
74580
74579
  });
74581
74580
  self.currentLayoutIndex = xlrLayouts.currentLayoutIndex;
74582
74581
  self.currentLayout = self.layouts[self.currentLayoutIndex];