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.
package/lib/index.js CHANGED
@@ -8110,6 +8110,7 @@ var StormcloudVideoPlayerComponent = React2.memo(function(props) {
8110
8110
  var _player_getMinHlsResolution;
8111
8111
  var fixed = swirlOverlayCoordinateSpace;
8112
8112
  if (fixed && fixed.width > 0 && fixed.height > 0) {
8113
+ console.debug("[StormcloudVideoPlayer] overlay coord space (prop):", fixed.width, "x", fixed.height);
8113
8114
  setOverlayCoordSpace({
8114
8115
  width: fixed.width,
8115
8116
  height: fixed.height
@@ -8120,6 +8121,7 @@ var StormcloudVideoPlayerComponent = React2.memo(function(props) {
8120
8121
  if (!player) return false;
8121
8122
  var minRes = (_player_getMinHlsResolution = player.getMinHlsResolution) === null || _player_getMinHlsResolution === void 0 ? void 0 : _player_getMinHlsResolution.call(player);
8122
8123
  if (minRes && minRes.width > 0 && minRes.height > 0) {
8124
+ console.debug("[StormcloudVideoPlayer] overlay coord space (minHlsResolution):", minRes.width, "x", minRes.height);
8123
8125
  setOverlayCoordSpace({
8124
8126
  width: minRes.width,
8125
8127
  height: minRes.height
@@ -8128,6 +8130,7 @@ var StormcloudVideoPlayerComponent = React2.memo(function(props) {
8128
8130
  }
8129
8131
  var video2 = player.videoElement;
8130
8132
  if (video2 && video2.videoWidth > 0 && video2.videoHeight > 0) {
8133
+ console.debug("[StormcloudVideoPlayer] overlay coord space (videoNative):", video2.videoWidth, "x", video2.videoHeight);
8131
8134
  setOverlayCoordSpace({
8132
8135
  width: video2.videoWidth,
8133
8136
  height: video2.videoHeight
@@ -8160,8 +8163,7 @@ var StormcloudVideoPlayerComponent = React2.memo(function(props) {
8160
8163
  }, [
8161
8164
  swirlProjectId,
8162
8165
  criticalPropsKey,
8163
- swirlOverlayCoordinateSpace,
8164
- overlays
8166
+ swirlOverlayCoordinateSpace
8165
8167
  ]);
8166
8168
  useEffect2(function() {
8167
8169
  if (!playerRef.current) return;
@@ -8588,11 +8590,11 @@ var StormcloudVideoPlayerComponent = React2.memo(function(props) {
8588
8590
  }, restVideoAttrs), {
8589
8591
  children: children
8590
8592
  })),
8591
- displayOverlays.length > 0 && !adStatus.showAds && !overlaysDisabled && /* @__PURE__ */ jsx2(OverlayRenderer, {
8593
+ displayOverlays.length > 0 && !adStatus.showAds && !overlaysDisabled && overlayCoordSpace && /* @__PURE__ */ jsx2(OverlayRenderer, {
8592
8594
  overlays: displayOverlays,
8593
8595
  currentTime: currentTime,
8594
8596
  videoRef: videoRef,
8595
- coordinateSpace: swirlOverlayCoordinateSpace && swirlOverlayCoordinateSpace.width > 0 && swirlOverlayCoordinateSpace.height > 0 ? swirlOverlayCoordinateSpace : null,
8597
+ coordinateSpace: overlayCoordSpace,
8596
8598
  showcaseMode: !!swirlShowcaseDemo
8597
8599
  }),
8598
8600
  (isLoading || isBuffering) && !hideLoadingIndicator && /* @__PURE__ */ jsxs2("div", {