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.
package/lib/index.js CHANGED
@@ -3042,7 +3042,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
3042
3042
  this.hls.on(Hls.Events.FRAG_CHANGED, function(_evt, data) {
3043
3043
  var frag = data === null || data === void 0 ? void 0 : data.frag;
3044
3044
  if (!frag) return;
3045
- if (_this.lastAdInsertionPoint && !_this.inAdBreak && _this.lastAdInsertionPoint.updated_at !== _this.processedAdInsertionUpdatedAt) {
3045
+ if (_this.lastAdInsertionPoint && !_this.inAdBreak && !_this.pendingAdBreak && _this.lastAdInsertionPoint.updated_at !== _this.processedAdInsertionUpdatedAt) {
3046
3046
  var segmentName = _this.lastAdInsertionPoint.segment_ts_name;
3047
3047
  if (_this.fragmentMatchesSegment(frag, segmentName)) {
3048
3048
  var _ref;
@@ -3913,7 +3913,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
3913
3913
  ]);
3914
3914
  return [
3915
3915
  4,
3916
- fetch("https://adstorm.co/api-adstorm-dev/adstorm/swirl/projects/".concat(encodeURIComponent(this.config.projectId), "/ad-insertion-point"))
3916
+ fetch("https://adstorm.co/api-adstorm-dev/adstorm/adcision/channels/".concat(encodeURIComponent(this.config.projectId), "/ad-insertion-point"))
3917
3917
  ];
3918
3918
  case 2:
3919
3919
  resp = _state.sent();
@@ -3934,7 +3934,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
3934
3934
  this.pushAdInsertionDebug("api_response", data.segment_ts_name, {
3935
3935
  offsetSeconds: data.offset_seconds,
3936
3936
  updatedAt: data.updated_at,
3937
- detail: "project=".concat(data.project_id)
3937
+ detail: "ch=".concat(data.channel_id, " id=").concat(data.id)
3938
3938
  });
3939
3939
  if (segmentChanged && (this.pendingAdBreak || this.adInsertionOffsetTimerId != null)) {
3940
3940
  this.clearAdInsertionOffsetTimer();
@@ -7540,7 +7540,8 @@ var StormcloudVideoPlayerComponent = React2.memo(function(props) {
7540
7540
  licenseKey,
7541
7541
  lowLatencyMode,
7542
7542
  driftToleranceMs,
7543
- adcisionChannelId
7543
+ adcisionChannelId,
7544
+ debugAdTiming
7544
7545
  ]);
7545
7546
  useEffect2(function() {
7546
7547
  if (typeof window === "undefined") return;