Commit 4a518287 authored by 李纪文's avatar 李纪文

feat: 视频全屏宽度问题处理

parent dd5ac3ee
/*
* @Author: 634665781 634665781@qq.com
* @Date: 2023-04-11 13:40:18
* @LastEditors: 634665781 634665781@qq.com
* @LastEditTime: 2023-05-30 11:08:31
* @FilePath: \wisdom-components\packages\base-components\TestVideo\src\demos\dmeo1.tsx
* @LastEditors: Please set LastEditors
* @LastEditTime: 2024-08-02 19:35:45
* @FilePath: \wisdom-components\packages\base-components\VmsVideo\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',
......
/*
* @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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment