From e506e6d43f066286fcc14c5fa98767d14516edd0 Mon Sep 17 00:00:00 2001 From: LiuJiaNan <15703339975@163.com> Date: Sat, 8 Aug 2026 15:25:37 +0800 Subject: [PATCH] =?UTF-8?q?refactor(video):=20=E6=9B=BF=E6=8D=A2AliPlayer?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E4=B8=BAVideo=E7=BB=84=E4=BB=B6=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E8=A7=86=E9=A2=91=E6=92=AD=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将多个页面中视频播放组件从AliPlayer替换为Video - 修改视频url处理逻辑,避免使用data.url,直接使用data - 配置Video组件的inline属性和跨域设置aliPlayerProps - 更新package.json中zy-react-library版本至2.1.4并调整相关依赖 --- package.json | 6 +++--- .../Content/IndexInfo/Bottom/VideoPatrolPanel/index.js | 6 +++--- .../Map/components/Content/branchOffice/Camera/VideoItem.js | 6 +++--- .../branchOffice/IndexRight/VideoPatrolPanel/index.js | 6 +++--- .../Map/components/Content/modal/DoorCamera/index.js | 6 +++--- .../Map/components/Content/modal/VideoPlay/index.js | 6 +++--- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/package.json b/package.json index 4467afa..a99d504 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ }, "dependencies": { "@ant-design/icons": "6.3.2", - "@ant-design/pro-components": "^2.8.10", + "@ant-design/pro-components": "3.1.14-6", "@cqsjjb/jjb-common-decorator": "latest", "@cqsjjb/jjb-common-lib": "latest", "@cqsjjb/jjb-dva-runtime": "latest", @@ -40,12 +40,12 @@ "react-transition-group": "^4.4.5", "sass": "^1.97.0", "sass-loader": "^16.0.6", - "zy-react-library": "^2.1.0" + "zy-react-library": "^2.1.4" }, "devDependencies": { "@antfu/eslint-config": "^5.4.1", "@babel/plugin-proposal-decorators": "^7.19.3", - "@cqsjjb/scripts": "latest", + "@cqsjjb/scripts": "2.0.0", "@eslint-react/eslint-plugin": "^2.2.2", "cross-env": "^7.0.3", "eslint": "^9.37.0", diff --git a/src/pages/Container/Map/components/Content/IndexInfo/Bottom/VideoPatrolPanel/index.js b/src/pages/Container/Map/components/Content/IndexInfo/Bottom/VideoPatrolPanel/index.js index 8cafee3..1a75de9 100644 --- a/src/pages/Container/Map/components/Content/IndexInfo/Bottom/VideoPatrolPanel/index.js +++ b/src/pages/Container/Map/components/Content/IndexInfo/Bottom/VideoPatrolPanel/index.js @@ -1,7 +1,7 @@ import { Connect } from "@cqsjjb/jjb-dva-runtime"; import { message, Spin } from "antd"; import { useEffect, useState } from "react"; -import AliPlayer from "zy-react-library/components/Video/AliPlayer"; +import Video from "zy-react-library/components/Video"; import { randoms } from "zy-react-library/utils"; import background from "~/assets/images/public/bigScreen/bg14.png"; import { NS_BI_STATISTICS } from "~/enumerate/namespace"; @@ -18,7 +18,7 @@ function VideoPatrolPanel(props) { indexCode: cameraNumber, }); if (success && data) - setPlayUrl(data?.url || ""); + setPlayUrl(data || ""); }; const selectCorp = (item) => { setActive(item.corpinfoName); @@ -69,7 +69,7 @@ function VideoPatrolPanel(props) { > {playUrl ? ( - +