stormcloud-video-player 0.7.22 → 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.
package/lib/index.cjs CHANGED
@@ -7744,7 +7744,8 @@ var StormcloudVideoPlayerComponent = import_react2.default.memo(function(props)
7744
7744
  if (minSegmentsBeforePlay !== void 0) cfg.minSegmentsBeforePlay = minSegmentsBeforePlay;
7745
7745
  if (disableAds !== void 0) cfg.disableAds = disableAds;
7746
7746
  cfg.disableFiller = disableFiller !== null && disableFiller !== void 0 ? disableFiller : true;
7747
- if (!adcisionChannelId && swirlProjectId !== void 0) cfg.projectId = String(swirlProjectId);
7747
+ if (adcisionChannelId !== void 0) cfg.projectId = String(adcisionChannelId);
7748
+ else if (swirlProjectId !== void 0) cfg.projectId = String(swirlProjectId);
7748
7749
  var player = new StormcloudVideoPlayer(cfg);
7749
7750
  playerRef.current = player;
7750
7751
  player.load().then(function() {