Browse Source

setHideFullScreenBut

release_1.3.0
巴林闲侠 2 years ago
parent
commit
7c5272ccda
  1. 7
      code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.jsx

7
code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.jsx

@ -95,6 +95,7 @@ const VideoPlay = ({
const [disappear, setDisappear] = useState(false) //
const [disappears, setDisappears] = useState(false) //
const [hideFullScreenBut, setHideFullScreenBut] = useState(false)
// ifream
const [yingshiPrepare, setYingshiPrepare] = useState('')
@ -187,6 +188,7 @@ const VideoPlay = ({
}
}, {
key: 'fullScreen',
hide: hideFullScreenBut,
click: (fullNoChange = false) => {
changeSelectState('fullScreen')
let videoplay = document.getElementById("vcmp_videoplay" + videoObj.id)
@ -237,6 +239,7 @@ const VideoPlay = ({
//
screenfull.on('change', (e) => {
let curFullElement = screenfull.element
console.log(curFullElement);
if (curFullElement && curFullElement.id == 'vcmp_videoplay' + videoObj.id) {
if (e?.path[0]?.id?.includes("vcmp_videoplay")) {
if (screenfull.isFullscreen && operationRef.current && !operationRef.current['fullScreen'].select) {
@ -249,8 +252,12 @@ const VideoPlay = ({
// yingshiPlayer.current.reSize(size?.width, size?.height);
}
}
setHideFullScreenBut(false)
}
} else if (curFullElement && curFullElement.id == 'rearProjection') {
setHideFullScreenBut(true)
} else {
setHideFullScreenBut(false)
setTimeout(() => {
if (operationRef.current.fullScreen.select) {
operation.find(cf => cf.key == 'fullScreen').click(true)

Loading…
Cancel
Save