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.cjs
CHANGED
|
@@ -8282,6 +8282,7 @@ var StormcloudVideoPlayerComponent = import_react2.default.memo(function(props)
|
|
|
8282
8282
|
var _player_getMinHlsResolution;
|
|
8283
8283
|
var fixed = swirlOverlayCoordinateSpace;
|
|
8284
8284
|
if (fixed && fixed.width > 0 && fixed.height > 0) {
|
|
8285
|
+
console.debug("[StormcloudVideoPlayer] overlay coord space (prop):", fixed.width, "x", fixed.height);
|
|
8285
8286
|
setOverlayCoordSpace({
|
|
8286
8287
|
width: fixed.width,
|
|
8287
8288
|
height: fixed.height
|
|
@@ -8292,6 +8293,7 @@ var StormcloudVideoPlayerComponent = import_react2.default.memo(function(props)
|
|
|
8292
8293
|
if (!player) return false;
|
|
8293
8294
|
var minRes = (_player_getMinHlsResolution = player.getMinHlsResolution) === null || _player_getMinHlsResolution === void 0 ? void 0 : _player_getMinHlsResolution.call(player);
|
|
8294
8295
|
if (minRes && minRes.width > 0 && minRes.height > 0) {
|
|
8296
|
+
console.debug("[StormcloudVideoPlayer] overlay coord space (minHlsResolution):", minRes.width, "x", minRes.height);
|
|
8295
8297
|
setOverlayCoordSpace({
|
|
8296
8298
|
width: minRes.width,
|
|
8297
8299
|
height: minRes.height
|
|
@@ -8300,6 +8302,7 @@ var StormcloudVideoPlayerComponent = import_react2.default.memo(function(props)
|
|
|
8300
8302
|
}
|
|
8301
8303
|
var video2 = player.videoElement;
|
|
8302
8304
|
if (video2 && video2.videoWidth > 0 && video2.videoHeight > 0) {
|
|
8305
|
+
console.debug("[StormcloudVideoPlayer] overlay coord space (videoNative):", video2.videoWidth, "x", video2.videoHeight);
|
|
8303
8306
|
setOverlayCoordSpace({
|
|
8304
8307
|
width: video2.videoWidth,
|
|
8305
8308
|
height: video2.videoHeight
|
|
@@ -8332,8 +8335,7 @@ var StormcloudVideoPlayerComponent = import_react2.default.memo(function(props)
|
|
|
8332
8335
|
}, [
|
|
8333
8336
|
swirlProjectId,
|
|
8334
8337
|
criticalPropsKey,
|
|
8335
|
-
swirlOverlayCoordinateSpace
|
|
8336
|
-
overlays
|
|
8338
|
+
swirlOverlayCoordinateSpace
|
|
8337
8339
|
]);
|
|
8338
8340
|
(0, import_react2.useEffect)(function() {
|
|
8339
8341
|
if (!playerRef.current) return;
|
|
@@ -8760,11 +8762,11 @@ var StormcloudVideoPlayerComponent = import_react2.default.memo(function(props)
|
|
|
8760
8762
|
}, restVideoAttrs), {
|
|
8761
8763
|
children: children
|
|
8762
8764
|
})),
|
|
8763
|
-
displayOverlays.length > 0 && !adStatus.showAds && !overlaysDisabled && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(OverlayRenderer, {
|
|
8765
|
+
displayOverlays.length > 0 && !adStatus.showAds && !overlaysDisabled && overlayCoordSpace && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(OverlayRenderer, {
|
|
8764
8766
|
overlays: displayOverlays,
|
|
8765
8767
|
currentTime: currentTime,
|
|
8766
8768
|
videoRef: videoRef,
|
|
8767
|
-
coordinateSpace:
|
|
8769
|
+
coordinateSpace: overlayCoordSpace,
|
|
8768
8770
|
showcaseMode: !!swirlShowcaseDemo
|
|
8769
8771
|
}),
|
|
8770
8772
|
(isLoading || isBuffering) && !hideLoadingIndicator && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", {
|