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.
@@ -3044,7 +3044,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
3044
3044
  this.hls.on(import_hls.default.Events.FRAG_CHANGED, function(_evt, data) {
3045
3045
  var frag = data === null || data === void 0 ? void 0 : data.frag;
3046
3046
  if (!frag) return;
3047
- if (_this.lastAdInsertionPoint && !_this.inAdBreak && _this.lastAdInsertionPoint.updated_at !== _this.processedAdInsertionUpdatedAt) {
3047
+ if (_this.lastAdInsertionPoint && !_this.inAdBreak && !_this.pendingAdBreak && _this.lastAdInsertionPoint.updated_at !== _this.processedAdInsertionUpdatedAt) {
3048
3048
  var segmentName = _this.lastAdInsertionPoint.segment_ts_name;
3049
3049
  if (_this.fragmentMatchesSegment(frag, segmentName)) {
3050
3050
  var _ref;
@@ -3915,7 +3915,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
3915
3915
  ]);
3916
3916
  return [
3917
3917
  4,
3918
- fetch("https://adstorm.co/api-adstorm-dev/adstorm/swirl/projects/".concat(encodeURIComponent(this.config.projectId), "/ad-insertion-point"))
3918
+ fetch("https://adstorm.co/api-adstorm-dev/adstorm/adcision/channels/".concat(encodeURIComponent(this.config.projectId), "/ad-insertion-point"))
3919
3919
  ];
3920
3920
  case 2:
3921
3921
  resp = _state.sent();
@@ -3936,7 +3936,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
3936
3936
  this.pushAdInsertionDebug("api_response", data.segment_ts_name, {
3937
3937
  offsetSeconds: data.offset_seconds,
3938
3938
  updatedAt: data.updated_at,
3939
- detail: "project=".concat(data.project_id)
3939
+ detail: "ch=".concat(data.channel_id, " id=").concat(data.id)
3940
3940
  });
3941
3941
  if (segmentChanged && (this.pendingAdBreak || this.adInsertionOffsetTimerId != null)) {
3942
3942
  this.clearAdInsertionOffsetTimer();