diff --git a/code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.jsx b/code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.jsx index 5e98334..9c910e6 100644 --- a/code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.jsx +++ b/code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.jsx @@ -281,7 +281,6 @@ const VideoPlay = ({ }, [processDisX]) const createPlay = async () => { - console.log(size); if (videoObj.type != 'yingshi') { try { // const inviteRes = await IotVideoServerRequest.get(VideoServeApi.invite, { @@ -403,16 +402,16 @@ const VideoPlay = ({ videoHeight = (containerWidth / 16) * 9 } } - setSize({ parentWidth: containerWidth, parentHeight: containerHeight, width: videoWidth, height: videoHeight }) + if (videoObj.type == 'yingshi' && player) { player.reSize(videoWidth, videoHeight) } } else { - setSize({ parentWidth: sizeWh?.parentWidth, parentHeight: sizeWh?.parentHeight, width: width || sizeWh?.parentWidth, height: height || sizeWh?.parentHeight }) if (videoObj.type == 'yingshi' && player) { player.reSize(width || sizeWh?.parentWidth, height || sizeWh?.parentHeight) } } + setSize({ parentWidth: containerWidth, parentHeight: containerHeight, width: videoWidth, height: videoHeight }) return data == 'width' ? videoWidth : data == 'height' ? videoHeight : '' } } @@ -458,7 +457,7 @@ const VideoPlay = ({ // /> }
- {videoMask ?