Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wisdom-components
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
wisdom-components
Commits
138753c2
Commit
138753c2
authored
Apr 29, 2024
by
李纪文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 视频修改
parent
24179700
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
index.js
packages/base-components/VmsVideo/src/recVideo/index.js
+6
-1
No files found.
packages/base-components/VmsVideo/src/recVideo/index.js
View file @
138753c2
...
...
@@ -20,6 +20,7 @@ const RecVideo = (props, ref) => {
const
[
playTimestamp
,
setPlayTimestamp
]
=
useState
(
null
);
//当前正在播放时间段
const
[
minTimestamp
,
setMinTimestamp
]
=
useState
(
null
);
//时间轴最小时间
const
[
maxTimestamp
,
setMaxTimestamp
]
=
useState
(
null
);
//时间轴最大时间
const
[
loading
,
setLoading
]
=
useState
(
true
);
useEffect
(()
=>
{
changeReplayCfg
();
...
...
@@ -70,7 +71,9 @@ const RecVideo = (props, ref) => {
};
const
getVideoPlBack
=
(
param
)
=>
{
setLoading
(
true
);
videoPlayback
(
param
).
then
((
res
)
=>
{
setLoading
(
false
);
if
(
res
.
code
===
200
)
{
setPeridos
(
res
.
data
.
peridos
.
map
((
times
,
i
)
=>
{
...
...
@@ -94,7 +97,9 @@ const RecVideo = (props, ref) => {
};
const
rePaly
=
(
params
)
=>
{
setLoading
(
true
);
newPlayback
(
params
).
then
((
res
)
=>
{
setLoading
(
false
);
if
(
res
.
code
===
200
)
{
setShowId
(
res
.
data
);
}
else
{
...
...
@@ -147,7 +152,7 @@ const RecVideo = (props, ref) => {
<
/
>
)
:
(
<
div
className
=
{
classNames
(
`
${
prefixCls
}
-empty`
)}
>
{
/* <Empty theme={'dark'} description={''} /> */
}
{
!
loading
&&
<
Empty
theme
=
{
'dark'
}
description
=
{
''
}
/>
}
<
/div
>
)}
<
/div
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment