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
3c0feb75
Commit
3c0feb75
authored
Apr 26, 2023
by
程恺文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
视频组件新增网关配置
parent
00c27473
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
VmsVideo.md
packages/base-components/VmsVideo/src/VmsVideo.md
+1
-0
index.jsx
packages/base-components/VmsVideo/src/index.jsx
+11
-3
No files found.
packages/base-components/VmsVideo/src/VmsVideo.md
View file @
3c0feb75
...
...
@@ -41,6 +41,7 @@ group:
| password | 密码 | string | "78b7dc88f9f4bf19c2b1aabfdd995244" |
| address | 地址 | string | "123638446" |
| protocol | 协议类型 | string | "萤石 EZOPEN" |
| gateway | 是否走网关 | boolean | false |
| pandavmsHost | pandavms后端主机地址 eg | string | ws://172.16.19.19:8080/ |
| useFullUrl | 是否为完整 url,是,则取 fullUrl,否,则会用 pandavmsHost和id 去拼接 | boolean | false |
| id | 摄像头唯一标识,一串 GUID | string | "" |
...
...
packages/base-components/VmsVideo/src/index.jsx
View file @
3c0feb75
...
...
@@ -2,7 +2,15 @@
* @Author: 634665781 634665781@qq.com
* @Date: 2023-04-11 13:40:18
* @LastEditors: 634665781 634665781@qq.com
* @LastEditTime: 2023-04-13 15:40:30
* @LastEditTime: 2023-04-26 10:22:43
* @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
*/
/*
* @Author: 634665781 634665781@qq.com
* @Date: 2023-04-11 13:40:18
* @LastEditors: 634665781 634665781@qq.com
* @LastEditTime: 2023-04-26 09:42:48
* @FilePath: \wisdom-components\packages\base-components\TestVideo\src\index.jsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
...
...
@@ -78,10 +86,10 @@ const Video = (props, ref) => {
}
else
{
getToken
();
}
const
CommonPath
=
window
?.
globalConfig
?.
hasGateWay
?
'/PandaCore/GateWay/Video'
:
''
;
VideoInfo
.
url
=
VideoInfo
.
useFullUrl
?
VideoInfo
.
fullUrl
:
VideoInfo
.
pandavmsHost
+
'
jessica/'
+
VideoInfo
.
id
;
:
VideoInfo
.
pandavmsHost
+
VideoInfo
.
gateway
?
CommonPath
:
''
+
'/
jessica/'
+
VideoInfo
.
id
;
let
operateBtns
=
{
fullscreen
:
true
,
screenshot
:
true
,
...
...
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