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 345971c..884faa6 100644 --- a/code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.jsx +++ b/code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.jsx @@ -462,8 +462,8 @@ const VideoPlay = ({ dispatch, actions, id: containerId, // 视频容器ID accessToken: videoObj?.yingshiToken, url: videoObj.playUrlSd, - width: -10, - height: -10, + width: setupSize('width'), + height: setupSize('height'), handleSuccess: (e) => { //播放成功 setRoll(true) setVideoMask(false) @@ -479,7 +479,7 @@ const VideoPlay = ({ dispatch, actions, }) setPlayer(player) yingshiPlayer.current = player - }, 3000) + }, 0) } } @@ -567,7 +567,7 @@ const VideoPlay = ({ dispatch, actions, <>