stormcloud-video-player 0.7.18 → 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.
@@ -7462,14 +7462,11 @@ var StormcloudVideoPlayerComponent = import_react2.default.memo(function(props)
7462
7462
  }
7463
7463
  setShowSpeedMenu(false);
7464
7464
  };
7465
- var isHlsStream = (src === null || src === void 0 ? void 0 : src.toLowerCase().includes(".m3u8")) || (src === null || src === void 0 ? void 0 : src.toLowerCase().includes("/hls/"));
7466
- var shouldShowEnhancedControls = showCustomControls && (isHlsStream ? allowNativeHls : true);
7467
7465
  var analyzerPanelWidth = Math.min(420, Math.max(320, viewportWidth * 0.41));
7468
7466
  var analyzerPanelHeight = isPortrait ? "52vh" : "420px";
7469
7467
  var analyzerPanelMaxHeight = "60vh";
7470
7468
  var panelGap = Math.max(8, 12 * responsiveScale);
7471
7469
  var shouldStackPanels = isPortrait || viewportWidth < 980;
7472
- var debugPanelBottomOffset = shouldShowEnhancedControls ? Math.max(74, 92 * responsiveScale) : Math.max(52, 58 * responsiveScale);
7473
7470
  var panelBaseRight = PANEL_BASE_RIGHT_OFFSET * responsiveScale;
7474
7471
  var debugPanelRightOffset = showAiPanel && !shouldStackPanels ? panelBaseRight + analyzerPanelWidth + panelGap : panelBaseRight;
7475
7472
  (0, import_react2.useEffect)(function() {
@@ -7492,6 +7489,9 @@ var StormcloudVideoPlayerComponent = import_react2.default.memo(function(props)
7492
7489
  adcisionChannelId
7493
7490
  ]);
7494
7491
  var effectiveSrc = adcisionChannelId ? adcisionSrc : src;
7492
+ var isHlsStream = (effectiveSrc === null || effectiveSrc === void 0 ? void 0 : effectiveSrc.toLowerCase().includes(".m3u8")) || (effectiveSrc === null || effectiveSrc === void 0 ? void 0 : effectiveSrc.toLowerCase().includes("/hls/"));
7493
+ var shouldShowEnhancedControls = showCustomControls && (isHlsStream ? allowNativeHls : true);
7494
+ var debugPanelBottomOffset = shouldShowEnhancedControls ? Math.max(74, 92 * responsiveScale) : Math.max(52, 58 * responsiveScale);
7495
7495
  var criticalPropsKey = (0, import_react2.useMemo)(function() {
7496
7496
  var baseParts = CRITICAL_PROPS.map(function(prop) {
7497
7497
  return prop === "src" ? "src:".concat(effectiveSrc) : "".concat(prop, ":").concat(props[prop]);
@@ -8872,7 +8872,7 @@ var StormcloudVideoPlayerComponent = import_react2.default.memo(function(props)
8872
8872
  size: Math.max(14, 18 * responsiveScale)
8873
8873
  })
8874
8874
  }),
8875
- swirlProjectId && (showAiContextControl !== null && showAiContextControl !== void 0 ? showAiContextControl : true) && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("button", {
8875
+ (swirlProjectId || adcisionChannelId) && (showAiContextControl !== null && showAiContextControl !== void 0 ? showAiContextControl : true) && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("button", {
8876
8876
  className: "sc-ctrl-btn",
8877
8877
  onClick: function onClick() {
8878
8878
  setShowAiPanel(function(prev) {
@@ -8894,7 +8894,7 @@ var StormcloudVideoPlayerComponent = import_react2.default.memo(function(props)
8894
8894
  title: showAiPanel ? "Hide AI context" : "Show AI context",
8895
8895
  children: "AI"
8896
8896
  }),
8897
- debugAdTiming && (showDebugControl !== null && showDebugControl !== void 0 ? showDebugControl : true) && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("button", {
8897
+ (showDebugControl !== null && showDebugControl !== void 0 ? showDebugControl : true) && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("button", {
8898
8898
  className: "sc-ctrl-btn",
8899
8899
  onClick: function onClick() {
8900
8900
  setShowDebugPanel(function(prev) {
@@ -9211,7 +9211,7 @@ var StormcloudVideoPlayerComponent = import_react2.default.memo(function(props)
9211
9211
  size: Math.max(14, 18 * responsiveScale)
9212
9212
  })
9213
9213
  }),
9214
- swirlProjectId && (showAiContextControl !== null && showAiContextControl !== void 0 ? showAiContextControl : true) && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("button", {
9214
+ (swirlProjectId || adcisionChannelId) && (showAiContextControl !== null && showAiContextControl !== void 0 ? showAiContextControl : true) && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("button", {
9215
9215
  className: "sc-ctrl-btn",
9216
9216
  onClick: function onClick() {
9217
9217
  setShowAiPanel(function(prev) {
@@ -9233,7 +9233,7 @@ var StormcloudVideoPlayerComponent = import_react2.default.memo(function(props)
9233
9233
  title: showAiPanel ? "Hide AI context" : "Show AI context",
9234
9234
  children: "AI"
9235
9235
  }),
9236
- debugAdTiming && (showDebugControl !== null && showDebugControl !== void 0 ? showDebugControl : true) && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("button", {
9236
+ (showDebugControl !== null && showDebugControl !== void 0 ? showDebugControl : true) && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("button", {
9237
9237
  className: "sc-ctrl-btn",
9238
9238
  onClick: function onClick() {
9239
9239
  setShowDebugPanel(function(prev) {