ezuikit-js 8.1.12-beta.2 → 8.1.12-beta.3

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/CHANGELOG.md CHANGED
@@ -1,27 +1,19 @@
1
- ### v8.1.12 (2025-07-02)
1
+ ### v8.1.10 2025-05-20)
2
2
 
3
3
  #### Feat
4
4
 
5
- - 优化对讲模块逻辑
5
+ - 优化取流逻辑
6
6
 
7
- - 修复了一些取流问题
8
-
9
- ### v8.1.10 (2025-04-27)
10
-
11
- #### Feat
12
-
13
- - 优化取流逻辑,
14
-
15
- - 弃用 `host`, `host` 默认从播放地址中获取
16
-
17
- - 新增初始化 `videoLevelList` 参数进行自定义清晰度列表
7
+ - 弃用 `host`,`host` 默认从播放地址中获取
18
8
 
19
9
  #### Fixed
20
10
 
21
- - 修复 `autoplay` 为 false 时, 不能播放问题
11
+ - 修复 `autoplay` 为 false 时, 不能播放
22
12
 
23
13
  - 修复多窗口下对讲回调只会触发最后初始化的播放器
24
14
 
15
+ - 修复
16
+
25
17
  ### v8.1.9 (2025-04-16)
26
18
 
27
19
  #### Feat
package/README.md CHANGED
@@ -31,23 +31,20 @@ pnpm add ezuikit-js
31
31
 
32
32
  ```js
33
33
  // >= v8.1.2 ESM
34
- import { EZUIKitPlayer } from "ezuikit-js";
34
+ import { EZUIKitPlayer } from 'ezuikit-js';
35
35
 
36
36
  // < v8.1.2
37
- import EZUIKit from "ezuikit-js";
37
+ import EZUIKit from 'ezuikit-js';
38
38
  ```
39
39
 
40
40
  #### 不支持 ESM (not support ESM)
41
41
 
42
42
  ```js
43
- // UMD
44
- import EZUIKit from "ezuikit-js/ezuikit.js";
45
-
46
43
  // >= v8.1.2 CommonJS
47
- import { EZUIKitPlayer } from "ezuikit-js/index.js";
44
+ import { EZUIKitPlayer } from 'ezuikit-js/index.js';
48
45
 
49
46
  // < v8.1.2 CommonJS
50
- import EZUIKit from "ezuikit-js/index.js";
47
+ import EZUIKit from 'ezuikit-js/index.js';
51
48
  ```
52
49
 
53
50
  #### 如果你使用原生方法,可以通过标签引用
@@ -72,16 +69,15 @@ import EZUIKit from "ezuikit-js/index.js";
72
69
  ### 直播
73
70
 
74
71
  ```js
75
- import { EZUIKitPlayer } from "ezuikit-js";
72
+ import { EZUIKitPlayer } from 'ezuikit-js';
76
73
  const player = new EZUIKitPlayer({
77
- id: "video-container", // 视频容器ID
78
- accessToken:
79
- "at.3bvmj4ycamlgdwgw1ig1jruma0wpohl6-48zifyb39c-13t5am6-yukyi86mz",
80
- url: "ezopen://open.ys7.com/BD3957004/1.live",
74
+ id: 'video-container', // 视频容器ID
75
+ accessToken: 'at.3bvmj4ycamlgdwgw1ig1jruma0wpohl6-48zifyb39c-13t5am6-yukyi86mz',
76
+ url: 'ezopen://open.ys7.com/BD3957004/1.live',
81
77
  width: 600,
82
78
  height: 400,
83
79
  handleError: (err) => {
84
- if (err.type === "handleRunTimeInfoError" && err.data.nErrorCode === 5) {
80
+ if (err.type === 'handleRunTimeInfoError' && err.data.nErrorCode === 5) {
85
81
  // 加密设备密码错误
86
82
  }
87
83
  },
@@ -91,14 +87,13 @@ const player = new EZUIKitPlayer({
91
87
  ### 回放
92
88
 
93
89
  ```js
