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
1b859064
Commit
1b859064
authored
May 16, 2023
by
程恺文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加宽高配置
parent
6db86a42
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
14 deletions
+19
-14
dmeo1.tsx
packages/base-components/VmsVideo/src/demos/dmeo1.tsx
+12
-10
index.jsx
packages/base-components/VmsVideo/src/index.jsx
+7
-4
No files found.
packages/base-components/VmsVideo/src/demos/dmeo1.tsx
View file @
1b859064
...
...
@@ -37,18 +37,20 @@ const Demo1 = (props) => {
// protocol: '萤石EZOPEN',
//};
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"
,
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"
,
}
/* {
address
:
'236644034'
,
width
:
952
,
height
:
500
,
};
/* {
id: '398993BB-A795-4237-BE75-B6A7EC9D675', // 398993BB-A795-4237-BE75-B6A7EC9D675
name: '设备1', // 设备名称
protocol: '萤石EZOPEN', // 萤石EZOPE 萤石HTTP-FLV RTSP GB28181
...
...
packages/base-components/VmsVideo/src/index.jsx
View file @
1b859064
...
...
@@ -2,7 +2,7 @@
* @Author: 634665781 634665781@qq.com
* @Date: 2023-04-11 13:40:18
* @LastEditors: 634665781 634665781@qq.com
* @LastEditTime: 2023-0
4-26 16:32:17
* @LastEditTime: 2023-0
5-16 10:14:40
* @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
*/
...
...
@@ -67,6 +67,8 @@ const Video = (props, ref) => {
url
:
`ezopen://open.ys7.com/
${
VideoInfo
.
address
}
/1.hd.live`
,
templete
:
'simple'
,
footer
:
[
'talk'
,
'broadcast'
,
'hd'
,
'fullScreen'
],
width
:
VideoInfo
.
width
||
952
,
height
:
VideoInfo
.
height
||
500
});
PlayersA
.
pause
=
PlayersA
.
stop
;
...
...
@@ -89,9 +91,10 @@ const Video = (props, ref) => {
const
CommonPath
=
window
?.
globalConfig
?.
hasGateWay
?
'PandaCore/GateWay/Video/'
:
''
;
VideoInfo
.
url
=
VideoInfo
.
useFullUrl
?
VideoInfo
.
fullUrl
:
(
VideoInfo
.
pandavmsHost
||
'ws://'
+
location
.
host
+
'/'
)
+
(
VideoInfo
.
gateway
?
CommonPath
:
''
)
+
'jessica/'
+
VideoInfo
.
id
;
:
(
VideoInfo
.
pandavmsHost
||
'ws://'
+
location
.
host
+
'/'
)
+
(
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