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.
@@ -2992,7 +2992,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
2992
2992
  this.hls.on(import_hls.default.Events.FRAG_CHANGED, function(_evt, data) {
2993
2993
  var frag = data === null || data === void 0 ? void 0 : data.frag;
2994
2994
  if (!frag) return;
2995
- if (_this.lastAdInsertionPoint && !_this.inAdBreak && _this.lastAdInsertionPoint.updated_at !== _this.processedAdInsertionUpdatedAt) {
2995
+ if (_this.lastAdInsertionPoint && !_this.inAdBreak && !_this.pendingAdBreak && _this.lastAdInsertionPoint.updated_at !== _this.processedAdInsertionUpdatedAt) {
2996
2996
  var segmentName = _this.lastAdInsertionPoint.segment_ts_name;
2997
2997
  if (_this.fragmentMatchesSegment(frag, segmentName)) {
2998
2998
  var _ref;
@@ -3863,7 +3863,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
3863
3863
  ]);
3864
3864
  return [
3865
3865
  4,
3866
- fetch("https://adstorm.co/api-adstorm-dev/adstorm/swirl/projects/".concat(encodeURIComponent(this.config.projectId), "/ad-insertion-point"))
3866
+ fetch("https://adstorm.co/api-adstorm-dev/adstorm/adcision/channels/".concat(encodeURIComponent(this.config.projectId), "/ad-insertion-point"))
3867
3867
  ];
3868
3868
  case 2:
3869
3869
  resp = _state.sent();
@@ -3884,7 +3884,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
3884
3884
  this.pushAdInsertionDebug("api_response", data.segment_ts_name, {
3885
3885
  offsetSeconds: data.offset_seconds,
3886
3886
  updatedAt: data.updated_at,
3887
- detail: "project=".concat(data.project_id)
3887
+ detail: "ch=".concat(data.channel_id, " id=").concat(data.id)
3888
3888
  });
3889
3889
  if (segmentChanged && (this.pendingAdBreak || this.adInsertionOffsetTimerId != null)) {
3890
3890
  this.clearAdInsertionOffsetTimer();