|
|
@ -208,13 +208,14 @@ const VideoPlay = ({ |
|
|
|
operationRef.current = nextOperationState |
|
|
|
|
|
|
|
// 全屏状态监听 |
|
|
|
screenfull.on('change', () => { |
|
|
|
console.log(screenfull); |
|
|
|
if (screenfull.isFullscreen && operationRef.current && !operationRef.current['fullScreen'].select) { |
|
|
|
changeSelectState('fullScreen') |
|
|
|
} |
|
|
|
if (!screenfull.isFullscreen && operationRef.current && operationRef.current['fullScreen'].select) { |
|
|
|
changeSelectState('fullScreen') |
|
|
|
screenfull.on('change', (e) => { |
|
|
|
if (e?.path[0]?.id=="vcmp_videoplay") { |
|
|
|
if (screenfull.isFullscreen && operationRef.current && !operationRef.current['fullScreen'].select) { |
|
|
|
changeSelectState('fullScreen') |
|
|
|
} |
|
|
|
if (!screenfull.isFullscreen && operationRef.current && operationRef.current['fullScreen'].select) { |
|
|
|
changeSelectState('fullScreen') |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
// const resize_ = () => { |
|
|
|