|
|
@ -208,14 +208,15 @@ const VideoPlay = ({ |
|
|
|
operationRef.current = nextOperationState |
|
|
|
|
|
|
|
// 全屏状态监听 |
|
|
|
screenfull.on('change', () => { |
|
|
|
console.log(screenfull); |
|
|
|
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_ = () => { |
|
|
|
// const VideoLocal = document.getElementById('vcmp_videoplay') |
|
|
|