stormcloud-video-player 0.7.21 → 0.7.23
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/stormcloud-vp.min.js +1 -1
- package/lib/index.cjs +7 -5
- package/lib/index.cjs.map +1 -1
- package/lib/index.js +7 -5
- package/lib/index.js.map +1 -1
- package/lib/player/StormcloudVideoPlayer.cjs +3 -3
- package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/players/HlsPlayer.cjs +3 -3
- package/lib/players/HlsPlayer.cjs.map +1 -1
- package/lib/players/index.cjs +3 -3
- package/lib/players/index.cjs.map +1 -1
- package/lib/ui/StormcloudVideoPlayer.cjs +7 -5
- package/lib/ui/StormcloudVideoPlayer.cjs.map +1 -1
- package/package.json +1 -1
|
@@ -3030,7 +3030,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
3030
3030
|
this.hls.on(import_hls.default.Events.FRAG_CHANGED, function(_evt, data) {
|
|
3031
3031
|
var frag = data === null || data === void 0 ? void 0 : data.frag;
|
|
3032
3032
|
if (!frag) return;
|
|
3033
|
-
if (_this.lastAdInsertionPoint && !_this.inAdBreak && _this.lastAdInsertionPoint.updated_at !== _this.processedAdInsertionUpdatedAt) {
|
|
3033
|
+
if (_this.lastAdInsertionPoint && !_this.inAdBreak && !_this.pendingAdBreak && _this.lastAdInsertionPoint.updated_at !== _this.processedAdInsertionUpdatedAt) {
|
|
3034
3034
|
var segmentName = _this.lastAdInsertionPoint.segment_ts_name;
|
|
3035
3035
|
if (_this.fragmentMatchesSegment(frag, segmentName)) {
|
|
3036
3036
|
var _ref;
|
|
@@ -3901,7 +3901,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
3901
3901
|
]);
|
|
3902
3902
|
return [
|
|
3903
3903
|
4,
|
|
3904
|
-
fetch("https://adstorm.co/api-adstorm-dev/adstorm/
|
|
3904
|
+
fetch("https://adstorm.co/api-adstorm-dev/adstorm/adcision/channels/".concat(encodeURIComponent(this.config.projectId), "/ad-insertion-point"))
|
|
3905
3905
|
];
|
|
3906
3906
|
case 2:
|
|
3907
3907
|
resp = _state.sent();
|
|
@@ -3922,7 +3922,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
3922
3922
|
this.pushAdInsertionDebug("api_response", data.segment_ts_name, {
|
|
3923
3923
|
offsetSeconds: data.offset_seconds,
|
|
3924
3924
|
updatedAt: data.updated_at,
|
|
3925
|
-
detail: "
|
|
3925
|
+
detail: "ch=".concat(data.channel_id, " id=").concat(data.id)
|
|
3926
3926
|
});
|
|
3927
3927
|
if (segmentChanged && (this.pendingAdBreak || this.adInsertionOffsetTimerId != null)) {
|
|
3928
3928
|
this.clearAdInsertionOffsetTimer();
|
|
@@ -7528,7 +7528,8 @@ var StormcloudVideoPlayerComponent = import_react2.default.memo(function(props)
|
|
|
7528
7528
|
licenseKey,
|
|
7529
7529
|
lowLatencyMode,
|
|
7530
7530
|
driftToleranceMs,
|
|
7531
|
-
adcisionChannelId
|
|
7531
|
+
adcisionChannelId,
|
|
7532
|
+
debugAdTiming
|
|
7532
7533
|
]);
|
|
7533
7534
|
(0, import_react2.useEffect)(function() {
|
|
7534
7535
|
if (typeof window === "undefined") return;
|
|
@@ -7565,7 +7566,8 @@ var StormcloudVideoPlayerComponent = import_react2.default.memo(function(props)
|
|
|
7565
7566
|
if (minSegmentsBeforePlay !== void 0) cfg.minSegmentsBeforePlay = minSegmentsBeforePlay;
|
|
7566
7567
|
if (disableAds !== void 0) cfg.disableAds = disableAds;
|
|
7567
7568
|
cfg.disableFiller = disableFiller !== null && disableFiller !== void 0 ? disableFiller : true;
|
|
7568
|
-
if (
|
|
7569
|
+
if (adcisionChannelId !== void 0) cfg.projectId = String(adcisionChannelId);
|
|
7570
|
+
else if (swirlProjectId !== void 0) cfg.projectId = String(swirlProjectId);
|
|
7569
7571
|
var player = new StormcloudVideoPlayer(cfg);
|
|
7570
7572
|
playerRef.current = player;
|
|
7571
7573
|
player.load().then(function() {
|