@ezuikit/player-theme 2.1.1-beta.1 → 2.1.2-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/style.css CHANGED
@@ -16,10 +16,9 @@ body.ezplayer-body-mobile-noscroll{background-color:#000!important;height:100vh;
16
16
  .ezplayer-icon-volume{position:relative}.ezplayer-icon-volume svg .ezplayer-icon-volume-high,.ezplayer-icon-volume svg .ezplayer-icon-volume-low,.ezplayer-icon-volume svg .ezplayer-icon-volume-muted{display:none}.ezplayer-icon-volume.ezplayer-icon-volume-high svg .ezplayer-icon-volume-high,.ezplayer-icon-volume.ezplayer-icon-volume-high svg .ezplayer-icon-volume-low,.ezplayer-icon-volume.ezplayer-icon-volume-low svg .ezplayer-icon-volume-low,.ezplayer-icon-volume.ezplayer-icon-volume-muted svg .ezplayer-icon-volume-muted,.ezplayer-icon-volume.ezplayer-icon-volume-zero svg .ezplayer-icon-volume-muted{display:inline}.ezplayer-volume-progress{height:126px}
17
17
  .ezplayer-control-rec{box-sizing:border-box;display:inline-flex;flex-direction:row}.ezplayer-control-rec .ezplayer-icon-cloud-rec,.ezplayer-control-rec .ezplayer-icon-cloud-record,.ezplayer-control-rec .ezplayer-icon-sdk{color:#d4d7dd;cursor:pointer;margin-left:5px}.ezplayer-mobile-extend .ezplayer-control-rec{background-color:#f4f6fc;border:1px solid #ededed;border-radius:18px;height:30px}.ezplayer-mobile-extend .ezplayer-icon-cloud-rec,.ezplayer-mobile-extend .ezplayer-icon-cloud-record,.ezplayer-mobile-extend .ezplayer-icon-sdk{cursor:pointer;font-size:20px;margin-left:1px;padding:2px 7px}.ezplayer-mobile-extend .ezplayer-icon-cloud-rec.ezplayer-active,.ezplayer-mobile-extend .ezplayer-icon-cloud-record.ezplayer-active,.ezplayer-mobile-extend .ezplayer-icon-sdk.ezplayer-active{background-color:#fff;border-radius:12px;box-shadow:0 1px 4px 0 hsla(0,0%,68%,.2)}.ezplayer-mobile .ezplayer-icon-cloud-rec,.ezplayer-mobile .ezplayer-icon-cloud-record,.ezplayer-mobile .ezplayer-icon-sdk{margin-left:10px}
18
18
  .ezplayer-more-panel{align-items:center;background-color:var(--ezplayer-panel-bg-color,rgba(0,0,0,.7));border-radius:var(--ezplayer-border-radius,8px);cursor:default;display:flex;flex-direction:row;padding:8px 10px}.ezplayer-more .ezplayer-control{margin-left:10px}.ezplayer-more .ezplayer-control:first-child{margin-right:0}
19
- .ezplayer-medium-height .ezplayer-zoom-panel,.ezplayer-mini-height .ezplayer-zoom-panel{height:100%;padding-bottom:var(--ezplayer-footer-height,80px);padding-top:0}.ezplayer-mini-height .ezplayer-zoom-panel{padding-bottom:calc(var(--ezplayer-footer-height, 80px) - 20px)}.ezplayer-mini-height .ezplayer-progress-slider{display:none!important}.ezplayer-mini-height .ezplayer-progress-plus{padding-bottom:0}.ezplayer-mini-height .ezplayer-progress-minus{padding-top:0}.ezplayer-zoom-panel{bottom:0;display:inline-flex;flex-direction:column;height:100%;justify-content:flex-end;left:20px;padding-bottom:calc(var(--ezplayer-footer-height, 80px) + 20px);padding-top:10%;pointer-events:none;position:absolute;top:0;z-index:23}.ezplayer-zoom-panel .ezplayer-progress{height:200px;max-height:95%;pointer-events:auto}.ezplayer-mobile .ezplayer-zoom-panel{padding-bottom:calc(var(--ezplayer-mobile-footer-height, 54px) + 10px);padding-top:5%}.ezplayer-mobile.ezplayer-fullscreen .ezplayer-zoom-panel{padding-bottom:var(--ezplayer-mobile-fullscreen-footer-height,110px);padding-top:var(--ezplayer-mobile-fullscreen-header-height,75px)}
19
+ .ezplayer-medium-height .ezplayer-zoom-panel,.ezplayer-mini-height .ezplayer-zoom-panel{height:100%;padding-bottom:var(--ezplayer-footer-height,80px);padding-top:0}.ezplayer-mini-height .ezplayer-zoom-panel{padding-bottom:calc(var(--ezplayer-footer-height, 80px) - 20px)}.ezplayer-mini-height .ezplayer-progress-plus{padding-bottom:0}.ezplayer-mini-height .ezplayer-progress-minus{padding-top:0}.ezplayer-zoom-panel{bottom:0;display:inline-flex;flex-direction:column;height:100%;justify-content:flex-end;left:20px;padding-bottom:calc(var(--ezplayer-footer-height, 80px) + 20px);padding-top:10%;pointer-events:none;position:absolute;top:0;z-index:23}.ezplayer-zoom-panel .ezplayer-progress{height:200px;max-height:95%;pointer-events:auto}.ezplayer-mobile .ezplayer-zoom-panel{padding-bottom:calc(var(--ezplayer-mobile-footer-height, 54px) + 10px);padding-top:5%}.ezplayer-mobile.ezplayer-fullscreen .ezplayer-zoom-panel{padding-bottom:var(--ezplayer-mobile-fullscreen-footer-height,110px);padding-top:var(--ezplayer-mobile-fullscreen-header-height,75px)}
20
20
  .ezplayer-icon-talk-growth-dot1,.ezplayer-icon-talk-growth-dot2,.ezplayer-icon-talk-growth-dot3,.ezplayer-icon-talk-growth-dot4{color:var(--ezplayer-default-color,#fff)}.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-deafening .ezplayer-icon-talk-growth-dot1,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-deafening .ezplayer-icon-talk-growth-dot2,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-deafening .ezplayer-icon-talk-growth-dot3,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-deafening .ezplayer-icon-talk-growth-dot4,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-high .ezplayer-icon-talk-growth-dot2,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-high .ezplayer-icon-talk-growth-dot3,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-high .ezplayer-icon-talk-growth-dot4,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-low .ezplayer-icon-talk-growth-dot4,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-normal .ezplayer-icon-talk-growth-dot3,.ezplayer-control-talk.ezplayer-active.ezplayer-talk-gain-normal .ezplayer-icon-talk-growth-dot4{color:var(--ezplayer-active-color,#407aff)}
21
21
  .ezplayer-control-broadcast.ezplayer-active .ezplayer-icon-record-circle{color:var(--ezplayer-active-color,#407aff)}
22
- .ezplayer-control-aichat.ezplayer-active .ezplayer-icon-aichat{color:var(--ezplayer-active-color,#407aff)}
23
22
  .ezplayer-record-timer{align-items:center;background-color:#ff4c5c;border-radius:24px;color:#fff;display:inline-flex;flex-direction:row;left:50%;padding:2px 6px;position:absolute;top:60px;transform:translateX(-50%);-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:3}.ezplayer-record-timer .ezplayer-icon-record-circle{font-size:14px}.ezplayer-record-timer-time{font-weight:400;letter-spacing:1px;line-height:20px;margin-left:2px}
24
23
  .ezplayer-select-definition .ezplayer-select-panel{width:100px}.ezplayer-control-definition .ezplayer-select-btn{width:75px}
25
24
 
package/dist/style.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v2.1.1-beta.1
3
- * Copyright (c) 2026-02-05 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v2.1.2-beta.1
3
+ * Copyright (c) 2026-02-09 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  require("./style.css");
@@ -89,8 +89,6 @@ declare const EVENTS: {
89
89
  readonly talkVolumeChange: "talkVolumeChange";
90
90
  /** 语音广播状态变化 */
91
91
  readonly broadcastChange: "broadcastChange";
92
- /** AI对话框状态变化 */
93
- readonly aichatChange: "aichatChange";
94
92
  /** 动态切换日志配置 */
95
93
  readonly setLoggerOptions: "setLoggerOptions";
96
94
  readonly records: "records";
@@ -169,10 +167,6 @@ declare const EVENTS: {
169
167
  readonly broadcastChange: "Control.broadcastChange";
170
168
  /** 语音广播控件销毁 */
171
169
  readonly broadcastDestroy: "Control.broadcastDestroy";
172
- /** AI对话框状态变化 */
173
- readonly aichatChange: "Control.aichatChange";
174
- /** AI对话框控件销毁 */
175
- readonly aichatDestroy: "Control.aichatDestroy";
176
170
  /** 缩放比例改变 */
177
171
  readonly zoomChange: "Control.zoomChange";
178
172
  /** 音量调节面板 展示隐藏变换 */
@@ -948,8 +942,6 @@ type ControlType =
948
942
  | 'talk'
949
943
  /** 语音广播 */
950
944
  | 'broadcast'
951
- /** AI对话 */
952
- | 'aiChat'
953
945
  /** 电子放大 */
954
946
  | 'zoom'
955
947
  /** 清晰度, 兼容 hd */
@@ -1438,10 +1430,13 @@ declare class Theme extends EventEmitter {
1438
1430
  readonly talkingChange: "talkingChange";
1439
1431
  readonly talkVolumeChange: "talkVolumeChange";
1440
1432
  readonly broadcastChange: "broadcastChange";
1441
- readonly aichatChange: "aichatChange";
1442
- readonly setLoggerOptions: "setLoggerOptions";
1433
+ readonly setLoggerOptions: "setLoggerOptions"; /**
1434
+ * 更多控件(footer more)
1435
+ * @since 0.0.1
1436
+ * @private
1437
+ */
1443
1438
  readonly records: "records";
1444
- readonly ptzSpeedChange: "ptzSpeedChange"; /** 头部控件 @since 0.0.1 @private */
1439
+ readonly ptzSpeedChange: "ptzSpeedChange";
1445
1440
  readonly setVideoLevelList: "setVideoLevelList";
1446
1441
  readonly currentVideoLevel: "currentVideoLevel";
1447
1442
  readonly currentVideoLevelAuto: "currentVideoLevelAuto";
@@ -1460,6 +1455,7 @@ declare class Theme extends EventEmitter {
1460
1455
  readonly headerMoreShowControlsChange: "Control.headerMoreShowControlsChange";
1461
1456
  readonly headerMorePanelOpenChange: "Control.headerMorePanelOpenChange";
1462
1457
  readonly footerMoreShowControlsChange: "Control.footerMoreShowControlsChange";
1458
+ /** 电子放大倍数 @private */
1463
1459
  readonly footerMorePanelOpenChange: "Control.footerMorePanelOpenChange";
1464
1460
  readonly deviceDestroy: "Control.deviceDestroy";
1465
1461
  readonly recTypeChange: "Control.recTypeChange";
@@ -1468,9 +1464,6 @@ declare class Theme extends EventEmitter {
1468
1464
  readonly definitionList: "Control.definitionList";
1469
1465
  readonly definitionPanelOpenChange: "Control.definitionPanelOpenChange";
1470
1466
  readonly definitionDestroy: "Control.definitionDestroy";
1471
- /**
1472
- * 录像回放的月份列表 @private
1473
- */
1474
1467
  readonly speedChange: "Control.speedChange";
1475
1468
  readonly speedPanelOpenChange: "Control.speedPanelOpenChange";
1476
1469
  readonly speedDestroy: "Control.speedDestroy";
@@ -1485,8 +1478,6 @@ declare class Theme extends EventEmitter {
1485
1478
  readonly talkDestroy: "Control.talkDestroy";
1486
1479
  readonly broadcastChange: "Control.broadcastChange";
1487
1480
  readonly broadcastDestroy: "Control.broadcastDestroy";
1488
- readonly aichatChange: "Control.aichatChange";
1489
- readonly aichatDestroy: "Control.aichatDestroy";
1490
1481
  readonly zoomChange: "Control.zoomChange";
1491
1482
  readonly zoomPanelOpenChange: "Control.zoomPanelOpenChange";
1492
1483
  readonly zoomDestroy: "Control.zoomDestroy";
@@ -1708,7 +1699,6 @@ declare class Theme extends EventEmitter {
1708
1699
  BTN_CAPTURE: string;
1709
1700
  BTN_TALK: string;
1710
1701
  BTN_BROADCAST: string;
1711
- BTN_AICHAT: string;
1712
1702
  BTN_ZOOM: string;
1713
1703
  BTN_3D_ZOOM: string;
1714
1704
  BTN_PTZ: string;
@@ -1727,7 +1717,6 @@ declare class Theme extends EventEmitter {
1727
1717
  DEVICE_ID: string;
1728
1718
  CAPTURE_SUCCESS: string;
1729
1719
  CAPTURE_FAILED: string;
1730
- /** resizeObserver 监听销毁 */
1731
1720
  START_RECORD_SUCCESS: string;
1732
1721
  START_RECORD_FAILED: string;
1733
1722
  STOP_RECORD_SUCCESS: string;
@@ -1737,7 +1726,7 @@ declare class Theme extends EventEmitter {
1737
1726
  OPEN_SOUND: string;
1738
1727
  CLOSE_SOUND: string;
1739
1728
  SOUND_OPENED: string;
1740
- ZOOM: string;
1729
+ ZOOM: string; /** 当前容器的全屏状态 true: 全屏, false: 非全屏 */
1741
1730
  START_ZOOM: string;
1742
1731
  CLOSE_ZOOM: string;
1743
1732
  ZOOM_ADD: string;
@@ -1746,10 +1735,10 @@ declare class Theme extends EventEmitter {
1746
1735
  ZOOM_SUB_MIN: string;
1747
1736
  ZOOM_LIMIT_MAX: string;
1748
1737
  ZOOM_LIMIT_MIN: string;
1749
- ZOOM_NOT_ENABLED: string;
1738
+ ZOOM_NOT_ENABLED: string; /** 音量 */
1750
1739
  '3D_ZOOM': string;
1751
1740
  '3D_ZOOM_DISABLE': string;
1752
- '3D_ZOOM_FAILED': string; /** 放大中 true: 可缩放状态,false: 禁止缩放状态(不能缩放) @private */
1741
+ '3D_ZOOM_FAILED': string;
1753
1742
  START_3D_ZOOM: string;
1754
1743
  CLOSE_3D_ZOOM: string;
1755
1744
  DEVICE_NOT_SUPPORT_3D_ZOOM: string;
@@ -1764,7 +1753,14 @@ declare class Theme extends EventEmitter {
1764
1753
  WEB_FULLSCREEN_EXIT: string;
1765
1754
  DESTROY: string;
1766
1755
  GET_CAPACITY: string;
1767
- GET_PTZ_STATUS: string;
1756
+ GET_PTZ_STATUS: string; /**
1757
+ // * 记录回放的月份
1758
+ // *
1759
+ // * key: {序列号}_{通道号}_{rec | cloud | cloudRecord} 比如:BC7799091_1_rec BC7799091_1_cloud BC7799091_1_cloudRecord
1760
+ // *
1761
+ // * value: 月份列表 比如 ["2025-12-01", "2025-12-02"]
1762
+ // * @private
1763
+ // */
1768
1764
  /**
1769
1765
  * 录像回放的月份列表 @private
1770
1766
  */
@@ -1773,9 +1769,6 @@ declare class Theme extends EventEmitter {
1773
1769
  OPTION_PTZ_FAILED: string;
1774
1770
  MOBILE_PTZ_TIPS: string;
1775
1771
  PTZ_FAST: string;
1776
- /**
1777
- * 录像回放的月份列表 @private
1778
- */
1779
1772
  PTZ_MID: string;
1780
1773
  PTZ_SLOW: string;
1781
1774
  PTZ_SPEED: string;
@@ -1993,7 +1986,6 @@ declare class Theme extends EventEmitter {
1993
1986
  */
1994
1987
  BTN_TALK: string;
1995
1988
  BTN_BROADCAST: string;
1996
- BTN_AICHAT: string;
1997
1989
  BTN_ZOOM: string;
1998
1990
  BTN_3D_ZOOM: string;
1999
1991
  BTN_PTZ: string;
package/package.json CHANGED
@@ -1,17 +1,10 @@
1
1
  {
2
2
  "name": "@ezuikit/player-theme",
3
- "version": "2.1.1-beta.1",
3
+ "version": "2.1.2-beta.1",
4
4
  "description": "player theme",
5
5
  "title": "theme",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/types/index.d.ts",
8
- "scripts": {
9
- "dev": "cross-env NODE_ENV=development rollup --config rollup.config.mjs --watch",
10
- "build": "npm run clean && cross-env NODE_ENV=production rollup --config rollup.config.mjs",
11
- "clean": "rimraf docs dist coverage",
12
- "types": "tsc src/index.ts --emitDeclarationOnly --declaration --declarationDir dist/types --esModuleInterop",
13
- "docs": "typedoc --tsconfig typedoc.config.js"
14
- },
15
8
  "files": [
16
9
  "dist"
17
10
  ],