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
5a970e6b
Commit
5a970e6b
authored
May 24, 2023
by
程恺文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
0ad69787
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
dmeo1.tsx
packages/base-components/VmsVideo/src/demos/dmeo1.tsx
+6
-6
index.jsx
packages/base-components/VmsVideo/src/index.jsx
+9
-9
No files found.
packages/base-components/VmsVideo/src/demos/dmeo1.tsx
View file @
5a970e6b
...
...
@@ -2,7 +2,7 @@
* @Author: 634665781 634665781@qq.com
* @Date: 2023-04-11 13:40:18
* @LastEditors: 634665781 634665781@qq.com
* @LastEditTime: 2023-05-24 1
6:51:2
2
* @LastEditTime: 2023-05-24 1
8:14:5
2
* @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
*/
...
...
@@ -40,7 +40,7 @@ const Demo1 = (props) => {
let
VideoParam
=
{
id
:
'11F102BC-CE03-4E32-AE60-F297934DFE3F'
,
// 398993BB-A795-4237-BE75-B6A7EC9D675
name
:
'琼海电信小区'
,
// 设备名称
protocol
:
'萤石EZOPEN'
,
// 萤石EZOPE 萤石HTTP-FLV RTSP GB28181
protocol
:
'萤石EZOPEN'
,
// 萤石EZOPE 萤石HTTP-FLV RTSP GB28181
username
:
'6c44c8e92d1c4d75a9818756025df550'
,
password
:
'78b7dc88f9f4bf19c2b1aabfdd995244'
,
dataRate
:
'Sub'
,
// Main 主码流 Sub 子码流
...
...
@@ -86,11 +86,11 @@ const Demo1 = (props) => {
// ******
// 其他事件需查看在线文档
// ******
return
()
=>
{
return
()
=>
{
console
.
log
(
'销毁。。。。。。。。。。。。。。。。。。。。。。。。。'
);
stopVideo
()
}
stopVideo
()
;
}
;
},
[]);
const
stopVideo
=
()
=>
{
...
...
packages/base-components/VmsVideo/src/index.jsx
View file @
5a970e6b
...
...
@@ -2,7 +2,7 @@
* @Author: 634665781 634665781@qq.com
* @Date: 2023-04-11 13:40:18
* @LastEditors: 634665781 634665781@qq.com
* @LastEditTime: 2023-05-24 1
6:34:0
0
* @LastEditTime: 2023-05-24 1
8:15:2
0
* @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
*/
...
...
@@ -104,15 +104,17 @@ const Video = (props, ref) => {
// PlayersA?.stop?.()
console
.
log
(
PlayersA
,
'视频对象11111111111111111111111111111111111111111111111'
);
PlayersA
.
stop
();
getToken
();
getToken
();
};
if
(
VideoInfo
.
protocol
!=
'萤石EZOPEN'
)
{
useImperativeHandle
(
ref
,
()
=>
{
// changeVal 就是暴露给父组件的方法, newVal是父组件传递的参数
return
_video
.
current
.
jessibuca
;
// _video&& _video.current&&_video.current.jessibuca
});
}
useEffect
(()
=>
{
if
(
VideoInfo
.
protocol
!=
'萤石EZOPEN'
)
{
useImperativeHandle
(
ref
,
()
=>
{
// changeVal 就是暴露给父组件的方法, newVal是父组件传递的参数
return
_video
.
current
.
jessibuca
;
// _video&& _video.current&&_video.current.jessibuca
});
}
else
{
getToken
();
}
...
...
@@ -129,8 +131,6 @@ const Video = (props, ref) => {
};
},
[]);
const
CommonPath
=
VideoInfo
.
gateway
||
window
?.
globalConfig
?.
hasGateWay
?
'PandaCore/GateWay/Video/'
:
''
;
// 配置了gateway或者pc端web配置中有gateway
...
...
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