stormcloud-video-player 0.7.19 → 0.7.20
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
|
@@ -7640,14 +7640,11 @@ var StormcloudVideoPlayerComponent = import_react2.default.memo(function(props)
|
|
|
7640
7640
|
}
|
|
7641
7641
|
setShowSpeedMenu(false);
|
|
7642
7642
|
};
|
|
7643
|
-
var isHlsStream = (src === null || src === void 0 ? void 0 : src.toLowerCase().includes(".m3u8")) || (src === null || src === void 0 ? void 0 : src.toLowerCase().includes("/hls/"));
|
|
7644
|
-
var shouldShowEnhancedControls = showCustomControls && (isHlsStream ? allowNativeHls : true);
|
|
7645
7643
|
var analyzerPanelWidth = Math.min(420, Math.max(320, viewportWidth * 0.41));
|
|
7646
7644
|
var analyzerPanelHeight = isPortrait ? "52vh" : "420px";
|
|
7647
7645
|
var analyzerPanelMaxHeight = "60vh";
|
|
7648
7646
|
var panelGap = Math.max(8, 12 * responsiveScale);
|
|
7649
7647
|
var shouldStackPanels = isPortrait || viewportWidth < 980;
|
|
7650
|
-
var debugPanelBottomOffset = shouldShowEnhancedControls ? Math.max(74, 92 * responsiveScale) : Math.max(52, 58 * responsiveScale);
|
|
7651
7648
|
var panelBaseRight = PANEL_BASE_RIGHT_OFFSET * responsiveScale;
|
|
7652
7649
|
var debugPanelRightOffset = showAiPanel && !shouldStackPanels ? panelBaseRight + analyzerPanelWidth + panelGap : panelBaseRight;
|
|
7653
7650
|
(0, import_react2.useEffect)(function() {
|
|
@@ -7670,6 +7667,9 @@ var StormcloudVideoPlayerComponent = import_react2.default.memo(function(props)
|
|
|
7670
7667
|
adcisionChannelId
|
|
7671
7668
|
]);
|
|
7672
7669
|
var effectiveSrc = adcisionChannelId ? adcisionSrc : src;
|
|
7670
|
+
var isHlsStream = (effectiveSrc === null || effectiveSrc === void 0 ? void 0 : effectiveSrc.toLowerCase().includes(".m3u8")) || (effectiveSrc === null || effectiveSrc === void 0 ? void 0 : effectiveSrc.toLowerCase().includes("/hls/"));
|
|
7671
|
+
var shouldShowEnhancedControls = showCustomControls && (isHlsStream ? allowNativeHls : true);
|
|
7672
|
+
var debugPanelBottomOffset = shouldShowEnhancedControls ? Math.max(74, 92 * responsiveScale) : Math.max(52, 58 * responsiveScale);
|
|
7673
7673
|
var criticalPropsKey = (0, import_react2.useMemo)(function() {
|
|
7674
7674
|
var baseParts = CRITICAL_PROPS.map(function(prop) {
|
|
7675
7675
|
return prop === "src" ? "src:".concat(effectiveSrc) : "".concat(prop, ":").concat(props[prop]);
|