|
|
@ -281,7 +281,6 @@ const VideoPlay = ({ |
|
|
|
}, [processDisX]) |
|
|
|
|
|
|
|
const createPlay = async () => { |
|
|
|
console.log(size); |
|
|
|
if (videoObj.type != 'yingshi') { |
|
|
|
try { |
|
|
|
// const inviteRes = await IotVideoServerRequest.get(VideoServeApi.invite, { |
|
|
@ -403,16 +402,16 @@ const VideoPlay = ({ |
|
|
|
videoHeight = (containerWidth / 16) * 9 |
|
|
|
} |
|
|
|
} |
|
|
|
setSize({ parentWidth: containerWidth, parentHeight: containerHeight, width: videoWidth, height: videoHeight }) |
|
|
|
|
|
|
|
if (videoObj.type == 'yingshi' && player) { |
|
|
|
player.reSize(videoWidth, videoHeight) |
|
|
|
} |
|
|
|
} else { |
|
|
|
setSize({ parentWidth: sizeWh?.parentWidth, parentHeight: sizeWh?.parentHeight, width: width || sizeWh?.parentWidth, height: height || sizeWh?.parentHeight }) |
|
|
|
if (videoObj.type == 'yingshi' && player) { |
|
|
|
player.reSize(width || sizeWh?.parentWidth, height || sizeWh?.parentHeight) |
|
|
|
} |
|
|
|
} |
|
|
|
setSize({ parentWidth: containerWidth, parentHeight: containerHeight, width: videoWidth, height: videoHeight }) |
|
|
|
return data == 'width' ? videoWidth : data == 'height' ? videoHeight : '' |
|
|
|
} |
|
|
|
} |
|
|
@ -458,7 +457,7 @@ const VideoPlay = ({ |
|
|
|
// /> |
|
|
|
} |
|
|
|
<div id={containerId} style={{ height: '100%', width: '100%', }}></div> |
|
|
|
{videoMask ? <div style={{ height: size?.height || '100%', width: size?.width || '100%', minWidth: 400, minHeight: 225, overflow: 'hidden', position: 'absolute', top: '0', left: '0', zIndex: 99, backgroundColor: 'rgba(255,255,255,0.65)' }}>hhktyjr6tyr5</div> : ''} |
|
|
|
{videoMask ? <div style={{ height: size?.height || '100%', width: size?.width || '100%', minWidth: 400, minHeight: 225, overflow: 'hidden', position: 'absolute', top: '0', left: '0', zIndex: 99, backgroundColor: 'rgba(255,255,255,0.65)' }}></div> : ''} |
|
|
|
|
|
|
|
{/* 下方操作栏 */} |
|
|
|
{/* 显示操作功能条件(宽高) */} |
|
|
|