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
4a518287
Commit
4a518287
authored
Aug 02, 2024
by
李纪文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 视频全屏宽度问题处理
parent
dd5ac3ee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
8 deletions
+22
-8
dmeo1.tsx
packages/base-components/VmsVideo/src/demos/dmeo1.tsx
+18
-3
index.jsx
packages/base-components/VmsVideo/src/index.jsx
+4
-5
No files found.
packages/base-components/VmsVideo/src/demos/dmeo1.tsx
View file @
4a518287
/*
* @Author: 634665781 634665781@qq.com
* @Date: 2023-04-11 13:40:18
* @LastEditors:
634665781 634665781@qq.com
* @LastEditTime: 202
3-05-30 11:08:31
* @FilePath: \wisdom-components\packages\base-components\
Test
Video\src\demos\dmeo1.tsx
* @LastEditors:
Please set LastEditors
* @LastEditTime: 202
4-08-02 19:35:45
* @FilePath: \wisdom-components\packages\base-components\
Vms
Video\src\demos\dmeo1.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
// @ts-ignore
...
...
@@ -50,6 +50,21 @@ const Demo1 = (props) => {
title
:
2
,
}
};
// VideoParam = {
// id: 'E75C657B-23D8-4F47-82F7-011825307468',
// name: '球机-设备间正面',
// channel: 5,
// protocol: '萤石EZOPEN',
// username: '014d7fd22a3f480d9b3492b3cc395717',
// password: 'c077bd1c448e68cdee2be1d307731eae',
// pandavmsHost: 'ws://192.168.8.30:7000/',
// address: 'AH2684639',
// params: {
// name: 1,
// title: 2,
// }
// };
let
VideoParam1
=
{
id
:
'38FB4BA7-C61F-466C-9B57-5B401441DABC'
,
name
:
'K21319413_通道_1'
,
...
...
packages/base-components/VmsVideo/src/index.jsx
View file @
4a518287
/*
* @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
* @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
*/
// eslint-disable-next-line no-unused-vars
...
...
@@ -121,8 +119,9 @@ const Video = (props, ref) => {
const
resizeObserver
=
new
ResizeObserver
(()
=>
{
if
(
resizeTime
)
clearTimeout
(
resizeTime
);
resizeTime
=
setTimeout
(()
=>
{
PlayersA
&&
PlayersA
.
reSize
(
refs
?.
current
?.
offsetWidth
||
952
,
refs
?.
current
?.
offsetHeight
||
500
);
},
10
);
const
isFullScreen
=
document
.
fullScreen
||
document
.
mozFullScreen
||
document
.
webkitIsFullScreen
;
if
(
!
isFullScreen
)
PlayersA
&&
PlayersA
.
reSize
(
refs
?.
current
?.
offsetWidth
||
952
,
refs
?.
current
?.
offsetHeight
||
500
);
},
100
);
});
refs
?.
current
&&
resizeObserver
.
observe
(
refs
.
current
);
...
...
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