|
@ -95,6 +95,7 @@ const VideoPlay = ({ |
|
|
const [disappear, setDisappear] = useState(false) // 视频消失 |
|
|
const [disappear, setDisappear] = useState(false) // 视频消失 |
|
|
const [disappears, setDisappears] = useState(false) // 视频消失 |
|
|
const [disappears, setDisappears] = useState(false) // 视频消失 |
|
|
|
|
|
|
|
|
|
|
|
const [hideFullScreenBut, setHideFullScreenBut] = useState(false) |
|
|
|
|
|
|
|
|
// 标记萤石操作中,等待ifream返回信息后清空 |
|
|
// 标记萤石操作中,等待ifream返回信息后清空 |
|
|
const [yingshiPrepare, setYingshiPrepare] = useState('') |
|
|
const [yingshiPrepare, setYingshiPrepare] = useState('') |
|
@ -187,6 +188,7 @@ const VideoPlay = ({ |
|
|
} |
|
|
} |
|
|
}, { |
|
|
}, { |
|
|
key: 'fullScreen', |
|
|
key: 'fullScreen', |
|
|
|
|
|
hide: hideFullScreenBut, |
|
|
click: (fullNoChange = false) => { |
|
|
click: (fullNoChange = false) => { |
|
|
changeSelectState('fullScreen') |
|
|
changeSelectState('fullScreen') |
|
|
let videoplay = document.getElementById("vcmp_videoplay" + videoObj.id) |
|
|
let videoplay = document.getElementById("vcmp_videoplay" + videoObj.id) |
|
@ -237,6 +239,7 @@ const VideoPlay = ({ |
|
|
// 全屏状态监听 |
|
|
// 全屏状态监听 |
|
|
screenfull.on('change', (e) => { |
|
|
screenfull.on('change', (e) => { |
|
|
let curFullElement = screenfull.element |
|
|
let curFullElement = screenfull.element |
|
|
|
|
|
console.log(curFullElement); |
|
|
if (curFullElement && curFullElement.id == 'vcmp_videoplay' + videoObj.id) { |
|
|
if (curFullElement && curFullElement.id == 'vcmp_videoplay' + videoObj.id) { |
|
|
if (e?.path[0]?.id?.includes("vcmp_videoplay")) { |
|
|
if (e?.path[0]?.id?.includes("vcmp_videoplay")) { |
|
|
if (screenfull.isFullscreen && operationRef.current && !operationRef.current['fullScreen'].select) { |
|
|
if (screenfull.isFullscreen && operationRef.current && !operationRef.current['fullScreen'].select) { |
|
@ -249,8 +252,12 @@ const VideoPlay = ({ |
|
|
// yingshiPlayer.current.reSize(size?.width, size?.height); |
|
|
// yingshiPlayer.current.reSize(size?.width, size?.height); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
setHideFullScreenBut(false) |
|
|
} |
|
|
} |
|
|
|
|
|
} else if (curFullElement && curFullElement.id == 'rearProjection') { |
|
|
|
|
|
setHideFullScreenBut(true) |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
setHideFullScreenBut(false) |
|
|
setTimeout(() => { |
|
|
setTimeout(() => { |
|
|
if (operationRef.current.fullScreen.select) { |
|
|
if (operationRef.current.fullScreen.select) { |
|
|
operation.find(cf => cf.key == 'fullScreen').click(true) |
|
|
operation.find(cf => cf.key == 'fullScreen').click(true) |
|
|