Browse Source

测试

dev_trial
wenlele 2 years ago
parent
commit
be6d1a412f
  1. 14
      code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.jsx

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

@ -462,8 +462,8 @@ const VideoPlay = ({ dispatch, actions,
id: containerId, // ID id: containerId, // ID
accessToken: videoObj?.yingshiToken, accessToken: videoObj?.yingshiToken,
url: videoObj.playUrlSd, url: videoObj.playUrlSd,
width: -10, width: setupSize('width'),
height: -10, height: setupSize('height'),
handleSuccess: (e) => { // handleSuccess: (e) => { //
setRoll(true) setRoll(true)
setVideoMask(false) setVideoMask(false)
@ -479,7 +479,7 @@ const VideoPlay = ({ dispatch, actions,
}) })
setPlayer(player) setPlayer(player)
yingshiPlayer.current = player yingshiPlayer.current = player
}, 3000) }, 0)
} }
} }
@ -567,7 +567,7 @@ const VideoPlay = ({ dispatch, actions,
<> <>
<div className='vcmp_videoplay' style={{ width: size?.parentWidth || '100%', height: size?.parentHeight || '100%', backgroundColor: 'black', overflow: 'hidden', display: 'flex', alignItems: 'center', justifyContent: 'center', }}> <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" + videoObj.id} className="vcmp_video" style={{ position: 'relative', height: size?.height || '100%', width: size?.width || '100%', minWidth: 240, minHeight: 135, overflow: 'hidden' }}> <div id={"vcmp_videoplay" + videoObj.id} className="vcmp_video" style={{ position: 'relative', height: size?.height || '100%', width: size?.width || '100%', minWidth: 240, minHeight: 135, overflow: 'hidden' }}>
{/* <VideoHeader <VideoHeader
operationState={operationState} changeSelectState={changeSelectState} operationState={operationState} changeSelectState={changeSelectState}
histroyTime={histroyTime} histroyTime={histroyTime}
setoperationState={setoperationState} name={name} setoperationState={setoperationState} name={name}
@ -585,7 +585,7 @@ const VideoPlay = ({ dispatch, actions,
showTime_={showTime_} showTime_={showTime_}
setShowTime={setShowTime} setShowTime={setShowTime}
setShowTimeSelect={setShowTimeSelect} setShowTimeSelect={setShowTimeSelect}
/> */} />
{/* 视频内容 */} {/* 视频内容 */}
{ {
// <iframe // <iframe
@ -617,7 +617,7 @@ const VideoPlay = ({ dispatch, actions,
{/* 下方操作栏 */} {/* 下方操作栏 */}
{/* 显示操作功能条件(宽高) */} {/* 显示操作功能条件(宽高) */}
{/* {size?.parentWidth > 479 ? {size?.parentWidth > 479 ?
<VideoOperation <VideoOperation
operationState={operationState} operation={operation} operationState={operationState} operation={operation}
voiceDisY={voiceDisY} setVoiceDisY={setVoiceDisY} voiceDisY={voiceDisY} setVoiceDisY={setVoiceDisY}
@ -643,7 +643,7 @@ const VideoPlay = ({ dispatch, actions,
setShowTimeSelect={setShowTimeSelect} setShowTimeSelect={setShowTimeSelect}
microAppVideo={microAppVideo} microAppVideo={microAppVideo}
/> : "" /> : ""
} */} }
</div> </div>
</div> </div>

Loading…
Cancel
Save