pb-sxp-ui 1.0.49 → 1.0.50
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/dist/index.cjs +9 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -7
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +1 -1
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +9 -7
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +1 -1
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/VideoWidget/index.js +5 -3
- package/es/core/components/SxpPageRender/index.js +0 -3
- package/lib/core/components/SxpPageRender/VideoWidget/index.js +5 -3
- package/lib/core/components/SxpPageRender/index.js +0 -3
- package/package.json +1 -1
@@ -84,13 +84,15 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex, videoPostCo
|
|
84
84
|
}, [bffEventReport, data, index, isFirstPlay, videoRef]);
|
85
85
|
const handLoadeddata = useCallback(() => {
|
86
86
|
var _a;
|
87
|
-
if (!videoRef ||
|
87
|
+
if (!videoRef || firstFrameSrc || !blur)
|
88
88
|
return;
|
89
89
|
const videoDomRef = document.getElementById('player-container-id_html5_api');
|
90
|
-
if (
|
90
|
+
if (!videoDomRef)
|
91
|
+
return;
|
92
|
+
videoDomRef.style.objectFit = 'contain';
|
93
|
+
if (((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.cover) || !canvasRef || !canvasRef.current || isBgColor)
|
91
94
|
return;
|
92
95
|
const setFrameImg = () => {
|
93
|
-
videoDomRef.style.objectFit = 'contain';
|
94
96
|
const video = videoDomRef;
|
95
97
|
const canvas = canvasRef === null || canvasRef === void 0 ? void 0 : canvasRef.current;
|
96
98
|
const ctx = canvas.getContext('2d');
|
@@ -166,9 +166,6 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
166
166
|
if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.logoUrl) && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowLogo)) {
|
167
167
|
minusHeight += 45;
|
168
168
|
}
|
169
|
-
if (tagList.length > 0) {
|
170
|
-
minusHeight += 45;
|
171
|
-
}
|
172
169
|
return containerHeight - minusHeight;
|
173
170
|
}, [globalConfig, containerHeight, tagList]);
|
174
171
|
const renderLogo = useMemo(() => {
|
@@ -87,13 +87,15 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex, videoPostCo
|
|
87
87
|
}, [bffEventReport, data, index, isFirstPlay, videoRef]);
|
88
88
|
const handLoadeddata = (0, react_1.useCallback)(() => {
|
89
89
|
var _a;
|
90
|
-
if (!videoRef ||
|
90
|
+
if (!videoRef || firstFrameSrc || !blur)
|
91
91
|
return;
|
92
92
|
const videoDomRef = document.getElementById('player-container-id_html5_api');
|
93
|
-
if (
|
93
|
+
if (!videoDomRef)
|
94
|
+
return;
|
95
|
+
videoDomRef.style.objectFit = 'contain';
|
96
|
+
if (((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.cover) || !canvasRef || !canvasRef.current || isBgColor)
|
94
97
|
return;
|
95
98
|
const setFrameImg = () => {
|
96
|
-
videoDomRef.style.objectFit = 'contain';
|
97
99
|
const video = videoDomRef;
|
98
100
|
const canvas = canvasRef === null || canvasRef === void 0 ? void 0 : canvasRef.current;
|
99
101
|
const ctx = canvas.getContext('2d');
|
@@ -169,9 +169,6 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
169
169
|
if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.logoUrl) && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowLogo)) {
|
170
170
|
minusHeight += 45;
|
171
171
|
}
|
172
|
-
if (tagList.length > 0) {
|
173
|
-
minusHeight += 45;
|
174
|
-
}
|
175
172
|
return containerHeight - minusHeight;
|
176
173
|
}, [globalConfig, containerHeight, tagList]);
|
177
174
|
const renderLogo = (0, react_1.useMemo)(() => {
|