@ezuikit/player-theme 2.0.2-beta.9 → 2.0.3-beta.2

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.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v2.0.2-beta.9
3
- * Copyright (c) 2025-12-12 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v2.0.3-beta.2
3
+ * Copyright (c) 2025-12-25 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  require("./style.css");
@@ -17,6 +17,209 @@ declare const THEME_SCALE_MODE_TYPE: {
17
17
  readonly fullAuto: 2;
18
18
  };
19
19
  declare const THEME_PROPS: readonly ["width", "height", "playing", "volume", "muted", "loading", "recType", "isCurrentFullscreen", "orientationAngle", "zooming", "zoom", "recording", "recordList", "speed", "urlInfo", "videoLevelList", "videoLevel", "recMonth"];
20
+ /**
21
+ *
22
+ * 事件名
23
+ *
24
+ * --------------- ------------------
25
+ * - - theme.emit(EVENTS.xxxxx) - -
26
+ * - - -------------------------------------> - -
27
+ * - - - -
28
+ * - Theme - - Controls -
29
+ * - - control.emit(EVENTS.control.xxx) - -
30
+ * - - <-------------------------------------- - -
31
+ * --------------- ------------------
32
+ *
33
+ * @example
34
+ * ```ts
35
+ * theme.on(EVENTS.loading)
36
+ * theme.on(EVENTS.loading)
37
+ * ```
38
+ *
39
+ */
40
+ declare const EVENTS: {
41
+ readonly loading: "loading";
42
+ /** 播放 */
43
+ readonly play: "play";
44
+ /** 截图 */
45
+ readonly capturePicture: "capturePicture";
46
+ /** 音量变化 */
47
+ readonly volumechange: "volumechange";
48
+ /** 缩放变化 */
49
+ readonly zoomChange: "zoomChange";
50
+ /** 缩放状态变化, true: 可缩放状态,false: 禁止缩放状态(不能缩放) */
51
+ readonly zoomingChange: "zoomingChange";
52
+ /** 缩放平移改变 */
53
+ readonly zoomTranslateChange: "zoomTranslateChange";
54
+ /** 音频信息 */
55
+ readonly audioInfo: "audioInfo";
56
+ /** 视频信息 */
57
+ readonly videoInfo: "videoInfo";
58
+ /** 首帧 */
59
+ readonly firstFrameDisplay: "firstFrameDisplay";
60
+ /** 全屏 */
61
+ readonly fullscreen: "fullscreen";
62
+ /** 退出全屏 */
63
+ readonly exitFullscreen: "exitFullscreen";
64
+ /**
65
+ * 全屏变化(移动端也支持触发, 不过移动端是模拟的web全屏 即旋转 180度)
66
+ * 当 isCurrentFullscreen 为 true 时,表示当前容器全局全屏状态
67
+ *
68
+ * 注意:同一个页面中只要有全屏的操作或取消全屏的操作,都会触发该事件 (移动端除外)
69
+ */
70
+ readonly fullscreenChange: "fullscreenChange";
71
+ /** 重置容器尺寸 */
72
+ readonly resize: "resize";
73
+ /** 屏幕旋转方向变化 */
74
+ readonly orientationChange: "orientationChange";
75
+ /** 音频编码不支持 (暂时仅支持标准流 flv) */
76
+ readonly audioCodecUnsupported: "audioCodecUnsupported";
77
+ /** 切换主题 themeDate 变化时 */
78
+ readonly changeTheme: "changeTheme";
79
+ /** 回放类型切换 */
80
+ readonly recTypeChange: "recTypeChange";
81
+ /** 切换清晰度 */
82
+ readonly definitionChange: "definitionChange";
83
+ /** 播放速度切换 */
84
+ readonly speedChange: "speedChange";
85
+ /** 控件开始录制 */
86
+ readonly recordingChange: "recordingChange";
87
+ /** 对讲状态变化 */
88
+ readonly talkingChange: "talkingChange";
89
+ /** 麦克风音量变化 */
90
+ readonly talkVolumeChange: "talkVolumeChange";
91
+ /** 动态切换日志配置 */
92
+ readonly setLoggerOptions: "setLoggerOptions";
93
+ readonly records: "records";
94
+ readonly ptzSpeedChange: "ptzSpeedChange";
95
+ readonly setVideoLevelList: "setVideoLevelList";
96
+ readonly currentVideoLevel: "currentVideoLevel";
97
+ readonly currentVideoLevelAuto: "currentVideoLevelAuto";
98
+ readonly setAllDayRecTimes: "setAllDayRecTimes";
99
+ readonly getOSDTime: "getOSDTime";
100
+ /**
101
+ * 控件相关
102
+ */
103
+ readonly control: {
104
+ /** 点击播放播放/暂停按钮 */
105
+ readonly play: "Control.play";
106
+ /** 播放控件销毁 */
107
+ readonly playDestroy: "Control.playDestroy";
108
+ /** 截图 */
109
+ readonly capturePicture: "Control.capturePicture";
110
+ /** 截图结果 */
111
+ readonly capturePictureResult: "Control.capturePictureResult";
112
+ /** 截图控件销毁 */
113
+ readonly capturePictureDestroy: "Control.capturePictureDestroy";
114
+ /** 音量变化 */
115
+ readonly volumechange: "Control.volumechange";
116
+ /** 音量调节面板 展示隐藏变换 */
117
+ readonly volumePanelOpenChange: "Control.volumePanelOpenChange";
118
+ /** 音量控件销毁 */
119
+ readonly volumeDestroy: "Control.volumeDestroy";
120
+ /** 控件组件栏(Header/Footer)展示隐藏 */
121
+ readonly controlsBarOpenChange: "Control.controlsBarOpenChange";
122
+ /** 当顶部控件栏(header)控件放置不下时, 显示的更多按钮的控件列表变化 */
123
+ readonly headerMoreShowControlsChange: "Control.headerMoreShowControlsChange";
124
+ /** 当顶部控件栏(header)控件放置不下时, 更多按钮 展示隐藏变换 */
125
+ readonly headerMorePanelOpenChange: "Control.headerMorePanelOpenChange";
126
+ /** 当底部控件栏(footer)控件放置不下时, 显示的更多按钮的控件列表变化 */
127
+ readonly footerMoreShowControlsChange: "Control.footerMoreShowControlsChange";
128
+ /** 当底部控件栏(footer)控件放置不下时, 更多按钮 展示隐藏变换 */
129
+ readonly footerMorePanelOpenChange: "Control.footerMorePanelOpenChange";
130
+ /** 设备信息控件销毁 */
131
+ readonly deviceDestroy: "Control.deviceDestroy";
132
+ /** 回放类型切换控件 */
133
+ readonly recTypeChange: "Control.recTypeChange";
134
+ /** 回放类型控件销毁 */
135
+ readonly recDestroy: "Control.recDestroy";
136
+ /** 切换清晰度控件 */
137
+ readonly definitionChange: "Control.definitionChange";
138
+ readonly definitionList: "Control.definitionList";
139
+ /** 切换清晰度面板 展示隐藏变换, (open, definition, item) */
140
+ readonly definitionPanelOpenChange: "Control.definitionPanelOpenChange";
141
+ /** 切换清晰度控件 */
142
+ readonly definitionDestroy: "Control.definitionDestroy";
143
+ /** 播放速度切换 */
144
+ readonly speedChange: "Control.speedChange";
145
+ /** 播放速度面板 显示隐藏变换 */
146
+ readonly speedPanelOpenChange: "Control.speedPanelOpenChange";
147
+ /** 播放速度控件销毁 */
148
+ readonly speedDestroy: "Control.speedDestroy";
149
+ /** 云台面板 显示隐藏变换 */
150
+ readonly ptzPanelOpenChange: "Control.ptzPanelOpenChange";
151
+ /** 云台速度切换 */
152
+ readonly ptzSpeedChange: "Control.ptzSpeedChange";
153
+ readonly ptzError: "Control.ptzError";
154
+ /** 云台控件销毁 */
155
+ readonly ptzDestroy: "Control.ptzDestroy";
156
+ /** 录制控件是否在录制中 */
157
+ readonly recordingChange: "Control.recordingChange";
158
+ readonly recordDestroy: "Control.recordDestroy";
159
+ /** 开始对讲 */
160
+ readonly talkingChange: "Control.talkingChange";
161
+ /** 对讲错误, 一般是麦克风权限被拒绝 */
162
+ readonly talkError: "Control.talkError";
163
+ /** 对讲控件销毁 */
164
+ readonly talkDestroy: "Control.talkDestroy";
165
+ /** 缩放比例改变 */
166
+ readonly zoomChange: "Control.zoomChange";
167
+ /** 音量调节面板 展示隐藏变换 */
168
+ readonly zoomPanelOpenChange: "Control.zoomPanelOpenChange";
169
+ /** 缩放控件销毁 */
170
+ readonly zoomDestroy: "Control.zoomDestroy";
171
+ /** 全屏控件销毁 */
172
+ readonly fullscreenDestroy: "Control.fullscreenDestroy";
173
+ /** 全局全屏控件销毁 */
174
+ readonly globalFullscreenDestroy: "Control.globalFullscreenDestroy";
175
+ /** 日期面板展示隐藏变换 */
176
+ readonly datePanelOpenChange: "Control.datePanelOpenChange";
177
+ /** 日期改变 */
178
+ readonly dateChange: "Control.dateChange";
179
+ /** 日期改变 */
180
+ readonly dateMonthChange: "Control.dateMonthChange";
181
+ /** 日期销毁 */
182
+ readonly dateDestroy: "Control.datePanelDestroy";
183
+ /** 时间轴拖动结束 */
184
+ readonly timeLineChange: "Control.timeLineChange";
185
+ /** 时间轴图片列表面板 */
186
+ readonly timeLinePanelOpenChange: "Control.timeLinePanelOpenChange";
187
+ /** 时间轴控件销毁 */
188
+ readonly timeLineDestroy: "Control.timeLineDestroy";
189
+ /** 主题控件挂载前 切换新的主题也会触发,如果想首次获取需要在 onInitializing 回调中进行监听 */
190
+ readonly beforeMountControls: "Control.beforeMountControls";
191
+ /** 主题控件挂载完成, 切换新的主题也会触发,如果想首次获取需要在 onInitializing 回调中进行监听 */
192
+ readonly mountedControls: "Control.mountedControls";
193
+ /** 主题控件卸载前, 已有控件卸载时才可触发 */
194
+ readonly beforeUnmountControls: "Control.beforeUnmountControls";
195
+ /** 主题控件卸载完成, 已有控件卸载时才可触发 */
196
+ readonly unmountedControls: "Control.unmountedControls";
197
+ /** 封面控件销毁 */
198
+ readonly posterDestroy: "Control.posterDestroy";
199
+ /** 加载控件销毁 */
200
+ readonly loadingDestroy: "Control.loadingDestroy";
201
+ /** 消息控件销毁 */
202
+ readonly messageDestroy: "Control.messageDestroy";
203
+ /** 播放器内容区域销毁 */
204
+ readonly contentDestroy: "Control.contentDestroy";
205
+ /** 播放器内容区域重新渲染 */
206
+ readonly contentRerender: "Control.contentRerender";
207
+ };
208
+ /**
209
+ * 主题控件相关
210
+ */
211
+ readonly theme: {
212
+ /** 销毁前 */
213
+ readonly beforeDestroy: "Theme.beforeDestroy";
214
+ /** 销毁后 */
215
+ readonly destroyed: "Theme.destroyed";
216
+ /** 移动端扩展销毁 */
217
+ readonly mobileExtendDestroy: "Theme.mobileExtendDestroy";
218
+ /** 回放页底部销毁 */
219
+ readonly recFooterDestroy: "Theme.recFooterDestroy";
220
+ };
221
+ readonly message: "message";
222
+ };
20
223
 
