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
503c878d
Commit
503c878d
authored
Apr 18, 2023
by
程恺文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
视频组件文档更新
parent
664038d5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
9 deletions
+20
-9
App.jsx
packages/base-components/VmsVideo/src/App.jsx
+1
-1
VmsVideo.md
packages/base-components/VmsVideo/src/VmsVideo.md
+5
-5
dmeo1.tsx
packages/base-components/VmsVideo/src/demos/dmeo1.tsx
+14
-3
No files found.
packages/base-components/VmsVideo/src/App.jsx
View file @
503c878d
...
...
@@ -22,7 +22,7 @@ class App extends React.Component {
if
(
VideoInfo
.
url
)
{
this
.
create
(
this
.
refs
[
`myVideo`
+
VideoInfo
.
id
],
`key`
,
JessibucaObj
);
setTimeout
(()
=>
{
this
.
play
(
VideoInfo
.
url
+
`
${
VideoInfo
.
dataRate
==
'Sub'
?
2
:
1
}
`
,
`key`
);
this
.
play
(
VideoInfo
.
url
+
`
/
${
VideoInfo
.
dataRate
==
'Sub'
?
2
:
1
}
`
,
`key`
);
},
10
);
}
}
...
...
packages/base-components/VmsVideo/src/VmsVideo.md
View file @
503c878d
...
...
@@ -37,14 +37,14 @@ group:
| | record 是否显示录制按钮 | boolean | true |
| VideoParam 参数 | --- | --- | --- |
| fullUrl | 完整 url,接入 flv 或者三方的链接 | string | "" |
| username |
萤石 EZOPEN 账号 | strin
| "6c44c8e92d1c4d75a9818756025df550" |
| password |
萤石 EZOPEN 密码 | strin
| "78b7dc88f9f4bf19c2b1aabfdd995244" |
| address |
萤石 EZOPEN 地址 | strin
| "123638446" |
| protocol | 协议类型 | strin | "萤石 EZOPEN" |
| username |
账号 | string
| "6c44c8e92d1c4d75a9818756025df550" |
| password |
密码 | string
| "78b7dc88f9f4bf19c2b1aabfdd995244" |
| address |
地址 | string
| "123638446" |
| protocol | 协议类型 | strin
g
| "萤石 EZOPEN" |
| pandavmsHost | pandavms后端主机地址 eg | string | ws://172.16.19.19:8080/ |
| useFullUrl | 是否为完整 url,是,则取 fullUrl,否,则会用 pandavmsHost和id 去拼接 | boolean | false |
| id | 摄像头唯一标识,一串 GUID | string | "" |
|
cameraN
ame | 摄像头名称 | string | "" |
|
n
ame | 摄像头名称 | string | "" |
| dataRate | 码率,Main 为主码流,Sub 为辅码流,与消耗网络有关,主码流消耗最高,
**由于拼接方式不定,改为是字符串传入**
| string | 'Sub' |
## 写在最后
...
...
packages/base-components/VmsVideo/src/demos/dmeo1.tsx
View file @
503c878d
...
...
@@ -2,7 +2,7 @@
* @Author: 634665781 634665781@qq.com
* @Date: 2023-04-11 13:40:18
* @LastEditors: 634665781 634665781@qq.com
* @LastEditTime: 2023-04-1
3 11:05:03
* @LastEditTime: 2023-04-1
7 11:05:27
* @FilePath: \wisdom-components\packages\base-components\TestVideo\src\demos\dmeo1.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
...
...
@@ -37,7 +37,18 @@ const Demo1 = (props) => {
// protocol: '萤石EZOPEN',
//};
let
VideoParam
=
{
let
VideoParam
=
{
id
:
"11F102BC-CE03-4E32-AE60-F297934DFE3F"
,
// 398993BB-A795-4237-BE75-B6A7EC9D675
name
:
"琼海电信小区"
,
// 设备名称
protocol
:
"萤石云HTTP-FLV"
,
// 萤石EZOPE 萤石HTTP-FLV RTSP GB28181
username
:
"6c44c8e92d1c4d75a9818756025df550"
,
password
:
"78b7dc88f9f4bf19c2b1aabfdd995244"
,
dataRate
:
'Sub'
,
// Main 主码流 Sub 子码流
pandavmsHost
:
`ws://192.168.8.27:9876/`
,
// pandavms后端主机地址 eg: ws://172.16.19.19:8080/
address
:
"236644034"
,
}
/* {
id: '398993BB-A795-4237-BE75-B6A7EC9D675', // 398993BB-A795-4237-BE75-B6A7EC9D675
name: '设备1', // 设备名称
protocol: '萤石EZOPEN', // 萤石EZOPE 萤石HTTP-FLV RTSP GB28181
...
...
@@ -46,7 +57,7 @@ const Demo1 = (props) => {
dataRate: 'Sub', // Main 主码流 Sub 子码流
pandavmsHost: 'ws://172.16.19.19:8080/', // pandavms后端主机地址 eg: ws://172.16.19.19:8080/
address: '123638446',
};
};
*/
useEffect
(()
=>
{
// 事件 ,返回视频信息
...
...
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