}
- {!disappear ?
: ''}
- {videoMask ?
: ''}
+
+ {videoMask ?
: ''}
{/* 下方操作栏 */}
{/* 显示操作功能条件(宽高) */}
diff --git a/code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.less b/code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.less
index 78352f0..c6282a8 100644
--- a/code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.less
+++ b/code/VideoAccess-VCMP/web/client/src/components/videoPlayer/videoPlay.less
@@ -38,7 +38,7 @@
display: none;
}
-#vcmp_videoplay:hover{
+.vcmp_video:hover{
.animation{
transform: translateY(-40px);
}
diff --git a/code/VideoAccess-VCMP/web/client/src/components/videoPlayer/voiceHeader.jsx b/code/VideoAccess-VCMP/web/client/src/components/videoPlayer/voiceHeader.jsx
index 6913843..2b653b6 100644
--- a/code/VideoAccess-VCMP/web/client/src/components/videoPlayer/voiceHeader.jsx
+++ b/code/VideoAccess-VCMP/web/client/src/components/videoPlayer/voiceHeader.jsx
@@ -10,106 +10,106 @@ import { log } from "ezuikit-js";
const timeFormat = 'YYYY-MM-DD HH:mm:ss'
const VideoHeader = ({ operationState, changeSelectState, setProcessDisX, name, videoObj, showTime, histroyTime, content, roll, videoStyle, player, resolution, playState }) => {
- const time = useRef(moment(showTime || undefined))
- const upTimeInterval = useRef(null)
- const [showTime_, setShowTime] = useState(' ')
+ const time = useRef(moment(showTime || undefined))
+ const upTimeInterval = useRef(null)
+ const [showTime_, setShowTime] = useState(' ')
- const updateTime = () => {
- if (!showTime) {
- setShowTime('')
- clearInterval(upTimeInterval.current)
- return
- }
- time.current = moment(showTime || undefined)
- if (upTimeInterval.current) {
- clearInterval(upTimeInterval.current)
- }
- const upTime = () => {
- time.current.add(1, 's')
- if (operationState && operationState.histroy.select) {
- // setProcessDisX(Math.random() * 300 + 100)
- if (time.current.isSameOrAfter(histroyTime[1])) {
- clearInterval(upTimeInterval.current)
- }
- setProcessDisX(
- time.current.diff(moment(histroyTime[0]), 'seconds') / moment(histroyTime[1]).diff(moment(histroyTime[0]), 'seconds') * document.getElementById('process_point').parentElement.offsetWidth
- )
+ const updateTime = () => {
+ if (!showTime) {
+ setShowTime('')
+ clearInterval(upTimeInterval.current)
+ return
+ }
+ time.current = moment(showTime || undefined)
+ if (upTimeInterval.current) {
+ clearInterval(upTimeInterval.current)
+ }
+ const upTime = () => {
+ time.current.add(1, 's')
+ if (operationState && operationState.histroy.select) {
+ // setProcessDisX(Math.random() * 300 + 100)
+ if (time.current.isSameOrAfter(histroyTime[1])) {
+ clearInterval(upTimeInterval.current)
}
- setShowTime(time.current.format(timeFormat))
- }
- upTime()
- upTimeInterval.current = setInterval(upTime, 1000)
- }
+ setProcessDisX(
+ time.current.diff(moment(histroyTime[0]), 'seconds') / moment(histroyTime[1]).diff(moment(histroyTime[0]), 'seconds') * document.getElementById('process_point').parentElement.offsetWidth
+ )
+ }
+ setShowTime(time.current.format(timeFormat))
+ }
+ upTime()
+ upTimeInterval.current = setInterval(upTime, 1000)
+ }
- useEffect(() => {
- updateTime()
- return () => {
- if (upTimeInterval.current) {
- clearInterval(upTimeInterval.current)
- }
- }
- }, [])
+ useEffect(() => {
+ updateTime()
+ return () => {
+ if (upTimeInterval.current) {
+ clearInterval(upTimeInterval.current)
+ }
+ }
+ }, [])
- useEffect(() => {
- updateTime()
- }, [showTime])
+ useEffect(() => {
+ updateTime()
+ }, [showTime])
- const vcmp_videoplay = document.getElementsByClassName('vcmp_video'+videoObj.id)?.clientHeigh
- const vcmp_videopla = document.getElementsByClassName('vcmp_video'+videoObj.id)?.clientWidth
+ const vcmp_videoplay = document.getElementById("vcmp_videoplay" + videoObj.id)?.clientHeight
+ const vcmp_videopla = document.getElementById("vcmp_videoplay" + videoObj.id)?.clientWidth
- return (
-
- {roll && vcmp_videopla > 320 ?
-
42 ? 42 : vcmp_videoplay * 0.12 < 30 ? 30 : vcmp_videoplay * 0.12}px`, background: videoStyle == 'true' ? '#467ACD' : '#000000FF', maxHeight: 42, minHeight: 30,
- position: 'absolute', width: '100%', zIndex: 80,
- color: '#fff'
- }}>
-
-
- {
- operationState && operationState.histroy.select ?
- <>
- {
- changeSelectState('histroy')
- if (playState) {
- player.stop().then(() => {
- if (resolution == 'sd') {
- player.play({ url: videoObj?.playUrlSd, })
- } else {
- player.play({ url: videoObj?.playUrlHd, })
- }
- playState = false
- })
- } else {
- player.play({ url: resolution == 'sd' ? videoObj?.playUrlSd : videoObj?.playUrlHd, })
- }
- }} />
- > : ''
- }
- {showTime_} {name}
-
-
-
- {content ? : ""}
-
-
-
-
: ''}
-
- )
+ return (
+
+ {roll && vcmp_videopla > 320 ?
+
42 ? 42 : vcmp_videoplay * 0.12 < 30 ? 30 : vcmp_videoplay * 0.12}px`, background: videoStyle == 'true' ? content.length > 0 ? '#467ACD' : "" : '#000000FF', maxHeight: 42, minHeight: 30,
+ position: 'absolute', width: '100%', zIndex: 80,
+ color: '#fff'
+ }}>
+
+
+ {
+ operationState && operationState.histroy.select ?
+ <>
+ {
+ changeSelectState('histroy')
+ if (playState) {
+ player.stop().then(() => {
+ if (resolution == 'sd') {
+ player.play({ url: videoObj?.playUrlSd, })
+ } else {
+ player.play({ url: videoObj?.playUrlHd, })
+ }
+ playState = false
+ })
+ } else {
+ player.play({ url: resolution == 'sd' ? videoObj?.playUrlSd : videoObj?.playUrlHd, })
+ }
+ }} />
+ > : ''
+ }
+ {showTime_} {name}
+
+
+
+ {content && content?.length > 0 ? : ""}
+
+
+
+
: ''}
+
+ )
}
function mapStateToProps (state) {
- const { auth } = state;
- return {
- user: auth.user,
- };
+ const { auth } = state;
+ return {
+ user: auth.user,
+ };
}
export default connect(mapStateToProps)(VideoHeader);
\ No newline at end of file
diff --git a/code/VideoAccess-VCMP/web/client/src/sections/openness/components/container.jsx b/code/VideoAccess-VCMP/web/client/src/sections/openness/components/container.jsx
index 4d13600..294dd77 100644
--- a/code/VideoAccess-VCMP/web/client/src/sections/openness/components/container.jsx
+++ b/code/VideoAccess-VCMP/web/client/src/sections/openness/components/container.jsx
@@ -12,7 +12,6 @@ const Container = ({ videoObj, pageSize, showHeader, videoPlay, mould }) => {
useEffect(() => {
const resize_ = async () => {
- console.log(document.getElementById('video' + videoObj.key).clientWidth);
await setVideoWidth(document.getElementById('video' + videoObj.key).clientWidth)
await setVideoHeight(document.getElementById('video' + videoObj.key).clientHeight)
}
diff --git a/code/VideoAccess-VCMP/web/client/src/sections/openness/components/videoScreen.jsx b/code/VideoAccess-VCMP/web/client/src/sections/openness/components/videoScreen.jsx
index e47e922..2abce06 100644
--- a/code/VideoAccess-VCMP/web/client/src/sections/openness/components/videoScreen.jsx
+++ b/code/VideoAccess-VCMP/web/client/src/sections/openness/components/videoScreen.jsx
@@ -220,7 +220,7 @@ const VideoScreen = ({ treeData, filterGroup, videoPlay, template, headerName, s
setSelectAll(true)
}
}
-
+
}, [leftValue]) //树状勾选结果
useEffect(() => {
@@ -421,6 +421,8 @@ const VideoScreen = ({ treeData, filterGroup, videoPlay, template, headerName, s
onChange={(e) => {
// console.log(e);
setLeftValue(e)
+ setPage(1)
+ pageRef.current = 1
}}
onSelect={(e) => {
// console.log(e);