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.js CHANGED
@@ -7474,14 +7474,11 @@ var StormcloudVideoPlayerComponent = React2.memo(function(props) {
7474
7474
  }
7475
7475
  setShowSpeedMenu(false);
7476
7476
  };
7477
- var isHlsStream = (src === null || src === void 0 ? void 0 : src.toLowerCase().includes(".m3u8")) || (src === null || src === void 0 ? void 0 : src.toLowerCase().includes("/hls/"));
7478
- var shouldShowEnhancedControls = showCustomControls && (isHlsStream ? allowNativeHls : true);
7479
7477
  var analyzerPanelWidth = Math.min(420, Math.max(320, viewportWidth * 0.41));
7480
7478
  var analyzerPanelHeight = isPortrait ? "52vh" : "420px";
7481
7479
  var analyzerPanelMaxHeight = "60vh";
7482
7480
  var panelGap = Math.max(8, 12 * responsiveScale);
7483
7481
  var shouldStackPanels = isPortrait || viewportWidth < 980;
7484
- var debugPanelBottomOffset = shouldShowEnhancedControls ? Math.max(74, 92 * responsiveScale) : Math.max(52, 58 * responsiveScale);
7485
7482
  var panelBaseRight = PANEL_BASE_RIGHT_OFFSET * responsiveScale;
7486
7483
  var debugPanelRightOffset = showAiPanel && !shouldStackPanels ? panelBaseRight + analyzerPanelWidth + panelGap : panelBaseRight;
7487
7484
  useEffect2(function() {
@@ -7504,6 +7501,9 @@ var StormcloudVideoPlayerComponent = React2.memo(function(props) {
7504
7501
  adcisionChannelId
7505
7502
  ]);
7506
7503
  var effectiveSrc = adcisionChannelId ? adcisionSrc : src;
7504
+ var isHlsStream = (effectiveSrc === null || effectiveSrc === void 0 ? void 0 : effectiveSrc.toLowerCase().includes(".m3u8")) || (effectiveSrc === null || effectiveSrc === void 0 ? void 0 : effectiveSrc.toLowerCase().includes("/hls/"));
7505
+ var shouldShowEnhancedControls = showCustomControls && (isHlsStream ? allowNativeHls : true);
7506
+ var debugPanelBottomOffset = shouldShowEnhancedControls ? Math.max(74, 92 * responsiveScale) : Math.max(52, 58 * responsiveScale);
7507
7507
  var criticalPropsKey = useMemo2(function() {
7508
7508
  var baseParts = CRITICAL_PROPS.map(function(prop) {
7509
7509
  return prop === "src" ? "src:".concat(effectiveSrc) : "".concat(prop, ":").concat(props[prop]);