diff --git a/code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoOperationCloudControl.jsx b/code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoOperationCloudControl.jsx
index dce0e80..32f6573 100644
--- a/code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoOperationCloudControl.jsx
+++ b/code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoOperationCloudControl.jsx
@@ -14,7 +14,7 @@ const VideoOperationCloudControl = ({
gbptz(ac, videoObj, iotVideoServer)
}
}
- const vcmpVideo = document.getElementsByClassName('vcmp_video'+videoObj.id)?.offsetHeight;
+ const vcmpVideo = document.getElementById('vcmp_videoplay')?.offsetHeight;
console.log(vcmpVideo);
return (
document.getElementsByClassName('vcmp_video'+videoObj.id),
+ getPopupContainer: () => document.getElementById('vcmp_videoplay'),
});
return (
diff --git a/code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoOperationTalk.jsx b/code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoOperationTalk.jsx
index 10ba1cf..cc8865c 100644
--- a/code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoOperationTalk.jsx
+++ b/code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoOperationTalk.jsx
@@ -15,7 +15,7 @@ const VideoOperationTalk = ({
const [recordState, setRecordState] = useState(RecordState.NONE)
const ToastInCustomContainer = ToastFactory.create({
- getPopupContainer: () => document.getElementsByClassName('vcmp_video'+videoObj.id),
+ getPopupContainer: () => document.getElementById('vcmp_videoplay'),
});
useEffect(() => {
@@ -57,7 +57,7 @@ const VideoOperationTalk = ({
}
}
}
- const vcmpVideo = document.getElementsByClassName('vcmp_video'+videoObj.id)?.offsetHeight;
+ const vcmpVideo = document.getElementById('vcmp_videoplay')?.offsetHeight;
return (
{
changeSelectState('fullScreen')
- let videoplay = document.getElementsByClassName('vcmp_video'+videoObj.id)
+ let videoplay = document.getElementById('vcmp_videoplay')
if (screenfull.isEnabled) {
screenfull.toggle(videoplay);
if (videoObj?.type == 'yingshi' && player) {
@@ -209,7 +209,7 @@ const VideoPlay = ({
// 全屏状态监听
screenfull.on('change', (e) => {
- if (e?.path[0]?.id=="vcmp_videoplay"+videoObj.id) {
+ if (e?.path[0]?.id=="vcmp_videoplay") {
if (screenfull.isFullscreen && operationRef.current && !operationRef.current['fullScreen'].select) {
changeSelectState('fullScreen')
}
@@ -436,9 +436,9 @@ const VideoPlay = ({
return (
<>
-