Browse Source

时间设置 条件修改

dev_trial
wenlele 2 years ago
parent
commit
ac3d85184e
  1. 6
      code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoOperation.jsx
  2. 2
      code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.jsx
  3. 2
      code/VideoAccess-VCMP/web/client/src/sections/monitor/containers/videoPlayCross.jsx

6
code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoOperation.jsx

@ -34,8 +34,8 @@ const VideoOperation = ({
showTime_, showTime_,
videoAfter, videoAfter,
showTimeSelect, showTimeSelect,
setShowTimeSelect setShowTimeSelect,
microAppVideo
}) => { }) => {
const butStyle = { const butStyle = {
@ -128,7 +128,7 @@ const VideoOperation = ({
<VideoOperationSpeed butStyle={butStyle} /> <VideoOperationSpeed butStyle={butStyle} />
: '' : ''
} }
{vcmp_videoplayHeight > 359 && vcmp_videoplaWidth > 599 ? <div style={butStyle} onClick={() => { {microAppVideo || vcmp_videoplayHeight > 359 && vcmp_videoplaWidth > 599 ? <div style={butStyle} onClick={() => {
setShowTimeSelect(!showTimeSelect) setShowTimeSelect(!showTimeSelect)
}}>时间设置</div> : ""} }}>时间设置</div> : ""}
</div> </div>

2
code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.jsx

@ -26,6 +26,7 @@ const VideoPlay = ({ dispatch, actions,
global, global,
videoStyle, videoStyle,
changeData, changeData,
microAppVideo,
videoObj, videoObj,
sizeWh, sizeWh,
slideDown, // slideDown, //
@ -631,6 +632,7 @@ const VideoPlay = ({ dispatch, actions,
playBackTime={playBackTime.current} playBackTime={playBackTime.current}
showTimeSelect={showTimeSelect} showTimeSelect={showTimeSelect}
setShowTimeSelect={setShowTimeSelect} setShowTimeSelect={setShowTimeSelect}
microAppVideo={microAppVideo}
/> : "" /> : ""
} }
</div> </div>

2
code/VideoAccess-VCMP/web/client/src/sections/monitor/containers/videoPlayCross.jsx

@ -82,7 +82,7 @@ const VideoPlayCross = (props) => {
<> <>
{history?.location?.query?.video ? {history?.location?.query?.video ?
<div style={{ width: '100%', height: '100%' }}> <div style={{ width: '100%', height: '100%' }}>
{sizeWh && <VideoPlay videoObj={history?.location?.query?.videoObj || {}} sizeWh={sizeWh} />} {sizeWh && <VideoPlay videoObj={history?.location?.query?.videoObj || {}} microAppVideo={history?.location?.query?.video || false} sizeWh={sizeWh} />}
</div> </div>
: videoParams && <VideoPlay {...videoParams} sizeWh={sizeWh} /> : videoParams && <VideoPlay {...videoParams} sizeWh={sizeWh} />

Loading…
Cancel
Save