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.
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]);
|
|
@@ -8884,7 +8884,7 @@ var StormcloudVideoPlayerComponent = React2.memo(function(props) {
|
|
|
8884
8884
|
size: Math.max(14, 18 * responsiveScale)
|
|
8885
8885
|
})
|
|
8886
8886
|
}),
|
|
8887
|
-
swirlProjectId && (showAiContextControl !== null && showAiContextControl !== void 0 ? showAiContextControl : true) && /* @__PURE__ */ jsx2("button", {
|
|
8887
|
+
(swirlProjectId || adcisionChannelId) && (showAiContextControl !== null && showAiContextControl !== void 0 ? showAiContextControl : true) && /* @__PURE__ */ jsx2("button", {
|
|
8888
8888
|
className: "sc-ctrl-btn",
|
|
8889
8889
|
onClick: function onClick() {
|
|
8890
8890
|
setShowAiPanel(function(prev) {
|
|
@@ -8906,7 +8906,7 @@ var StormcloudVideoPlayerComponent = React2.memo(function(props) {
|
|
|
8906
8906
|
title: showAiPanel ? "Hide AI context" : "Show AI context",
|
|
8907
8907
|
children: "AI"
|
|
8908
8908
|
}),
|
|
8909
|
-
|
|
8909
|
+
(showDebugControl !== null && showDebugControl !== void 0 ? showDebugControl : true) && /* @__PURE__ */ jsx2("button", {
|
|
8910
8910
|
className: "sc-ctrl-btn",
|
|
8911
8911
|
onClick: function onClick() {
|
|
8912
8912
|
setShowDebugPanel(function(prev) {
|
|
@@ -9223,7 +9223,7 @@ var StormcloudVideoPlayerComponent = React2.memo(function(props) {
|
|
|
9223
9223
|
size: Math.max(14, 18 * responsiveScale)
|
|
9224
9224
|
})
|
|
9225
9225
|
}),
|
|
9226
|
-
swirlProjectId && (showAiContextControl !== null && showAiContextControl !== void 0 ? showAiContextControl : true) && /* @__PURE__ */ jsx2("button", {
|
|
9226
|
+
(swirlProjectId || adcisionChannelId) && (showAiContextControl !== null && showAiContextControl !== void 0 ? showAiContextControl : true) && /* @__PURE__ */ jsx2("button", {
|
|
9227
9227
|
className: "sc-ctrl-btn",
|
|
9228
9228
|
onClick: function onClick() {
|
|
9229
9229
|
setShowAiPanel(function(prev) {
|
|
@@ -9245,7 +9245,7 @@ var StormcloudVideoPlayerComponent = React2.memo(function(props) {
|
|
|
9245
9245
|
title: showAiPanel ? "Hide AI context" : "Show AI context",
|
|
9246
9246
|
children: "AI"
|
|
9247
9247
|
}),
|
|
9248
|
-
|
|
9248
|
+
(showDebugControl !== null && showDebugControl !== void 0 ? showDebugControl : true) && /* @__PURE__ */ jsx2("button", {
|
|
9249
9249
|
className: "sc-ctrl-btn",
|
|
9250
9250
|
onClick: function onClick() {
|
|
9251
9251
|
setShowDebugPanel(function(prev) {
|