94
- import { EZUIKitPlayer } from "ezuikit-js";
90
+ import { EZUIKitPlayer } from 'ezuikit-js';
95
91
  const player = new EZUIKitPlayer({
96
- id: "video-container", // 视频容器ID
92
+ id: 'video-container', // 视频容器ID
97
93
  width: 600,
98
94
  height: 400,
99
- accessToken:
100
- "at.3bvmj4ycamlgdwgw1ig1jruma0wpohl6-48zifyb39c-13t5am6-yukyi86mz",
101
- url: "ezopen://open.ys7.com/BD3957004/1.rec",
95
+ accessToken: 'at.3bvmj4ycamlgdwgw1ig1jruma0wpohl6-48zifyb39c-13t5am6-yukyi86mz',
96
+ url: 'ezopen://open.ys7.com/BD3957004/1.rec',
102
97
  });
103
98
  ```
104
99
 
@@ -116,16 +111,10 @@ alpha(功能测试)、beta(集成测试)为我们的非正式版本,
116
111
 
117
112
  > 如果使用 react + vite,可参考 demos => [with-react-vite](https://github.com/Ezviz-OpenBiz/EZUIKit-JavaScript-npm/tree/master/demos/with-react-vite)
118
113
 
119
- > 如果使用 next.js,可参考 demos => [with-next](https://github.com/Ezviz-OpenBiz/EZUIKit-JavaScript-npm/tree/master/demos/with-next)
120
-
121
- > 如果使用 electron,可参考 demos => [with-electron](https://github.com/Ezviz-OpenBiz/EZUIKit-JavaScript-npm/tree/master/demos/with-electron)
114
+ > 如果使用 vue2,可参考 demos => [vue-demo](https://github.com/Ezviz-OpenBiz/EZUIKit-JavaScript-npm/tree/master/demos/vue-demo)
122
115
 
123
116
  > 如果使用 vue3,可参考 demos => [vue3-demo](https://github.com/Ezviz-OpenBiz/EZUIKit-JavaScript-npm/tree/master/demos/vue3-demo)
124
117
 
125
- > 如果使用 vue2.7,可参考 demos => [vue-demo](https://github.com/Ezviz-OpenBiz/EZUIKit-JavaScript-npm/tree/master/demos/vue-demo)
126
-
127
- > 如果使用 vue2.6,可参考 demos => [with-vue2.6](https://github.com/Ezviz-OpenBiz/EZUIKit-JavaScript-npm/tree/master/demos/with-vue2.6)
128
-
129
118
  #### tips
130
119
 
131
120
  为方便开发者快速接入
@@ -141,16 +130,16 @@ alpha(功能测试)、beta(集成测试)为我们的非正式版本,
141
130
  > 轻应用支持向接入萤石云海外环境的设备发起取流播放,需要在初始化时配置海外服务域名,示例:
142
131
 
143
132
  ```js
144
- import { EZUIKitPlayer } from "ezuikit-js";
133
+ import { EZUIKitPlayer } from 'ezuikit-js';
145
134
  const player = new EZUIKitPlayer({
146
- id: "playWind",
135
+ id: 'playWind',
147
136
  width: 600,
148
137
  height: 400,
149
- template: "pcLive",
150
- url: "",
151
- accessToken: "",
138
+ template: 'pcLive',
139
+ url: '',
140
+ accessToken: '',
152
141
  env: {
153
- domain: "https://iusopen.ezvizlife.com", // 北美地区
142
+ domain: 'https://iusopen.ezvizlife.com', // 北美地区
154
143
  },
155
144
  });