21
224
  /**
22
225
  * 控件基类配置项
@@ -2573,5 +2776,5 @@ declare class Utils {
2573
2776
  static resizeObserver(node: Element, callback?: (entries: ResizeObserverEntry[], observer: ResizeObserver) => void): CleanUpResizeObserver;
2574
2777
  }
2575
2778
 
2576
- export { Control, Fullscreen, Loading, Message, Play, Poster, Rec, Theme, Utils, Volume };
2779
+ export { Control, EVENTS, Fullscreen, Loading, Message, Play, Poster, Rec, Theme, Utils, Volume };
2577
2780
  export type { CleanUpResizeObserver, CleanUpScreenOrientationFun, ControlItem, ControlOptions, FooterOptions, FullscreenOptions, HeaderOptions, IThemeData, IThemeDataItem, LoadingOptions, MessageOptions, PlayOptions, PosterOptions, RecOptions, ScreenOrientation, ThemeOptions, VolumeOptions };
package/package.json CHANGED
@@ -1,17 +1,10 @@
1
1
  {
2
2
  "name": "@ezuikit/player-theme",
3
- "version": "2.0.2-beta.9",
3
+ "version": "2.0.3-beta.2",
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
  ],
@@ -29,9 +22,9 @@
29
22
  "@ezuikit/utils-logger": "2.0.0",
30
23
  "@ezuikit/utils-tools": "2.0.1",
31
24
  "@ezuikit/control-date-picker": "1.0.3",
32
- "@ezuikit/control-time-line": "1.0.4",
25
+ "@ezuikit/control-time-line": "1.0.5",
33
26
  "@juggle/resize-observer": "^3.4.0",
34
- "@skax/delegate": "4.0.1",
27
+ "@skax/delegate": "4.0.2",
35
28
  "@skax/picker": "1.1.7",
36
29
  "deepmerge": "^4.3.1",
37
30
  "eventemitter3": "^5.0.1",