@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.
- package/dist/src/Modules/Media/VideoMedia.d.ts +1 -0
- package/dist/styles.css +5 -0
- package/dist/xibo-layout-renderer.cjs.js +21 -22
- package/dist/xibo-layout-renderer.cjs.js.map +1 -1
- package/dist/xibo-layout-renderer.esm.js +21 -22
- package/dist/xibo-layout-renderer.esm.js.map +1 -1
- package/dist/xibo-layout-renderer.js +21 -22
- package/dist/xibo-layout-renderer.min.js +1 -1
- package/dist/xibo-layout-renderer.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -73136,7 +73136,7 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|
|
73136
73136
|
$media = getNewMedia();
|
|
73137
73137
|
}
|
|
73138
73138
|
if (!$media) {
|
|
73139
|
-
_context2.next =
|
|
73139
|
+
_context2.next = 39;
|
|
73140
73140
|
break;
|
|
73141
73141
|
}
|
|
73142
73142
|
$media.style.setProperty('display', 'block');
|
|
@@ -73165,48 +73165,46 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|
|
73165
73165
|
_context2.t3 = _context2.t2;
|
|
73166
73166
|
_context2.t4 = _context2.t1.concat.call(_context2.t1, _context2.t3);
|
|
73167
73167
|
_context2.t0.setProperty.call(_context2.t0, 'background-image', _context2.t4);
|
|
73168
|
-
_context2.next =
|
|
73168
|
+
_context2.next = 38;
|
|
73169
73169
|
break;
|
|
73170
73170
|
case 22:
|
|
73171
73171
|
if (!(self.mediaType === 'video' && self.url !== null)) {
|
|
73172
|
-
_context2.next =
|
|
73172
|
+
_context2.next = 26;
|
|
73173
73173
|
break;
|
|
73174
73174
|
}
|
|
73175
73175
|
// Initialize video.js
|
|
73176
|
-
videojs($media, {
|
|
73176
|
+
self.player = videojs($media, {
|
|
73177
73177
|
controls: false,
|
|
73178
73178
|
preload: 'auto',
|
|
73179
73179
|
autoplay: false,
|
|
73180
73180
|
muted: self.muted,
|
|
73181
73181
|
errorDisplay: xlr.config.platform !== 'chromeOS',
|
|
73182
|
-
restoreEl: $media,
|
|
73183
73182
|
loop: self.loop
|
|
73184
73183
|
});
|
|
73185
|
-
|
|
73186
|
-
_context2.next = 39;
|
|
73184
|
+
_context2.next = 38;
|
|
73187
73185
|
break;
|
|
73188
|
-
case
|
|
73186
|
+
case 26:
|
|
73189
73187
|
if (!(self.mediaType === 'audio' && self.url !== null)) {
|
|
73190
|
-
_context2.next =
|
|
73188
|
+
_context2.next = 37;
|
|
73191
73189
|
break;
|
|
73192
73190
|
}
|
|
73193
73191
|
if (!isCMS) {
|
|
73194
|
-
_context2.next =
|
|
73192
|
+
_context2.next = 33;
|
|
73195
73193
|
break;
|
|
73196
73194
|
}
|
|
73197
|
-
_context2.next =
|
|
73195
|
+
_context2.next = 30;
|
|
73198
73196
|
return preloadMediaBlob(self.url, self.mediaType);
|
|
73199
|
-
case
|
|
73197
|
+
case 30:
|
|
73200
73198
|
_context2.t5 = _context2.sent;
|
|
73201
|
-
_context2.next =
|
|
73199
|
+
_context2.next = 34;
|
|
73202
73200
|
break;
|
|
73203
|
-
case
|
|
73201
|
+
case 33:
|
|
73204
73202
|
_context2.t5 = self.url;
|
|
73205
|
-
case
|
|
73203
|
+
case 34:
|
|
73206
73204
|
$media.src = _context2.t5;
|
|
73207
|
-
_context2.next =
|
|
73205
|
+
_context2.next = 38;
|
|
73208
73206
|
break;
|
|
73209
|
-
case
|
|
73207
|
+
case 37:
|
|
73210
73208
|
if ((self.render === 'html' || self.mediaType === 'webpage') && self.iframe && self.checkIframeStatus) {
|
|
73211
73209
|
// Set state as false ( for now )
|
|
73212
73210
|
self.ready = false;
|
|
@@ -73222,9 +73220,9 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|
|
73222
73220
|
// }
|
|
73223
73221
|
// });
|
|
73224
73222
|
}
|
|
73225
|
-
case
|
|
73223
|
+
case 38:
|
|
73226
73224
|
self.emitter.emit('start', self);
|
|
73227
|
-
case
|
|
73225
|
+
case 39:
|
|
73228
73226
|
case "end":
|
|
73229
73227
|
return _context2.stop();
|
|
73230
73228
|
}
|
|
@@ -73286,6 +73284,9 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|
|
73286
73284
|
self.complete = false;
|
|
73287
73285
|
self.ending = false;
|
|
73288
73286
|
self.ended = false;
|
|
73287
|
+
self.curMedia = undefined;
|
|
73288
|
+
self.nxtMedia = undefined;
|
|
73289
|
+
self.currentMediaIndex = 0;
|
|
73289
73290
|
self.id = props.regionId;
|
|
73290
73291
|
self.uniqueId = "".concat(nextId(self.options));
|
|
73291
73292
|
self.options = _objectSpread2(_objectSpread2({}, platform), props.options);
|
|
@@ -74573,9 +74574,7 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|
|
74573
74574
|
console.debug('prepareLayouts::xlr>layouts', self.layouts);
|
|
74574
74575
|
return _context3.abrupt("return", new Promise(function (resolve) {
|
|
74575
74576
|
layouts.map(function (layoutItem) {
|
|
74576
|
-
|
|
74577
|
-
self.layouts[layoutItem.index] = layoutItem;
|
|
74578
|
-
}
|
|
74577
|
+
self.layouts[layoutItem.index] = layoutItem;
|
|
74579
74578
|
});
|
|
74580
74579
|
self.currentLayoutIndex = xlrLayouts.currentLayoutIndex;
|
|
74581
74580
|
self.currentLayout = self.layouts[self.currentLayoutIndex];
|