156
145
  ```
@@ -179,19 +168,19 @@ const player = new EZUIKitPlayer({
179
168
 
180
169
  ### 使用示例
181
170
 
182
- #### 快速创建视频播放页面
171
+ > 1. 快速创建视频播放页面
183
172
 
184
173
  &emsp;&emsp;&emsp;&emsp;<b>基本使用:</b> <a href="https://github.com/Ezviz-OpenBiz/EZUIKit-JavaScript-npm/blob/master/demos/base-demo/index.html" target="_blank">基本使用示例</a>
185
174
 
186
- #### 前往[开放平台轻应用模板管理页](https://open.ys7.com/console/ezuikit/template.html)创建一个主题,可以动态配置你的播放主题,控件,示例展示了获取一个主题后使用示例。
175
+ > 2. 前往[开放平台轻应用模板管理页](https://open.ys7.com/console/ezuikit/template.html)创建一个主题,可以动态配置你的播放主题,控件,示例展示了获取一个主题后使用示例。
187
176
 
188
177
  &emsp;&emsp;&emsp;&emsp;<b>自定义主题:</b> <a href="https://github.com/Ezviz-OpenBiz/EZUIKit-JavaScript-npm/blob/master/demos/base-demo/template.html" target="_blank">自定义主题示例</a>
189
178
 
190
- #### 你可以本地创建一个主题配置,可以本地配置你的播放主题,控件,示例展示了本地配置项使用示例。
179
+ > 3. 你可以本地创建一个主题配置,可以本地配置你的播放主题,控件,示例展示了本地配置项使用示例。
191
180
 
192
181
  &emsp;&emsp;&emsp;&emsp;<b>本地主题配置:</b> <a href="https://github.com/Ezviz-OpenBiz/EZUIKit-JavaScript-npm/blob/master/demos/base-demo/themeData.html" target="_blank">本地主题配置示例</a>
193
182
 
194
- #### 我们提供了一些通用场景的主题,PC 端预览,PC 端回放,移动端预览,移动端回放,你也可以直接使用。
183
+ > 4. 我们提供了一些通用场景的主题,PC 端预览,PC 端回放,移动端预览,移动端回放,你也可以直接使用。
195
184
 
196
185
  &emsp;&emsp;&emsp;&emsp;<b>PC 端预览-固定主题:</b> <a href="https://github.com/Ezviz-OpenBiz/EZUIKit-JavaScript-npm/blob/master/demos/base-demo/pcLive.html" target="_blank">PC 端预览-固定主题示例</a>
197
186
 
@@ -201,7 +190,7 @@ const player = new EZUIKitPlayer({
201
190
 
202
191
  &emsp;&emsp;&emsp;&emsp;<b>移动端回放-固定主题:</b> <a href="https://github.com/Ezviz-OpenBiz/EZUIKit-JavaScript-npm/blob/master/demos/base-demo/mobileRec.html" target="_blank">移动端回放-固定主题示例</a>
203
192
 
204
- #### 同一个页面播放多个视频,可以参考:
193
+ > 同一个页面播放多个视频,可以参考:
205
194
 
206
195
  &emsp;&emsp;&emsp;&emsp;<b>单页面多实例(视频多窗口):</b> <a href="https://github.com/Ezviz-OpenBiz/EZUIKit-JavaScript-npm/blob/master/demos/base-demo/multi.html" target="_blank">单页面多实例(视频多窗口)示例</a>
207
196
 
@@ -256,11 +245,131 @@ ezopen://open.ys7.com/${设备序列号}/{通道号}.hd.live<br/>
256
245
  </table>
257
246
 
258
247
  </td><td>N</td></tr>
259
- <tr><td><a href="./themeData.md" target="_blank">themeData</a></td><td><a href="./themeData.md" target="_blank">ThemeData</a></td><td>
248
+ <tr><td>themeData</td><td>Object</td><td>
260
249
  themeData将主题数据本地化,设置本地数据,需要删除template参数 <br />
261
250
  你可以通过themeData修改按钮位置,颜色,头部底部颜色等配置。
262
251
 
263
- 配置示例:<a href="https://github.com/Ezviz-OpenBiz/EZUIKit-JavaScript-npm/blob/master/demos/base-demo/themeData.html" target="_blank">本地主题配置示例</a>
252
+ 配置示例:
253
+
254
+ <pre><code>
255
+
256
+ {
257
+ "autoFocus": 5,
258
+ "poster":"https://resource.eziot.com/group1/M00/00/89/CtwQEmLl8r-AZU7wAAETKlvgerU237.png",
259
+ "header": {
260
+ "color": "#1890ff",
261
+ "activeColor": "#FFFFFF",
262
+ "backgroundColor": "#000000",
263
+ "btnList": [
264
+ {
265
+ "iconId": "deviceID",
266
+ "part": "left",
267
+ "defaultActive": 0,
268
+ "memo": "顶部设备名称",
269
+ "isrender": 1
270
+ },
271
+ {
272
+ "iconId": "deviceName",
273
+ "part": "left",
274
+ "defaultActive": 0,
275
+ "memo": "顶部设备ID",
276
+ "isrender": 1
277
+ },
278
+ {
279
+ "iconId": "cloudRec",
280
+ "part": "right",
281
+ "defaultActive": 0,
282
+ "memo": "头部云存储回放",
283
+ "isrender": 0
284
+ },
285
+ {
286
+ "iconId": "rec",
287
+ "part": "right",
288
+ "defaultActive": 0,
289
+ "memo": "头部本地回放",
290
+ "isrender": 0
291
+ }
292
+ ]
293
+ },
294
+ "footer": {
295
+ "color": "#FFFFFF",
296
+ "activeColor": "#1890FF",
297
+ "backgroundColor": "#00000021",
298
+ "btnList": [
299
+ {
300
+ "iconId": "play",
301
+ "part": "left",
302
+ "defaultActive": 1,
303
+ "memo": "播放",
304
+ "isrender": 1
305
+ },
306
+ {
307
+ "iconId": "capturePicture",
308
+ "part": "left",
309
+ "defaultActive": 0,
310
+ "memo": "截屏按钮",
311
+ "isrender": 1
312
+ },
313
+ {
314
+ "iconId": "sound",
315
+ "part": "left",
316
+ "defaultActive": 0,
317
+ "memo": "声音按钮",
318
+ "isrender": 1
319
+ },
320
+ {
321
+ "iconId": "pantile",
322
+ "part": "left",
323
+ "defaultActive": 0,
324
+ "memo": "云台控制按钮",
325
+ "isrender": 1
326
+ },
327
+ {
328
+ "iconId": "recordvideo",
329
+ "part": "left",
330
+ "defaultActive": 0,
331
+ "memo": "录制按钮",
332
+ "isrender": 1
333
+ },
334
+ {
335
+ "iconId": "talk",
336
+ "part": "left",
337
+ "defaultActive": 0,
338
+ "memo": "对讲按钮",
339
+ "isrender": 1
340
+ },
341
+ {
342
+ "iconId": "zoom",
343
+ "part": "left",
344
+ "defaultActive": 0,
345
+ "memo": "电子放大",
346
+ "isrender": 1
347
+ },
348
+ {
349
+ "iconId": "hd",
350
+ "part": "right",
351
+ "defaultActive": 0,
352
+ "memo": "清晰度切换按钮",
353
+ "isrender": 1
354
+ },
355
+ {
356
+ "iconId": "webExpend",
357
+ "part": "right",
358
+ "defaultActive": 0,
359
+ "memo": "网页全屏按钮",
360
+ "isrender": 1
361
+ },
362
+ {
363
+ "iconId": "expend",
364
+ "part": "right",
365
+ "defaultActive": 0,
366
+ "memo": "全局全屏按钮",
367
+ "isrender": 1
368
+ }
369
+ ]
370
+ }
371
+ }
372
+ </code></pre>
264
373
 
265
374
  </td><td>N</td></tr>
266
375
  <tr><td>plugin</td><td>String</td><td>按需加载插件,可选值: talk:对讲,示例:plugin:["talk"] </td><td>N</td></tr>
@@ -273,8 +382,6 @@ themeData将主题数据本地化,设置本地数据,需要删除template参
273
382
  <tr><td>quality</td><td>0 | 1 | 2 | 3 | 4 | 5 | 6 | pp | qp</td><td>预览初始化支持指定清晰度进行播放, 默认 undefined (v8.1.5版本及以上支持), 0: 流畅; 1: 标清; 2: 高清; 3: 超清; 4: 极清; 5: 3K; 6: 4K ; "pp": "性能优先 (Performance Priority)"; "qp": "画质优先(Quality Priority)"。</td><td>N</td></tr>
274
383
  <tr><td>loggerOptions</td><td> {name: string, level: "INFO" | "LOG" | "WARN" | "ERROR" , showTime: boolean}</td><td>本地日志设置, 默认值 {name: "ezuikit", level: "INFO", showTime: true}, 支持动态设置请参考 <a href="#日志设置">setLoggerOptions(options)</a> (v8.1.9版本及以上支持)</td><td>N</td></tr>
275
384
  <tr><td>streamInfoCBType</td><td> 0 | 1 </td><td> 流信息回调类型,监听 streamInfoCB 事件, 0 : 每次都回调(会影响性能), 1 : 只回调一次, 默认值 1 (v8.1.9版本及以上支持)</td><td>N</td></tr>
276
-
277
- <tr><td><a href="./videoLevelList.md" target="_blank">videoLevelList</a></td><td> <span>Array<{ </br>/** 清晰度 */</br>level: number, </br>/** 名称 */ </br>name: string, </br> /**1: 主码流,2: 子码流*/</br>streamTypeIn: 1 | 2 }> <span>| null </td><td> 自定义清晰度列表,默认null, 如果有值 sdk 内部不在进行获取, 为 null 使用接口获取的清晰度列表, videoLevelList.length === 0 不展示清晰度控件 sdk 内部不在进行获取, videoLevelList.length > 0 展示控件 sdk 内部不在进行获取 (v8.1.10版本及以上支持)</td><td>N</td></tr>
278
385
  </table>
279
386
 
280
387
  ### 方法调用
@@ -288,7 +395,7 @@ themeData将主题数据本地化,设置本地数据,需要删除template参
288
395
  player.play();
289
396
  // 方式2
290
397
  player.play().then(() => {
291
- console.log("执行播放成功后其他动作");
398
+ console.log('执行播放成功后其他动作');
292
399
  });
293
400
  ```
