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
b850c46b
Commit
b850c46b
authored
May 11, 2024
by
李纪文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 视频回放增加加载配置
parent
ad67dcfe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
dmeo2.tsx
packages/base-components/VmsVideo/src/demos/dmeo2.tsx
+8
-1
index.js
packages/base-components/VmsVideo/src/recVideo/index.js
+10
-2
No files found.
packages/base-components/VmsVideo/src/demos/dmeo2.tsx
View file @
b850c46b
...
...
@@ -126,7 +126,14 @@ const Demo2 = (props) => {
<
button
onClick=
{
testVideo
}
>
测试
</
button
>
<
button
onClick=
{
destroyVideo
}
>
销毁
</
button
>
<
div
style=
{
{
height
:
'700px'
}
}
>
<
Video
{
...
{
JessibucaObj
:
JessibucaObj
,
VideoInfo
:
VideoInfo
}}
ref=
{
jessibuca
}
/>
<
Video
{
...
{
JessibucaObj
:
JessibucaObj
,
VideoInfo
:
VideoInfo
,
ProgressBar
:
{
strokeColor
:
'
red
',
textColor
:
'
red
'
},
}}
ref=
{
jessibuca
}
/>
</
div
>
</
div
>
);
...
...
packages/base-components/VmsVideo/src/recVideo/index.js
View file @
b850c46b
...
...
@@ -13,7 +13,7 @@ const RecVideo = (props, ref) => {
const
{
getPrefixCls
}
=
useContext
(
ConfigProvider
.
ConfigContext
);
const
prefixCls
=
getPrefixCls
(
'rec-video-view'
);
const
{
VideoInfo
,
JessibucaObj
}
=
props
;
const
{
VideoInfo
,
JessibucaObj
,
ProgressBar
}
=
props
;
const
jessibuca
=
useRef
(
null
);
const
[
hoursRuler
,
setHoursRuler
]
=
useState
(
VideoInfo
.
hoursRuler
||
24
);
const
[
showId
,
setShowId
]
=
useState
(
null
);
//视频ID
...
...
@@ -146,10 +146,18 @@ const RecVideo = (props, ref) => {
<
div
className
=
{
classNames
(
`
${
prefixCls
}
-load`
)}
>
<
Progress
className
=
{
classNames
(
`
${
prefixCls
}
-progress`
)}
strokeColor
=
{
ProgressBar
?.
strokeColor
||
''
}
format
=
{(
percent
)
=>
{
return
(
<
span
style
=
{{
color
:
ProgressBar
?.
textColor
||
'unset'
}}
>
{
percent
+
'%'
}
<
/span
>
);
}}
strokeWidth
=
{
14
}
percent
=
{
percent
}
/
>
<
span
>
视频回放信息获取中,请稍后
...
<
/span
>
<
span
style
=
{{
color
:
ProgressBar
?.
textColor
||
'unset'
}}
>
视频回放信息获取中,请稍后
...
<
/span
>
<
/div
>
<
/
>
)
:
showId
?
(
...
...
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