|
|
@ -164,7 +164,7 @@ const VideoPlay = ({ |
|
|
|
key: 'fullScreen', |
|
|
|
click: () => { |
|
|
|
changeSelectState('fullScreen') |
|
|
|
let videoplay = document.getElementsByClassName('vcmp_video'+videoObj.id) |
|
|
|
let videoplay = document.getElementById('vcmp_videoplay') |
|
|
|
if (screenfull.isEnabled) { |
|
|
|
screenfull.toggle(videoplay); |
|
|
|
if (videoObj?.type == 'yingshi' && player) { |
|
|
@ -209,7 +209,7 @@ const VideoPlay = ({ |
|
|
|
|
|
|
|
// 全屏状态监听 |
|
|
|
screenfull.on('change', (e) => { |
|
|
|
if (e?.path[0]?.id=="vcmp_videoplay"+videoObj.id) { |
|
|
|
if (e?.path[0]?.id=="vcmp_videoplay") { |
|
|
|
if (screenfull.isFullscreen && operationRef.current && !operationRef.current['fullScreen'].select) { |
|
|
|
changeSelectState('fullScreen') |
|
|
|
} |
|
|
@ -436,9 +436,9 @@ const VideoPlay = ({ |
|
|
|
|
|
|
|
return ( |
|
|
|
<> |
|
|
|
<div className={'vcmp_videoplay'+videoObj.id+" my_vcmp_videoplay"} style={{ width: size?.parentWidth || '100%', height: size?.parentHeight || '100%', backgroundColor: 'black', overflow: 'hidden', display: 'flex', alignItems: 'center', justifyContent: 'center', }}> |
|
|
|
<div id="vcmp_videoplay" className={'vcmp_video'+videoObj.id} style={{ position: 'relative', height: size?.height || '100%', width: size?.width || '100%', minWidth: 240, minHeight: 135, overflow: 'hidden' }}> {/* 顶部信息 */} |
|
|
|
<VideoHeader |
|
|
|
<div className="vcmp_videoplay " style={{ width: size?.parentWidth || '100%', height: size?.parentHeight || '100%', backgroundColor: 'black', overflow: 'hidden', display: 'flex', alignItems: 'center', justifyContent: 'center', }}> |
|
|
|
<div id="vcmp_videoplay" style={{ position: 'relative', height: size?.height || '100%', width: size?.width || '100%', minWidth: 240, minHeight: 135, overflow: 'hidden' }}> |
|
|
|
<VideoHeader |
|
|
|
operationState={operationState} changeSelectState={changeSelectState} |
|
|
|
histroyTime={histroyTime} |
|
|
|
setoperationState={setoperationState} name={name} |
|
|
|