294
401
 
@@ -299,7 +406,7 @@ player.play().then(() => {
299
406
  player.stop();
300
407
  // 方式2
301
408
  player.stop().then(() => {
302
- console.log("执行停止成功后其他动作");
409
+ console.log('执行停止成功后其他动作');
303
410
  });
304
411
  ```
305
412
 
@@ -310,7 +417,7 @@ player.stop().then(() => {
310
417
  player.openSound();
311
418
  // 方式2
312
419
  player.openSound().then(() => {
313
- console.log("执行开启声音成功后其他动作");
420
+ console.log('执行开启声音成功后其他动作');
314
421
  });
315
422
  ```
316
423
 
@@ -327,10 +434,10 @@ player.closeSound();
327
434
 
328
435
  ```js
329
436
  // 方式1
330
- player.startSave("唯一文件名");
437
+ player.startSave('唯一文件名');
331
438
  // 方式2
332
- player.startSave("唯一文件名").then(() => {
333
- console.log("执行开始录制成功后其他动作");
439
+ player.startSave('唯一文件名').then(() => {
440
+ console.log('执行开始录制成功后其他动作');
334
441
  });
335
442
  ```
336
443
 
@@ -341,7 +448,7 @@ player.startSave("唯一文件名").then(() => {
341
448
  player.stopSave();
342
449
  // 方式2
343
450
  player.stopSave().then(() => {
344
- console.log("执行停止录制成功后其他动作");
451
+ console.log('执行停止录制成功后其他动作');
345
452
  });
346
453
  ```
347
454
 
@@ -349,12 +456,12 @@ player.stopSave().then(() => {
349
456
 
350
457
  ```js
351
458
  // 方式1 - 下载到本地
352
- player.capturePicture("文件名");
459
+ player.capturePicture('文件名');
353
460
  // 方式2 - 返回base64格式
354
461
  const capCallback = (data) => {
355
- console.log("data", data);
462
+ console.log('data', data);
356
463
  };
357
- player.capturePicture("default", capCallback);
464
+ player.capturePicture('default', capCallback);
358
465
  ```
359
466
 
360
467
  #### 开始对讲
@@ -407,7 +514,7 @@ player.setProfile({ microphoneId });
407
514
  #### 监听麦克风音量变化
408
515
 
409
516
  ```js
410
- player.eventEmitter.on("volumeChange", ({ data }) => {
517
+ player.eventEmitter.on('volumeChange', ({ data }) => {
411
518
  // 动态显示音柱,100ms触发一次
412
519
  console.log(`${data * 100}%`);
413
520
  });
@@ -429,7 +536,7 @@ player.cancelFullScreen();
429
536
 
430
537
  ```js
431
538
  player.getOSDTime().then((time) => {
432
- console.log("获取到的当前播放时间", time);
539
+ console.log('获取到的当前播放时间', time);
433
540
  });
434
541
  ```
435
542
 
@@ -439,7 +546,7 @@ player.getOSDTime().then((time) => {
439
546
 
440
547
  ```js
441
548
  player.changePlayUrl(options).then(() => {
442
- console.log("切换成功");
549
+ console.log('切换成功');
443
550
  });
444
551
  ```
445
552
 
@@ -464,9 +571,9 @@ options 参数说明
464
571
  player.Theme.changeTheme(template);
465
572
 
466
573
  // 预览切回放场景示例
467
- player.changePlayUrl({ type: "rec" }).then(() => {
468
- console.log("地址切换成功,开始切换模板主题");
469
- player.Theme.changeTheme("pcRec");
574
+ player.changePlayUrl({ type: 'rec' }).then(() => {
575
+ console.log('地址切换成功,开始切换模板主题');
576
+ player.Theme.changeTheme('pcRec');
470
577
  });
471
578
  ```
472
579
 
@@ -485,7 +592,7 @@ template 参数说明
485
592
  player.enableZoom();
486
593
  // 方式2
487
594
  player.enableZoom().then(() => {
488
- console.log("开启电子放大成功");
595
+ console.log('开启电子放大成功');
489
596
  });
490
597
  ```
491
598
 
@@ -496,7 +603,7 @@ player.enableZoom().then(() => {
496
603
  player.closeZoom();
497
604
  // 方式2
498
605
  player.closeZoom().then(() => {
499
- console.log("关闭电子放大成功");
606
+ console.log('关闭电子放大成功');
500
607
  });
501
608
  ```
502
609
 
@@ -552,7 +659,7 @@ options 参数说明
552
659
  // 监听流信息事件
553
660
  player.eventEmitter.on(EZUIKitPlayer.EVENTS.streamInfoCB, (info) => {
554
661
  // 包括 视频信息 音频信息
555
- console.log("streamInfoCB", info);
662
+ console.log('streamInfoCB', info);
556
663
  });
557
664
  ```
558
665
 
@@ -571,7 +678,7 @@ player.eventEmitter.on(EZUIKitPlayer.EVENTS.streamInfoCB, (info) => {
571
678
  // 监听音频信息变化
572
679
  player.eventEmitter.on(EZUIKitPlayer.EVENTS.audioInfo, (info) => {
573
680
  // {"audioFormat":8193,"audioFormatName":"AAC","audioChannels":1,"audioBitsPerSample":16,"audioSamplesRate":16000,"audioBitRate":32000}
574
- console.log("audioInfo", info);
681
+ console.log('audioInfo', info);
575
682
  });
576
683
  ```
577
684
 
@@ -592,7 +699,7 @@ player.eventEmitter.on(EZUIKitPlayer.EVENTS.audioInfo, (info) => {
592
699
  // 监听视频信息变化
593
700
  player.eventEmitter.on(EZUIKitPlayer.EVENTS.videoInfo, (info) => {
594
701
  // {"videoFormat":5,"videoFormatName":"H265","width":3840,"height":2160,"frameRate":15,"intervalOfIFrame":0}
595
- console.log("videoInfo", info);
702
+ console.log('videoInfo', info);
596
703
  });
597
704
  ```
598
705
 
@@ -611,7 +718,7 @@ player.eventEmitter.on(EZUIKitPlayer.EVENTS.videoInfo, (info) => {
611
718
  // 监听截图事件
612
719
  player.eventEmitter.on(EZUIKitPlayer.EVENTS.capturePicture, (info) => {
613
720
  // {data: CapturePictureInfoDate}
614
- console.log("capturePictureInfo", info);
721
+ console.log('capturePictureInfo', info);
615
722
  });
616
723
  ```
617
724
 
@@ -628,7 +735,7 @@ player.eventEmitter.on(EZUIKitPlayer.EVENTS.capturePicture, (info) => {
628
735
  // 监听截图事件
629
736
  player.eventEmitter.on(EZUIKitPlayer.EVENTS.capturePicture, (info) => {
630
737
  // {data: CapturePictureInfoData}
631
- console.log("capturePictureInfo", info);
738
+ console.log('capturePictureInfo', info);
632
739
  });
633
740
  ```
634
741
 
@@ -645,7 +752,7 @@ player.eventEmitter.on(EZUIKitPlayer.EVENTS.capturePicture, (info) => {
645
752
  // 监听截图事件
646
753
  player.eventEmitter.on(EZUIKitPlayer.EVENTS.changeVideoLevel, (info) => {
647
754
  // {data: VideoLevelData}
648
- console.log("changeVideoLevel", info);
755
+ console.log('changeVideoLevel', info);
649
756
  });
650
757
  ```
651
758
 
@@ -725,7 +832,7 @@ player.eventEmitter.on(EZUIKitPlayer.EVENTS.exitFullscreen, () => {
725
832
  // 监听全屏变化事件
726
833
  player.eventEmitter.on(EZUIKitPlayer.EVENTS.fullscreenChange, (data) => {
727
834
  // {data: FullscreenChangeData}
728
- console.log("fullscreenChange", data);
835
+ console.log('fullscreenChange', data);
729
836
  });
730
837
  ```
731
838
 
@@ -759,7 +866,7 @@ resize 事件事件 `EZUIKitPlayer.EVENTS.resize`
759
866
  // 监听resize事件
760
867
  player.eventEmitter.on(EZUIKitPlayer.EVENTS.resize, () => {
761
868
  // {data: {"width": number,"height":number}}
762
- console.log("resize", data);
869
+ console.log('resize', data);
763
870
  });
764
871
  ```
765
872
 
@@ -870,7 +977,7 @@ player.eventEmitter.on(EZUIKitPlayer.EVENTS.recTimeChange, () => {
870
977
  // 监听获取云存储回片段事件
871
978
  player.eventEmitter.on(EZUIKitPlayer.EVENTS.http.getCloudRecTimes, (list) => {
872
979
  // {data: {"width": number,"height":number}}
873
- console.log("list", list);
980
+ console.log('list', list);
874
981
  });
875
982
  ```
876
983
 
@@ -878,13 +985,10 @@ player.eventEmitter.on(EZUIKitPlayer.EVENTS.http.getCloudRecTimes, (list) => {
878
985
 
879
986
  ```js
880
987
  // 监听获取云录制回片段事件
881
- player.eventEmitter.on(
882
- EZUIKitPlayer.EVENTS.http.getCloudRecordTimes,
883
- (list) => {
884
- // {data: {"width": number,"height":number}}
885
- console.log("list", list);
886
- }
887
- );
988
+ player.eventEmitter.on(EZUIKitPlayer.EVENTS.http.getCloudRecordTimes, (list) => {
989
+ // {data: {"width": number,"height":number}}
990
+ console.log('list', list);
991
+ });
888
992
  ```
889
993
 
890
994
  获取本地录制回片段事件 `EZUIKitPlayer.EVENTS.http.getLocalRecTimes`
@@ -893,7 +997,7 @@ player.eventEmitter.on(
893
997
  // 监听获取本地录制回片段事件
894
998
  player.eventEmitter.on(EZUIKitPlayer.EVENTS.http.getLocalRecTimes, (list) => {
895
999
  // {data: {"width": number,"height":number}}
896
- console.log("list", list);
1000
+ console.log('list', list);
897
1001
  });
898
1002
  ```
899
1003
 
@@ -903,7 +1007,7 @@ player.eventEmitter.on(EZUIKitPlayer.EVENTS.http.getLocalRecTimes, (list) => {
903
1007
  // 监听获取设备信息事件
904
1008
  player.eventEmitter.on(EZUIKitPlayer.EVENTS.http.getDeviceInfo, (info) => {
905
1009
  // {"deviceSerial":"BC7799091","deviceName":"前端设备勿动 C6Wi(BC7799091)","localName":"C6Wi(BC7799091)","model":"CS-C6Wi-8D8W2DF","status":1,"defence":0,"isEncrypt":0,"alarmSoundMode":2,"offlineNotify":0,"category":"C6Wi","parentCategory":"IPC","updateTime":1741763026000,"netType":"wireless","signal":"0%","riskLevel":0,"netAddress":"125.121.197.61"}
906
- console.log("info", info);
1010
+ console.log('info', info);
907
1011
  });
908
1012
  ```
909
1013
 
@@ -913,7 +1017,7 @@ player.eventEmitter.on(EZUIKitPlayer.EVENTS.http.getDeviceInfo, (info) => {
913
1017
  // 监听获取设备信息事件
914
1018
  player.eventEmitter.on(EZUIKitPlayer.EVENTS.http.getDeviceList, (info) => {
915
1019
  // {"deviceSerial":"BC7799091","deviceName":"前端设备勿动 C6Wi(BC7799091)","localName":"C6Wi(BC7799091)","model":"CS-C6Wi-8D8W2DF","status":1,"defence":0,"isEncrypt":0,"alarmSoundMode":2,"offlineNotify":0,"category":"C6Wi","parentCategory":"IPC","updateTime":1741763026000,"netType":"wireless","signal":"0%","riskLevel":0,"netAddress":"125.121.197.61"}
916
- console.log("info", info);
1020
+ console.log('info', info);
917
1021
  });
918
1022
  ```
919
1023
 
@@ -999,7 +1103,7 @@ player.eventEmitter.on(EZUIKitPlayer.EVENTS.talkSuccess, () => {
999
1103
  // 监听对讲开启失败事件
1000
1104
  player.eventEmitter.on(EZUIKitPlayer.EVENTS.talkError, (error) => {
1001
1105
  // ...
1002
- console.error("talkError", error);
1106
+ console.error('talkError', error);
1003
1107
  });
1004
1108
  ```
1005
1109
 
@@ -1050,7 +1154,7 @@ player.eventEmitter.on(EZUIKitPlayer.EVENTS.zoom.closeZoom, () => {
1050
1154
  // 监听电子放大变化事件
1051
1155
  player.eventEmitter.on(EZUIKitPlayer.EVENTS.zoom.onZoomChange, (info) => {
1052
1156
  // {"zoom": string,"reset"?:boolean}
1053
- console.log("onZoomChange", info);
1157
+ console.log('onZoomChange', info);
1054
1158
  });
1055
1159
  ```
1056
1160
 
@@ -1107,13 +1211,10 @@ player.eventEmitter.on(EZUIKitPlayer.EVENTS.ptz.ptzDirection, () => {
1107
1211
 
1108
1212
  ```js
1109
1213
  // 监听点击云台控制控件方向事件
1110
- player.eventEmitter.on(
1111
- EZUIKitPlayer.EVENTS.timeLine.timeWidthChange,
1112
- (widthType) => {
1113
- // ...
1114
- console.log("timeWidthChange", widthType); // 0 | 1 | 2 | 3
1115
- }
1116
- );
1214
+ player.eventEmitter.on(EZUIKitPlayer.EVENTS.timeLine.timeWidthChange, (widthType) => {
1215
+ // ...
1216
+ console.log('timeWidthChange', widthType); // 0 | 1 | 2 | 3
1217
+ });
1117
1218
  ```
1118
1219
 
1119
1220
  #### 日期选择器相关事件