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
3f56d365
Commit
3f56d365
authored
Oct 19, 2023
by
李纪文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改视频vms
parent
6c69d9a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
index.jsx
packages/base-components/VmsVideo/src/index.jsx
+10
-4
No files found.
packages/base-components/VmsVideo/src/index.jsx
View file @
3f56d365
...
...
@@ -77,18 +77,24 @@ const Video = (props, ref) => {
};
const
videoPlayRec
=
(
accessToken
)
=>
{
let
url
=
`ezopen://open.ys7.com/
${
VideoInfo
.
address
}
/
${
VideoInfo
.
channel
||
1
}
.hd.rec`
;
const
begin
=
VideoInfo
?.
options
?.
begin
||
''
;
const
end
=
VideoInfo
?.
options
?.
end
||
''
;
if
(
begin
&&
end
)
url
=
`ezopen://open.ys7.com/
${
VideoInfo
.
address
}
/
${
VideoInfo
.
channel
||
1
}
.hd.rec?begin=
${
begin
}
&end=
${
end
}
`
;
PlayersA
=
new
EZUIKit
.
EZUIKitPlayer
({
id
:
keyID
,
// 视频容器ID
accessToken
:
accessToken
,
url
:
`ezopen://open.ys7.com/
${
VideoInfo
.
address
}
/
${
VideoInfo
.
channel
||
1
}
.hd.rec`
,
template
:
'
security
'
,
url
:
url
,
template
:
'
pcRec
'
,
footer
:
[
'talk'
,
'broadcast'
,
'hd'
,
'fullScreen'
],
width
:
VideoInfo
.
width
||
refs
?.
current
?.
offsetWidth
||
952
,
height
:
VideoInfo
.
height
||
refs
?.
current
?.
offsetHeight
||
500
,
});
PlayersA
.
pause
=
PlayersA
.
stop
;
// VideoInfo.options && PlayersA.changePlayUrl(VideoInfo.options);
if
(
ref
)
ref
.
current
=
PlayersA
;
};
...
...
@@ -100,7 +106,7 @@ const Video = (props, ref) => {
}
useEffect
(()
=>
{
if
(
VideoInfo
.
protocol
===
'萤石EZOPEN'
)
{
if
(
VideoInfo
.
protocol
===
'萤石EZOPEN'
&&
VideoInfo
.
type
===
'rec'
)
{
VideoInfo
.
options
&&
PlayersA
&&
PlayersA
.
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