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
6eb489a4
Commit
6eb489a4
authored
Oct 23, 2023
by
李纪文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改视频回放
parent
18bb4760
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
dmeo1.tsx
packages/base-components/VmsVideo/src/demos/dmeo1.tsx
+4
-4
index.jsx
packages/base-components/VmsVideo/src/index.jsx
+2
-1
No files found.
packages/base-components/VmsVideo/src/demos/dmeo1.tsx
View file @
6eb489a4
...
...
@@ -70,11 +70,11 @@ const Demo1 = (props) => {
// pandavmsHost: 'ws://221.229.200.85:8086/', // pandavms后端主机地址 eg: ws://172.16.19.19:8080/
// address: 'F65095407',
// channel: 2,
// options:{
// begin: '20231010000000',
// end: '20231010235959'
// options:{
// 不传递默认是今天的回放
// begin: '20231010000000',
// 回放开始时间
// end: '20231010235959'
, // 回放结束时间
// },
// type:'rec'
// type:'rec'
, // 回放标识
// };
useEffect
(()
=>
{
...
...
packages/base-components/VmsVideo/src/index.jsx
View file @
6eb489a4
...
...
@@ -73,6 +73,7 @@ const Video = (props, ref) => {
});
PlayersA
.
pause
=
PlayersA
.
stop
;
Players
.
current
=
PlayersA
;
if
(
ref
)
ref
.
current
=
PlayersA
;
};
...
...
@@ -107,7 +108,7 @@ const Video = (props, ref) => {
useEffect
(()
=>
{
if
(
VideoInfo
.
protocol
===
'萤石EZOPEN'
&&
VideoInfo
.
type
===
'rec'
)
{
VideoInfo
.
options
&&
Players
A
&&
PlayersA
.
changePlayUrl
(
VideoInfo
.
options
);
VideoInfo
.
options
&&
Players
&&
Players
.
current
&&
Players
.
current
.
changePlayUrl
(
VideoInfo
.
options
);
}
},
[
VideoInfo
.
options
]);
...
...
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