@xibosignage/xibo-layout-renderer 1.0.12 → 1.0.13
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 -1
- package/dist/src/Types/Media/Media.types.d.ts +2 -0
- package/dist/xibo-layout-renderer.cjs.js +172 -188
- package/dist/xibo-layout-renderer.cjs.js.map +1 -1
- package/dist/xibo-layout-renderer.d.ts +2 -0
- package/dist/xibo-layout-renderer.esm.js +172 -188
- package/dist/xibo-layout-renderer.esm.js.map +1 -1
- package/dist/xibo-layout-renderer.js +172 -188
- package/dist/xibo-layout-renderer.min.js +4 -4
- package/dist/xibo-layout-renderer.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -69561,7 +69561,8 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|
|
69561
69561
|
},
|
|
69562
69562
|
emitter: {},
|
|
69563
69563
|
enableStat: false,
|
|
69564
|
-
muted: false
|
|
69564
|
+
muted: false,
|
|
69565
|
+
player: undefined
|
|
69565
69566
|
};
|
|
69566
69567
|
|
|
69567
69568
|
/*
|
|
@@ -72624,166 +72625,149 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|
|
72624
72625
|
};
|
|
72625
72626
|
}
|
|
72626
72627
|
|
|
72627
|
-
function composeVideoSource(
|
|
72628
|
-
|
|
72629
|
-
|
|
72630
|
-
|
|
72631
|
-
|
|
72632
|
-
var
|
|
72633
|
-
|
|
72634
|
-
|
|
72635
|
-
|
|
72636
|
-
|
|
72637
|
-
|
|
72638
|
-
case 2:
|
|
72639
|
-
videoSrc = _context4.sent;
|
|
72640
|
-
vidType = videoFileType(getFileExt(media.uri)); // Only add one source per type
|
|
72641
|
-
if ($media.querySelectorAll("source[type=\"".concat(vidType, "\"]")).length === 0) {
|
|
72642
|
-
$videoSource = document.createElement('source');
|
|
72643
|
-
$videoSource.src = videoSrc;
|
|
72644
|
-
$videoSource.type = vidType;
|
|
72645
|
-
$media.insertBefore($videoSource, $media.lastElementChild);
|
|
72646
|
-
}
|
|
72647
|
-
return _context4.abrupt("return", $media);
|
|
72648
|
-
case 6:
|
|
72649
|
-
case "end":
|
|
72650
|
-
return _context4.stop();
|
|
72651
|
-
}
|
|
72652
|
-
}, _callee4);
|
|
72653
|
-
}));
|
|
72654
|
-
return _composeVideoSource.apply(this, arguments);
|
|
72628
|
+
function composeVideoSource($media, media) {
|
|
72629
|
+
// const videoSrc = await preloadMediaBlob(media.url as string, media.mediaType as MediaTypes);
|
|
72630
|
+
var vidType = videoFileType(getFileExt(media.uri));
|
|
72631
|
+
// Only add one source per type
|
|
72632
|
+
if ($media.querySelectorAll("source[type=\"".concat(vidType, "\"]")).length === 0) {
|
|
72633
|
+
var $videoSource = document.createElement('source');
|
|
72634
|
+
$videoSource.src = media.url;
|
|
72635
|
+
$videoSource.type = vidType;
|
|
72636
|
+
$media.insertBefore($videoSource, $media.lastElementChild);
|
|
72637
|
+
}
|
|
72638
|
+
return $media;
|
|
72655
72639
|
}
|
|
72656
72640
|
function VideoMedia(media, xlr) {
|
|
72657
72641
|
return {
|
|
72658
72642
|
init: function init() {
|
|
72659
|
-
var
|
|
72660
|
-
if (
|
|
72661
|
-
var
|
|
72662
|
-
|
|
72663
|
-
|
|
72664
|
-
|
|
72665
|
-
|
|
72666
|
-
|
|
72667
|
-
|
|
72668
|
-
|
|
72669
|
-
|
|
72670
|
-
|
|
72671
|
-
|
|
72672
|
-
|
|
72673
|
-
|
|
72674
|
-
|
|
72675
|
-
|
|
72676
|
-
|
|
72677
|
-
|
|
72678
|
-
|
|
72679
|
-
|
|
72680
|
-
|
|
72681
|
-
|
|
72682
|
-
|
|
72683
|
-
|
|
72684
|
-
|
|
72685
|
-
|
|
72686
|
-
|
|
72687
|
-
|
|
72688
|
-
|
|
72689
|
-
|
|
72690
|
-
|
|
72691
|
-
|
|
72692
|
-
|
|
72693
|
-
|
|
72694
|
-
|
|
72695
|
-
|
|
72696
|
-
|
|
72697
|
-
|
|
72698
|
-
|
|
72699
|
-
|
|
72700
|
-
|
|
72701
|
-
|
|
72702
|
-
|
|
72703
|
-
|
|
72704
|
-
|
|
72705
|
-
|
|
72706
|
-
|
|
72707
|
-
|
|
72708
|
-
vjsPlayer.
|
|
72709
|
-
|
|
72710
|
-
|
|
72711
|
-
|
|
72712
|
-
|
|
72713
|
-
|
|
72714
|
-
|
|
72715
|
-
|
|
72716
|
-
|
|
72717
|
-
|
|
72718
|
-
|
|
72719
|
-
|
|
72720
|
-
console.debug("".concat(capitalizeStr(media.mediaType), " for media > ").concat(media.id, " autoplay error"));
|
|
72721
|
-
if (!(xlr.config.platform === 'chromeOS')) {
|
|
72722
|
-
_context2.next = 4;
|
|
72723
|
-
break;
|
|
72724
|
-
}
|
|
72643
|
+
var vjsPlayer = media.player;
|
|
72644
|
+
if (vjsPlayer !== undefined) {
|
|
72645
|
+
var playerReportFault = /*#__PURE__*/function () {
|
|
72646
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(msg) {
|
|
72647
|
+
var playerSW, hasSW;
|
|
72648
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
72649
|
+
while (1) switch (_context.prev = _context.next) {
|
|
72650
|
+
case 0:
|
|
72651
|
+
// Immediately expire media and report a fault
|
|
72652
|
+
playerSW = PwaSW();
|
|
72653
|
+
_context.next = 3;
|
|
72654
|
+
return playerSW.getSW();
|
|
72655
|
+
case 3:
|
|
72656
|
+
hasSW = _context.sent;
|
|
72657
|
+
if (hasSW) {
|
|
72658
|
+
playerSW.postMsg({
|
|
72659
|
+
type: 'MEDIA_FAULT',
|
|
72660
|
+
code: 5002,
|
|
72661
|
+
reason: msg,
|
|
72662
|
+
mediaId: media.id,
|
|
72663
|
+
regionId: media.region.id,
|
|
72664
|
+
layoutId: media.region.layout.id,
|
|
72665
|
+
date: format(new Date(), 'yyyy-MM-dd HH:mm:ss'),
|
|
72666
|
+
// Temporary setting
|
|
72667
|
+
expires: format(new Date(setExpiry(1)), 'yyyy-MM-dd HH:mm:ss')
|
|
72668
|
+
})["finally"](function () {
|
|
72669
|
+
// Expire the media and dispose the video
|
|
72670
|
+
vjsPlayer.dispose();
|
|
72671
|
+
media.emitter.emit('end', media);
|
|
72672
|
+
});
|
|
72673
|
+
}
|
|
72674
|
+
case 5:
|
|
72675
|
+
case "end":
|
|
72676
|
+
return _context.stop();
|
|
72677
|
+
}
|
|
72678
|
+
}, _callee);
|
|
72679
|
+
}));
|
|
72680
|
+
return function playerReportFault(_x) {
|
|
72681
|
+
return _ref.apply(this, arguments);
|
|
72682
|
+
};
|
|
72683
|
+
}();
|
|
72684
|
+
vjsPlayer.on('loadstart', function () {
|
|
72685
|
+
console.debug("".concat(capitalizeStr(media.mediaType), " for media > ").concat(media.id, " has started loading data . . ."));
|
|
72686
|
+
});
|
|
72687
|
+
vjsPlayer.on('canplay', function () {
|
|
72688
|
+
console.debug("".concat(capitalizeStr(media.mediaType), " for media > ").concat(media.id, " can be played . . ."));
|
|
72689
|
+
});
|
|
72690
|
+
vjsPlayer.on('ready', function () {
|
|
72691
|
+
vjsPlayer.muted(true);
|
|
72692
|
+
var promise = vjsPlayer.play();
|
|
72693
|
+
if (promise !== undefined) {
|
|
72694
|
+
promise.then(function () {
|
|
72695
|
+
// Autoplay restarted
|
|
72696
|
+
console.debug('autoplay started . . .');
|
|
72697
|
+
})["catch"]( /*#__PURE__*/function () {
|
|
72698
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(error) {
|
|
72699
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
72700
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
72701
|
+
case 0:
|
|
72702
|
+
console.debug("".concat(capitalizeStr(media.mediaType), " for media > ").concat(media.id, " autoplay error"));
|
|
72703
|
+
if (!(xlr.config.platform === 'chromeOS')) {
|
|
72725
72704
|
_context2.next = 4;
|
|
72726
|
-
|
|
72727
|
-
|
|
72728
|
-
|
|
72729
|
-
|
|
72730
|
-
|
|
72731
|
-
|
|
72732
|
-
|
|
72733
|
-
|
|
72734
|
-
|
|
72735
|
-
|
|
72736
|
-
|
|
72737
|
-
|
|
72738
|
-
|
|
72739
|
-
|
|
72740
|
-
|
|
72741
|
-
|
|
72742
|
-
|
|
72743
|
-
|
|
72744
|
-
|
|
72745
|
-
|
|
72746
|
-
|
|
72747
|
-
|
|
72748
|
-
|
|
72749
|
-
|
|
72750
|
-
|
|
72751
|
-
|
|
72752
|
-
|
|
72753
|
-
_context3.next =
|
|
72754
|
-
return playerReportFault('Video file source not supported');
|
|
72755
|
-
case 4:
|
|
72756
|
-
_context3.next = 7;
|
|
72705
|
+
break;
|
|
72706
|
+
}
|
|
72707
|
+
_context2.next = 4;
|
|
72708
|
+
return playerReportFault('Media autoplay error');
|
|
72709
|
+
case 4:
|
|
72710
|
+
case "end":
|
|
72711
|
+
return _context2.stop();
|
|
72712
|
+
}
|
|
72713
|
+
}, _callee2);
|
|
72714
|
+
}));
|
|
72715
|
+
return function (_x2) {
|
|
72716
|
+
return _ref2.apply(this, arguments);
|
|
72717
|
+
};
|
|
72718
|
+
}());
|
|
72719
|
+
}
|
|
72720
|
+
});
|
|
72721
|
+
vjsPlayer.on('playing', function () {
|
|
72722
|
+
console.debug("".concat(capitalizeStr(media.mediaType), " for media > ").concat(media.id, " is now playing . . ."));
|
|
72723
|
+
vjsPlayer.muted(media.muted);
|
|
72724
|
+
});
|
|
72725
|
+
vjsPlayer.on('error', /*#__PURE__*/function () {
|
|
72726
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(err) {
|
|
72727
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
72728
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
72729
|
+
case 0:
|
|
72730
|
+
console.debug("Media Error: ".concat(capitalizeStr(media.mediaType), " for media > ").concat(media.id));
|
|
72731
|
+
if (!(xlr.config.platform === 'chromeOS')) {
|
|
72732
|
+
_context3.next = 6;
|
|
72757
72733
|
break;
|
|
72758
|
-
|
|
72759
|
-
|
|
72760
|
-
|
|
72761
|
-
|
|
72762
|
-
|
|
72763
|
-
|
|
72764
|
-
|
|
72765
|
-
|
|
72766
|
-
|
|
72767
|
-
|
|
72768
|
-
|
|
72769
|
-
|
|
72770
|
-
|
|
72771
|
-
|
|
72772
|
-
|
|
72773
|
-
|
|
72774
|
-
|
|
72775
|
-
|
|
72776
|
-
|
|
72777
|
-
|
|
72778
|
-
|
|
72779
|
-
|
|
72780
|
-
|
|
72781
|
-
|
|
72782
|
-
|
|
72783
|
-
|
|
72784
|
-
|
|
72734
|
+
}
|
|
72735
|
+
_context3.next = 4;
|
|
72736
|
+
return playerReportFault('Video file source not supported');
|
|
72737
|
+
case 4:
|
|
72738
|
+
_context3.next = 7;
|
|
72739
|
+
break;
|
|
72740
|
+
case 6:
|
|
72741
|
+
// End media after 5 seconds
|
|
72742
|
+
setTimeout(function () {
|
|
72743
|
+
console.debug("".concat(capitalizeStr(media.mediaType), " for media > ").concat(media.id, " has ended . . ."));
|
|
72744
|
+
media.emitter.emit('end', media);
|
|
72745
|
+
vjsPlayer.dispose();
|
|
72746
|
+
}, 5000);
|
|
72747
|
+
case 7:
|
|
72748
|
+
case "end":
|
|
72749
|
+
return _context3.stop();
|
|
72750
|
+
}
|
|
72751
|
+
}, _callee3);
|
|
72752
|
+
}));
|
|
72753
|
+
return function (_x3) {
|
|
72754
|
+
return _ref3.apply(this, arguments);
|
|
72755
|
+
};
|
|
72756
|
+
}());
|
|
72757
|
+
vjsPlayer.on('ended', function () {
|
|
72758
|
+
var _media$emitter;
|
|
72759
|
+
console.debug("VideoMedia: onended: ".concat(capitalizeStr(media.mediaType), " for media > ").concat(media.id, " has ended playing . . ."));
|
|
72760
|
+
(_media$emitter = media.emitter) === null || _media$emitter === void 0 || _media$emitter.emit('end', media);
|
|
72761
|
+
vjsPlayer.dispose();
|
|
72762
|
+
});
|
|
72763
|
+
vjsPlayer.on('durationchange', function () {
|
|
72764
|
+
if (media.duration === 0 && vjsPlayer.duration() !== undefined) {
|
|
72765
|
+
media.duration = vjsPlayer.duration();
|
|
72766
|
+
} else if (media.duration > 0) {
|
|
72767
|
+
vjsPlayer.duration(media.duration);
|
|
72785
72768
|
}
|
|
72786
|
-
|
|
72769
|
+
console.debug('VIDEOJS: ondurationchange: Showing Media ' + media.id + ' for ' + vjsPlayer.duration() + 's of Region ' + media.region.regionId);
|
|
72770
|
+
});
|
|
72787
72771
|
}
|
|
72788
72772
|
}
|
|
72789
72773
|
};
|
|
@@ -72864,10 +72848,11 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|
|
72864
72848
|
mediaTimer = setInterval(function () {
|
|
72865
72849
|
mediaTimeCount++;
|
|
72866
72850
|
if (mediaTimeCount > media.duration) {
|
|
72851
|
+
console.debug('startMediaTimer: emit>end: on media ' + media.id + ' of Region ' + media.region.regionId);
|
|
72867
72852
|
media.emitter.emit('end', media);
|
|
72868
72853
|
}
|
|
72869
72854
|
}, 1000);
|
|
72870
|
-
console.debug('Showing Media ' + media.id + ' for ' + media.duration + 's of Region ' + media.region.regionId);
|
|
72855
|
+
console.debug('startMediaTimer: Showing Media ' + media.id + ' for ' + media.duration + 's of Region ' + media.region.regionId);
|
|
72871
72856
|
};
|
|
72872
72857
|
emitter.on('start', function (media) {
|
|
72873
72858
|
if (media.mediaType === 'video') {
|
|
@@ -73022,8 +73007,11 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|
|
73022
73007
|
$media.style.cssText = $media.style.cssText.concat("background-position: ".concat(align, " ").concat(valign));
|
|
73023
73008
|
}
|
|
73024
73009
|
} else if (self.mediaType === 'video') {
|
|
73025
|
-
var $videoMedia = $media;
|
|
73026
|
-
|
|
73010
|
+
var $videoMedia = composeVideoSource($media, self);
|
|
73011
|
+
var isMuted = false;
|
|
73012
|
+
if (Boolean(self.options['mute'])) {
|
|
73013
|
+
isMuted = self.options.mute === '1';
|
|
73014
|
+
}
|
|
73027
73015
|
if (Boolean(self.options['scaletype'])) {
|
|
73028
73016
|
if (self.options.scaletype === 'stretch') {
|
|
73029
73017
|
$videoMedia.style.objectFit = 'fill';
|
|
@@ -73031,8 +73019,10 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|
|
73031
73019
|
}
|
|
73032
73020
|
$videoMedia.classList.add('video-js', 'vjs-default-skin');
|
|
73033
73021
|
if (self.loop) {
|
|
73022
|
+
self.loop = true;
|
|
73034
73023
|
$videoMedia.loop = true;
|
|
73035
73024
|
}
|
|
73025
|
+
self.muted = isMuted;
|
|
73036
73026
|
$media = $videoMedia;
|
|
73037
73027
|
} else if (self.mediaType === 'audio') {
|
|
73038
73028
|
var $audioMedia = $media;
|
|
@@ -73135,7 +73125,7 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|
|
73135
73125
|
}
|
|
73136
73126
|
var showCurrentMedia = /*#__PURE__*/function () {
|
|
73137
73127
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
73138
|
-
var $mediaId, $media, isCMS
|
|
73128
|
+
var $mediaId, $media, isCMS;
|
|
73139
73129
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
73140
73130
|
while (1) switch (_context2.prev = _context2.next) {
|
|
73141
73131
|
case 0:
|
|
@@ -73146,7 +73136,7 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|
|
73146
73136
|
$media = getNewMedia();
|
|
73147
73137
|
}
|
|
73148
73138
|
if (!$media) {
|
|
73149
|
-
_context2.next =
|
|
73139
|
+
_context2.next = 40;
|
|
73150
73140
|
break;
|
|
73151
73141
|
}
|
|
73152
73142
|
$media.style.setProperty('display', 'block');
|
|
@@ -73175,54 +73165,48 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|
|
73175
73165
|
_context2.t3 = _context2.t2;
|
|
73176
73166
|
_context2.t4 = _context2.t1.concat.call(_context2.t1, _context2.t3);
|
|
73177
73167
|
_context2.t0.setProperty.call(_context2.t0, 'background-image', _context2.t4);
|
|
73178
|
-
_context2.next =
|
|
73168
|
+
_context2.next = 39;
|
|
73179
73169
|
break;
|
|
73180
73170
|
case 22:
|
|
73181
73171
|
if (!(self.mediaType === 'video' && self.url !== null)) {
|
|
73182
|
-
_context2.next =
|
|
73172
|
+
_context2.next = 27;
|
|
73183
73173
|
break;
|
|
73184
73174
|
}
|
|
73185
|
-
|
|
73186
|
-
return composeVideoSource($media, self);
|
|
73187
|
-
case 25:
|
|
73188
|
-
$media = _context2.sent;
|
|
73189
|
-
isMuted = false;
|
|
73190
|
-
if (Boolean(self.options['mute'])) {
|
|
73191
|
-
isMuted = self.options.mute === '1';
|
|
73192
|
-
}
|
|
73193
|
-
self.muted = isMuted;
|
|
73175
|
+
// Initialize video.js
|
|
73194
73176
|
videojs($media, {
|
|
73195
73177
|
controls: false,
|
|
73196
73178
|
preload: 'auto',
|
|
73197
73179
|
autoplay: false,
|
|
73198
|
-
muted:
|
|
73180
|
+
muted: self.muted,
|
|
73199
73181
|
errorDisplay: xlr.config.platform !== 'chromeOS',
|
|
73200
|
-
restoreEl: $media
|
|
73182
|
+
restoreEl: $media,
|
|
73183
|
+
loop: self.loop
|
|
73201
73184
|
});
|
|
73202
|
-
|
|
73185
|
+
self.player = videojs($media);
|
|
73186
|
+
_context2.next = 39;
|
|
73203
73187
|
break;
|
|
73204
|
-
case
|
|
73188
|
+
case 27:
|
|
73205
73189
|
if (!(self.mediaType === 'audio' && self.url !== null)) {
|
|
73206
|
-
_context2.next =
|
|
73190
|
+
_context2.next = 38;
|
|
73207
73191
|
break;
|
|
73208
73192
|
}
|
|
73209
73193
|
if (!isCMS) {
|
|
73210
|
-
_context2.next =
|
|
73194
|
+
_context2.next = 34;
|
|
73211
73195
|
break;
|
|
73212
73196
|
}
|
|
73213
|
-
_context2.next =
|
|
73197
|
+
_context2.next = 31;
|
|
73214
73198
|
return preloadMediaBlob(self.url, self.mediaType);
|
|
73215
|
-
case
|
|
73199
|
+
case 31:
|
|
73216
73200
|
_context2.t5 = _context2.sent;
|
|
73217
|
-
_context2.next =
|
|
73201
|
+
_context2.next = 35;
|
|
73218
73202
|
break;
|
|
73219
|
-
case
|
|
73203
|
+
case 34:
|
|
73220
73204
|
_context2.t5 = self.url;
|
|
73221
|
-
case
|
|
73205
|
+
case 35:
|
|
73222
73206
|
$media.src = _context2.t5;
|
|
73223
|
-
_context2.next =
|
|
73207
|
+
_context2.next = 39;
|
|
73224
73208
|
break;
|
|
73225
|
-
case
|
|
73209
|
+
case 38:
|
|
73226
73210
|
if ((self.render === 'html' || self.mediaType === 'webpage') && self.iframe && self.checkIframeStatus) {
|
|
73227
73211
|
// Set state as false ( for now )
|
|
73228
73212
|
self.ready = false;
|
|
@@ -73238,9 +73222,9 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|
|
73238
73222
|
// }
|
|
73239
73223
|
// });
|
|
73240
73224
|
}
|
|
73241
|
-
case
|
|
73225
|
+
case 39:
|
|
73242
73226
|
self.emitter.emit('start', self);
|
|
73243
|
-
case
|
|
73227
|
+
case 40:
|
|
73244
73228
|
case "end":
|
|
73245
73229
|
return _context2.stop();
|
|
73246
73230
|
}
|
|
@@ -73365,7 +73349,7 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|
|
73365
73349
|
console.debug('Region::finished called . . . ', self.id);
|
|
73366
73350
|
// Mark as complete
|
|
73367
73351
|
self.complete = true;
|
|
73368
|
-
self.layout.regions[regionObject.index] =
|
|
73352
|
+
self.layout.regions[regionObject.index] = self;
|
|
73369
73353
|
self.layout.regionExpired();
|
|
73370
73354
|
};
|
|
73371
73355
|
regionObject.prepareMediaObjects = function () {
|
|
@@ -73487,7 +73471,7 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|
|
73487
73471
|
}
|
|
73488
73472
|
};
|
|
73489
73473
|
regionObject.playNextMedia = function () {
|
|
73490
|
-
var _self$curMedia, _self$curMedia2, _self$curMedia3, _self$curMedia4;
|
|
73474
|
+
var _self$curMedia, _self$curMedia2, _self$curMedia3, _self$curMedia4, _self$curMedia5;
|
|
73491
73475
|
var self = regionObject;
|
|
73492
73476
|
/* The current media has finished running */
|
|
73493
73477
|
if (self.ended) {
|
|
@@ -73507,7 +73491,7 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|
|
73507
73491
|
// When the region has completed and mediaObjects.length = 1
|
|
73508
73492
|
// and curMedia.loop = false, then put the media on
|
|
73509
73493
|
// its current state
|
|
73510
|
-
if (self.complete && self.mediaObjects.length === 1 && ((_self$curMedia2 = self.curMedia) === null || _self$curMedia2 === void 0 ? void 0 : _self$curMedia2.render) !== 'html' && ((_self$curMedia3 = self.curMedia) === null || _self$curMedia3 === void 0 ? void 0 : _self$curMedia3.mediaType) === 'image' && !((_self$
|
|
73494
|
+
if (self.complete && self.mediaObjects.length === 1 && ((_self$curMedia2 = self.curMedia) === null || _self$curMedia2 === void 0 ? void 0 : _self$curMedia2.render) !== 'html' && (((_self$curMedia3 = self.curMedia) === null || _self$curMedia3 === void 0 ? void 0 : _self$curMedia3.mediaType) === 'image' || ((_self$curMedia4 = self.curMedia) === null || _self$curMedia4 === void 0 ? void 0 : _self$curMedia4.mediaType) === 'video') && !((_self$curMedia5 = self.curMedia) !== null && _self$curMedia5 !== void 0 && _self$curMedia5.loop)) {
|
|
73511
73495
|
return;
|
|
73512
73496
|
}
|
|
73513
73497
|
self.currentMediaIndex = self.currentMediaIndex + 1;
|