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.
@@ -3080,7 +3080,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
3080
3080
  this.hls.on(import_hls.default.Events.FRAG_CHANGED, function(_evt, data) {
3081
3081
  var frag = data === null || data === void 0 ? void 0 : data.frag;
3082
3082
  if (!frag) return;
3083
- if (_this.lastAdInsertionPoint && !_this.inAdBreak && _this.lastAdInsertionPoint.updated_at !== _this.processedAdInsertionUpdatedAt) {
3083
+ if (_this.lastAdInsertionPoint && !_this.inAdBreak && !_this.pendingAdBreak && _this.lastAdInsertionPoint.updated_at !== _this.processedAdInsertionUpdatedAt) {
3084
3084
  var segmentName = _this.lastAdInsertionPoint.segment_ts_name;
3085
3085
  if (_this.fragmentMatchesSegment(frag, segmentName)) {
3086
3086
  var _ref;
@@ -3951,7 +3951,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
3951
3951
  ]);
3952
3952
  return [
3953
3953
  4,
3954
- fetch("https://adstorm.co/api-adstorm-dev/adstorm/swirl/projects/".concat(encodeURIComponent(this.config.projectId), "/ad-insertion-point"))
3954
+ fetch("https://adstorm.co/api-adstorm-dev/adstorm/adcision/channels/".concat(encodeURIComponent(this.config.projectId), "/ad-insertion-point"))
3955
3955
  ];
3956
3956
  case 2:
3957
3957
  resp = _state.sent();
@@ -3972,7 +3972,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
3972
3972
  this.pushAdInsertionDebug("api_response", data.segment_ts_name, {
3973
3973
  offsetSeconds: data.offset_seconds,
3974
3974
  updatedAt: data.updated_at,
3975
- detail: "project=".concat(data.project_id)
3975
+ detail: "ch=".concat(data.channel_id, " id=").concat(data.id)
3976
3976
  });
3977
3977
  if (segmentChanged && (this.pendingAdBreak || this.adInsertionOffsetTimerId != null)) {
3978
3978
  this.clearAdInsertionOffsetTimer();