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
98ee1f82
Commit
98ee1f82
authored
May 16, 2023
by
程恺文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改ID
parent
ef0a6e67
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
index.jsx
packages/base-components/VmsVideo/src/index.jsx
+4
-4
No files found.
packages/base-components/VmsVideo/src/index.jsx
View file @
98ee1f82
...
...
@@ -2,7 +2,7 @@
* @Author: 634665781 634665781@qq.com
* @Date: 2023-04-11 13:40:18
* @LastEditors: 634665781 634665781@qq.com
* @LastEditTime: 2023-05-16 1
0:14:40
* @LastEditTime: 2023-05-16 1
6:23:33
* @FilePath: \wisdom-components\packages\base-components\VmsVideo\src\index.jsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
...
...
@@ -38,7 +38,7 @@ const Video = (props, ref) => {
const
Players
=
useRef
(
null
);
const
{
VideoInfo
,
JessibucaObj
,
gateway
}
=
props
;
let
baseUrl
=
`ws://
${
window
.
location
.
host
}
/jessica`
;
let
keyID
=
VideoInfo
.
id
+
'_'
+
new
Date
().
getTime
()
let
_VideoInfo
=
{
title
:
'摄像头'
,
// dataRate: 1,
...
...
@@ -62,7 +62,7 @@ const Video = (props, ref) => {
let
accessToken
=
response
.
data
.
data
.
accessToken
;
let
PlayersA
=
new
EZUIKit
.
EZUIKitPlayer
({
id
:
'video-container'
,
// 视频容器ID
id
:
keyID
,
// 视频容器ID
accessToken
:
accessToken
,
url
:
`ezopen://open.ys7.com/
${
VideoInfo
.
address
}
/1.hd.live`
,
templete
:
'simple'
,
...
...
@@ -114,7 +114,7 @@ const Video = (props, ref) => {
return
(
<
div
className=
{
style
.
app
}
>
{
VideoInfo
.
protocol
==
'萤石EZOPEN'
?
(
<
div
id=
"video-container"
></
div
>
<
div
id=
{
keyID
}
></
div
>
)
:
(
<
App1
{
...
{
VideoInfo
:
_VideoInfo
,
JessibucaObj
:
JessibucaObj
}}
ref=
{
_video
}
/>
)
}
...
...
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