stormcloud-video-player 0.7.45 → 0.7.46

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.
@@ -8098,6 +8098,7 @@ var StormcloudVideoPlayerComponent = import_react2.default.memo(function(props)
8098
8098
  var _player_getMinHlsResolution;
8099
8099
  var fixed = swirlOverlayCoordinateSpace;
8100
8100
  if (fixed && fixed.width > 0 && fixed.height > 0) {
8101
+ console.debug("[StormcloudVideoPlayer] overlay coord space (prop):", fixed.width, "x", fixed.height);
8101
8102
  setOverlayCoordSpace({
8102
8103
  width: fixed.width,
8103
8104
  height: fixed.height
@@ -8108,6 +8109,7 @@ var StormcloudVideoPlayerComponent = import_react2.default.memo(function(props)
8108
8109
  if (!player) return false;
8109
8110
  var minRes = (_player_getMinHlsResolution = player.getMinHlsResolution) === null || _player_getMinHlsResolution === void 0 ? void 0 : _player_getMinHlsResolution.call(player);
8110
8111
  if (minRes && minRes.width > 0 && minRes.height > 0) {
8112
+ console.debug("[StormcloudVideoPlayer] overlay coord space (minHlsResolution):", minRes.width, "x", minRes.height);
8111
8113
  setOverlayCoordSpace({
8112
8114
  width: minRes.width,
8113
8115
  height: minRes.height
@@ -8116,6 +8118,7 @@ var StormcloudVideoPlayerComponent = import_react2.default.memo(function(props)
8116
8118
  }
8117
8119
  var video2 = player.videoElement;
8118
8120
  if (video2 && video2.videoWidth > 0 && video2.videoHeight > 0) {
8121
+ console.debug("[StormcloudVideoPlayer] overlay coord space (videoNative):", video2.videoWidth, "x", video2.videoHeight);
8119
8122
  setOverlayCoordSpace({
8120
8123
  width: video2.videoWidth,
8121
8124
  height: video2.videoHeight
@@ -8148,8 +8151,7 @@ var StormcloudVideoPlayerComponent = import_react2.default.memo(function(props)
8148
8151
  }, [
8149
8152
  swirlProjectId,
8150
8153
  criticalPropsKey,
8151
- swirlOverlayCoordinateSpace,
8152
- overlays
8154
+ swirlOverlayCoordinateSpace
8153
8155
  ]);
8154
8156
  (0, import_react2.useEffect)(function() {
8155
8157
  if (!playerRef.current) return;
@@ -8576,11 +8578,11 @@ var StormcloudVideoPlayerComponent = import_react2.default.memo(function(props)
8576
8578
  }, restVideoAttrs), {
8577
8579
  children: children
8578
8580
  })),
8579
- displayOverlays.length > 0 && !adStatus.showAds && !overlaysDisabled && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(OverlayRenderer, {
8581
+ displayOverlays.length > 0 && !adStatus.showAds && !overlaysDisabled && overlayCoordSpace && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(OverlayRenderer, {
8580
8582
  overlays: displayOverlays,
8581
8583
  currentTime: currentTime,
8582
8584
  videoRef: videoRef,
8583
- coordinateSpace: swirlOverlayCoordinateSpace && swirlOverlayCoordinateSpace.width > 0 && swirlOverlayCoordinateSpace.height > 0 ? swirlOverlayCoordinateSpace : null,
8585
+ coordinateSpace: overlayCoordSpace,
8584
8586
  showcaseMode: !!swirlShowcaseDemo
8585
8587
  }),
8586
8588
  (isLoading || isBuffering) && !hideLoadingIndicator && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", {