stormcloud-video-player 0.7.21 → 0.7.22

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.
@@ -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/swirl/projects/".concat(encodeURIComponent(this.config.projectId), "/ad-insertion-point"))
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: "project=".concat(data.project_id)
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;