@ezuikit/player-theme 0.0.1-alpha.4 → 0.0.1-alpha.6

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/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v0.0.1-alpha.4
3
- * Copyright (c) 2025-10-08 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v0.0.1-alpha.6
3
+ * Copyright (c) 2025-10-13 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  'use strict';
@@ -3391,6 +3391,8 @@ function debounce(func, wait) {
3391
3391
  });
3392
3392
  theme == null ? void 0 : theme.on(EVENTS.videoInfo, (info)=>{
3393
3393
  });
3394
+ theme == null ? void 0 : theme.on('getDeviceInfo', (info)=>{
3395
+ });
3394
3396
  theme == null ? void 0 : theme.on(EVENTS.firstFrameDisplay, ()=>{
3395
3397
  theme._disabled(false);
3396
3398
  });
@@ -3919,8 +3921,8 @@ const ZOOM_DEFAULT_OPTIONS = {
3919
3921
  };
3920
3922
 
3921
3923
  /*
3922
- * @ezuikit/control-zoom v0.0.1-alpha.1
3923
- * Copyright (c) 2025-10-08 Ezviz-OpenBiz
3924
+ * @ezuikit/control-zoom v0.0.2
3925
+ * Copyright (c) 2025-09-21 Ezviz-OpenBiz
3924
3926
  * Released under the MIT License.
3925
3927
  */
3926
3928
  /**
@@ -4593,7 +4595,7 @@ const ZOOM_DEFAULT_OPTIONS = {
4593
4595
  this.setZoom = this.setZoom.bind(this);
4594
4596
  }
4595
4597
  }
4596
- Zoom.VERSION = '0.0.1-alpha.1';
4598
+ Zoom.VERSION = '0.0.2';
4597
4599
 
4598
4600
  function _extends$i() {
4599
4601
  _extends$i = Object.assign || function(target) {
@@ -5299,8 +5301,8 @@ function _extends$d() {
5299
5301
  }
5300
5302
 
5301
5303
  /*
5302
- * @ezuikit/control-ptz v0.0.1-alpha.1
5303
- * Copyright (c) 2025-10-08 Ezviz-OpenBiz
5304
+ * @ezuikit/control-ptz v0.0.1
5305
+ * Copyright (c) 2025-09-21 Ezviz-OpenBiz
5304
5306
  * Released under the MIT License.
5305
5307
  */
5306
5308
 
@@ -5469,11 +5471,11 @@ class MobilePtz extends BasePtz {
5469
5471
  $icons[0].className = $icons[0].className.replace(`${PTZ_MOBILE_PREFIX}-default`, `${PTZ_MOBILE_PREFIX}-active`);
5470
5472
  }
5471
5473
  }
5472
- $warp.style = `background-image:linear-gradient(${direction === 0 ? 180 : direction === 1 ? 0 : direction === 2 ? 90 : 270}deg, #c0ddf1 0%, rgba(100,143,252,0.00) 50%)`;
5474
+ $warp.style.cssText = `background-image:linear-gradient(${direction === 0 ? 180 : direction === 1 ? 0 : direction === 2 ? 90 : 270}deg, #c0ddf1 0%, rgba(100,143,252,0.00) 50%)`;
5473
5475
  if (type === 'stop') {
5474
5476
  var _this_options_env1;
5475
5477
  url = ((_this_options_env1 = this.options.env) == null ? void 0 : _this_options_env1.domain) + '/api/lapp/device/ptz/stop';
5476
- $warp.style = '';
5478
+ $warp.style.cssText = '';
5477
5479
  $icons[3].className = $icons[3].className.replace(`${PTZ_MOBILE_PREFIX}-active`, `${PTZ_MOBILE_PREFIX}-default`);
5478
5480
  $icons[1].className = $icons[1].className.replace(`${PTZ_MOBILE_PREFIX}-active`, `${PTZ_MOBILE_PREFIX}-default`);
5479
5481
  $icons[2].className = $icons[2].className.replace(`${PTZ_MOBILE_PREFIX}-active`, `${PTZ_MOBILE_PREFIX}-default`);
@@ -5517,11 +5519,14 @@ class MobilePtz extends BasePtz {
5517
5519
  60003,
5518
5520
  60004
5519
5521
  ].includes(+rt.code)) {
5520
- $warp.style = `background-image:linear-gradient(${direction === 0 ? 180 : direction === 1 ? 0 : direction === 2 ? 90 : 270}deg, #f45656 0%, rgba(100,143,252,0.00) 50%)`;
5522
+ $warp.style.cssText = `background-image:linear-gradient(${direction === 0 ? 180 : direction === 1 ? 0 : direction === 2 ? 90 : 270}deg, #f45656 0%, rgba(100,143,252,0.00) 50%)`;
5521
5523
  }
5522
5524
  }
5523
5525
  operationResultCb == null ? void 0 : operationResultCb(rt);
5524
5526
  }).catch((err)=>{
5527
+ }).finally(()=>{
5528
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
5529
+ operationResultCb = null;
5525
5530
  });
5526
5531
  }
5527
5532
  constructor(container, options){
@@ -6794,12 +6799,14 @@ function __filter(list, locale = {}) {
6794
6799
  controlType: 'button',
6795
6800
  classNameSuffix: 'definition',
6796
6801
  renderLabel: (label, item, list)=>{
6802
+ var _list_;
6797
6803
  if ((item == null ? void 0 : item.level) === 'auto') {
6798
6804
  var _options_locales_options_language;
6799
- const realIitem = list.find((it)=>it.level === this._level);
6800
- return `<span>${options == null ? void 0 : (_options_locales_options_language = options.locales[options.language]) == null ? void 0 : _options_locales_options_language.VIDEO_LEVEL_AUTO}(${(realIitem == null ? void 0 : realIitem.name) || ''})</span>`;
6805
+ const realItem = list.find((it)=>it.level === this._level);
6806
+ return `<span>${options == null ? void 0 : (_options_locales_options_language = options.locales[options.language]) == null ? void 0 : _options_locales_options_language.VIDEO_LEVEL_AUTO}(${(realItem == null ? void 0 : realItem.name) || ''})</span>`;
6801
6807
  }
6802
- return `<span>${label}</span>`;
6808
+ // 如果 label 不存在,则不显示label,直接显示list的第一个label, 一般自定义清晰度列表可能会出现
6809
+ return `<span>${label || ((_list_ = list[0]) == null ? void 0 : _list_.label) || ''}</span>`;
6803
6810
  },
6804
6811
  onChange: (value, item)=>{
6805
6812
  var _options_onChange;
@@ -6826,9 +6833,9 @@ function __filter(list, locale = {}) {
6826
6833
  this._level = realLevel + '';
6827
6834
  if (l === 'auto') {
6828
6835
  var _options_locales_options_language;
6829
- const realIitem = this.list.find((it)=>it.level === this._level);
6836
+ const realItem = this.list.find((it)=>it.level === this._level);
6830
6837
  this.$container.querySelector(`.${PREFIX_CLASS}-select-btn`).innerHTML = `
6831
- <span>${options == null ? void 0 : (_options_locales_options_language = options.locales[options.language]) == null ? void 0 : _options_locales_options_language.VIDEO_LEVEL_AUTO}(${(realIitem == null ? void 0 : realIitem.name) || ''})</span>
6838
+ <span>${options == null ? void 0 : (_options_locales_options_language = options.locales[options.language]) == null ? void 0 : _options_locales_options_language.VIDEO_LEVEL_AUTO}(${(realItem == null ? void 0 : realItem.name) || ''})</span>
6832
6839
  `;
6833
6840
  } else {
6834
6841
  if (this.value !== this._level + '') this.value = this._level + '';
@@ -6910,8 +6917,8 @@ const SPEED_DEFAULT_OPTIONS = {
6910
6917
  }
6911
6918
 
6912
6919
  /*
6913
- * @ezuikit/control-date-picker v0.0.1-alpha.1
6914
- * Copyright (c) 2025-10-08 Ezviz-OpenBiz
6920
+ * @ezuikit/control-date-picker v0.0.1
6921
+ * Copyright (c) 2025-09-21 Ezviz-OpenBiz
6915
6922
  * Released under the MIT License.
6916
6923
  */
6917
6924
  function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
@@ -7385,8 +7392,8 @@ function _extends$6() {
7385
7392
  }
7386
7393
 
7387
7394
  /*
7388
- * @ezuikit/control-time-line v0.0.1-alpha.1
7389
- * Copyright (c) 2025-10-08 Ezviz-OpenBiz
7395
+ * @ezuikit/control-time-line v0.0.1
7396
+ * Copyright (c) 2025-09-21 Ezviz-OpenBiz
7390
7397
  * Released under the MIT License.
7391
7398
  */
7392
7399
 
@@ -10540,7 +10547,7 @@ const THEME_DEFAULT_OPTIONS = {
10540
10547
  */ this._footerMoreControl = null, /** 头部控件 @since 0.0.1 @private */ this._header = null, /** 低部控件 @since 0.0.1 @private */ this._footer = null, /** 回放底部时间轴 @since 0.0.1 @private */ this._recFooter = null, /**
10541
10548
  * 移动端扩展容器, 扩展的控件渲染在指定容器以外, 仅只用端适用, 为了可以放置大的控件和方便开发接入
10542
10549
  * @private
10543
- */ this._mobileExtend = null, /** @since 0.0.1 @private */ this._interactiveResult = null, /** @since 0.0.1 @private */ this._themeData = null, this._fullscreen = null, this.zoomUtil = null, /** 清除屏幕旋转 */ this._cleanupOrientation = null, /** resizeObserver 监听销毁 */ this._cleanUpResizeObserver = null, /** 容器的宽 */ this._width = 0, /** 容器的高 */ this._height = 0, /** 当前容器的全屏状态 true: 全屏, false: 非全屏 */ this._isCurrentFullscreen = false, /** 屏幕旋转角度 0 | 90 | 180 | 270 */ this._orientationAngle = 0, /** 是否播放中 @private */ this._playing = false, /** 加载中 */ this._loading = false, /** 音量 */ this._volume = 0, /** 静音 */ this._muted = false, /** 电子放大倍数 @private */ this._zoom = 1, /** 放大中 true: 可缩放状态,false: 禁止缩放状态(不能缩放) @private */ this._zooming = false, /** 录制中 @private */ this._recording = false, /** 对讲中 @private */ this._talking = false, /** 倍速 @private */ this._speed = 1, /** 倍速 @private */ this._videoLevelAuto = false, /** 清晰度列表 */ this.videoLevelList = [], /** 回放片段列表 */ this.recordList = [], /** 窗口尺寸变化时,设置窗口超出隐藏,防止出现滚动条 */ this._resizeOverflowTimer = null, /** 清理 header/footer 动画 定时器 @private */ this._onPauseTimingFunc = null, /** 销毁标识 @readonly */ this.destroyed = false, /** 播放地址信息 */ this.urlInfo = null;
10550
+ */ this._mobileExtend = null, /** @since 0.0.1 @private */ this._interactiveResult = null, /** @since 0.0.1 @private */ this._themeData = null, this._fullscreen = null, this.zoomUtil = null, /** 清除屏幕旋转 */ this._cleanupOrientation = null, /** resizeObserver 监听销毁 */ this._cleanUpResizeObserver = null, /** 容器的宽 */ this._width = 0, /** 容器的高 */ this._height = 0, /** 当前容器的全屏状态 true: 全屏, false: 非全屏 */ this._isCurrentFullscreen = false, /** 屏幕旋转角度 0 | 90 | 180 | 270 */ this._orientationAngle = 0, /** 是否播放中 @private */ this._playing = false, /** 加载中 */ this._loading = false, /** 音量 */ this._volume = 0, /** 静音 */ this._muted = false, /** 电子放大倍数 @private */ this._zoom = 1, /** 放大中 true: 可缩放状态,false: 禁止缩放状态(不能缩放) @private */ this._zooming = false, /** 录制中 @private */ this._recording = false, /** 对讲中 @private */ this._talking = false, /** 倍速 @private */ this._speed = 1, /** 自定清晰度 @private */ this._videoLevelAuto = false, /** 清晰度列表 */ this.videoLevelList = [], /** 回放片段列表 */ this.recordList = [], /** 窗口尺寸变化时,设置窗口超出隐藏,防止出现滚动条 */ this._resizeOverflowTimer = null, /** 清理 header/footer 动画 定时器 @private */ this._onPauseTimingFunc = null, /** 销毁标识 @readonly */ this.destroyed = false, /** 播放地址信息 */ this.urlInfo = null;
10544
10551
  this._initOptions(options);
10545
10552
  if (this.options.type === 'ezopen') {
10546
10553
  var _this_urlInfo_searchParams, _this_urlInfo;
@@ -10600,7 +10607,7 @@ const THEME_DEFAULT_OPTIONS = {
10600
10607
  zh,
10601
10608
  en
10602
10609
  };
10603
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '0.0.1-alpha.4';
10610
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '0.0.1-alpha.6';
10604
10611
 
10605
10612
  exports.Control = Control;
10606
10613
  exports.Fullscreen = Fullscreen;
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v0.0.1-alpha.4
3
- * Copyright (c) 2025-10-08 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v0.0.1-alpha.6
3
+ * Copyright (c) 2025-10-13 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import EventEmitter from 'eventemitter3';
@@ -3387,6 +3387,8 @@ function debounce(func, wait) {
3387
3387
  });
3388
3388
  theme == null ? void 0 : theme.on(EVENTS.videoInfo, (info)=>{
3389
3389
  });
3390
+ theme == null ? void 0 : theme.on('getDeviceInfo', (info)=>{
3391
+ });
3390
3392
  theme == null ? void 0 : theme.on(EVENTS.firstFrameDisplay, ()=>{
3391
3393
  theme._disabled(false);
3392
3394
  });
@@ -3915,8 +3917,8 @@ const ZOOM_DEFAULT_OPTIONS = {
3915
3917
  };
3916
3918
 
3917
3919
  /*
3918
- * @ezuikit/control-zoom v0.0.1-alpha.1
3919
- * Copyright (c) 2025-10-08 Ezviz-OpenBiz
3920
+ * @ezuikit/control-zoom v0.0.2
3921
+ * Copyright (c) 2025-09-21 Ezviz-OpenBiz
3920
3922
  * Released under the MIT License.
3921
3923
  */
3922
3924
  /**
@@ -4589,7 +4591,7 @@ const ZOOM_DEFAULT_OPTIONS = {
4589
4591
  this.setZoom = this.setZoom.bind(this);
4590
4592
  }
4591
4593
  }
4592
- Zoom.VERSION = '0.0.1-alpha.1';
4594
+ Zoom.VERSION = '0.0.2';
4593
4595
 
4594
4596
  function _extends$i() {
4595
4597
  _extends$i = Object.assign || function(target) {
@@ -5295,8 +5297,8 @@ function _extends$d() {
5295
5297
  }
5296
5298
 
5297
5299
  /*
5298
- * @ezuikit/control-ptz v0.0.1-alpha.1
5299
- * Copyright (c) 2025-10-08 Ezviz-OpenBiz
5300
+ * @ezuikit/control-ptz v0.0.1
5301
+ * Copyright (c) 2025-09-21 Ezviz-OpenBiz
5300
5302
  * Released under the MIT License.
5301
5303
  */
5302
5304
 
@@ -5465,11 +5467,11 @@ class MobilePtz extends BasePtz {
5465
5467
  $icons[0].className = $icons[0].className.replace(`${PTZ_MOBILE_PREFIX}-default`, `${PTZ_MOBILE_PREFIX}-active`);
5466
5468
  }
5467
5469
  }
5468
- $warp.style = `background-image:linear-gradient(${direction === 0 ? 180 : direction === 1 ? 0 : direction === 2 ? 90 : 270}deg, #c0ddf1 0%, rgba(100,143,252,0.00) 50%)`;
5470
+ $warp.style.cssText = `background-image:linear-gradient(${direction === 0 ? 180 : direction === 1 ? 0 : direction === 2 ? 90 : 270}deg, #c0ddf1 0%, rgba(100,143,252,0.00) 50%)`;
5469
5471
  if (type === 'stop') {
5470
5472
  var _this_options_env1;
5471
5473
  url = ((_this_options_env1 = this.options.env) == null ? void 0 : _this_options_env1.domain) + '/api/lapp/device/ptz/stop';
5472
- $warp.style = '';
5474
+ $warp.style.cssText = '';
5473
5475
  $icons[3].className = $icons[3].className.replace(`${PTZ_MOBILE_PREFIX}-active`, `${PTZ_MOBILE_PREFIX}-default`);
5474
5476
  $icons[1].className = $icons[1].className.replace(`${PTZ_MOBILE_PREFIX}-active`, `${PTZ_MOBILE_PREFIX}-default`);
5475
5477
  $icons[2].className = $icons[2].className.replace(`${PTZ_MOBILE_PREFIX}-active`, `${PTZ_MOBILE_PREFIX}-default`);
@@ -5513,11 +5515,14 @@ class MobilePtz extends BasePtz {
5513
5515
  60003,
5514
5516
  60004
5515
5517
  ].includes(+rt.code)) {
5516
- $warp.style = `background-image:linear-gradient(${direction === 0 ? 180 : direction === 1 ? 0 : direction === 2 ? 90 : 270}deg, #f45656 0%, rgba(100,143,252,0.00) 50%)`;
5518
+ $warp.style.cssText = `background-image:linear-gradient(${direction === 0 ? 180 : direction === 1 ? 0 : direction === 2 ? 90 : 270}deg, #f45656 0%, rgba(100,143,252,0.00) 50%)`;
5517
5519
  }
5518
5520
  }
5519
5521
  operationResultCb == null ? void 0 : operationResultCb(rt);
5520
5522
  }).catch((err)=>{
5523
+ }).finally(()=>{
5524
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
5525
+ operationResultCb = null;
5521
5526
  });
5522
5527
  }
5523
5528
  constructor(container, options){
@@ -6790,12 +6795,14 @@ function __filter(list, locale = {}) {
6790
6795
  controlType: 'button',
6791
6796
  classNameSuffix: 'definition',
6792
6797
  renderLabel: (label, item, list)=>{
6798
+ var _list_;
6793
6799
  if ((item == null ? void 0 : item.level) === 'auto') {
6794
6800
  var _options_locales_options_language;
6795
- const realIitem = list.find((it)=>it.level === this._level);
6796
- return `<span>${options == null ? void 0 : (_options_locales_options_language = options.locales[options.language]) == null ? void 0 : _options_locales_options_language.VIDEO_LEVEL_AUTO}(${(realIitem == null ? void 0 : realIitem.name) || ''})</span>`;
6801
+ const realItem = list.find((it)=>it.level === this._level);
6802
+ return `<span>${options == null ? void 0 : (_options_locales_options_language = options.locales[options.language]) == null ? void 0 : _options_locales_options_language.VIDEO_LEVEL_AUTO}(${(realItem == null ? void 0 : realItem.name) || ''})</span>`;
6797
6803
  }
6798
- return `<span>${label}</span>`;
6804
+ // 如果 label 不存在,则不显示label,直接显示list的第一个label, 一般自定义清晰度列表可能会出现
6805
+ return `<span>${label || ((_list_ = list[0]) == null ? void 0 : _list_.label) || ''}</span>`;
6799
6806
  },
6800
6807
  onChange: (value, item)=>{
6801
6808
  var _options_onChange;
@@ -6822,9 +6829,9 @@ function __filter(list, locale = {}) {
6822
6829
  this._level = realLevel + '';
6823
6830
  if (l === 'auto') {
6824
6831
  var _options_locales_options_language;
6825
- const realIitem = this.list.find((it)=>it.level === this._level);
6832
+ const realItem = this.list.find((it)=>it.level === this._level);
6826
6833
  this.$container.querySelector(`.${PREFIX_CLASS}-select-btn`).innerHTML = `
6827
- <span>${options == null ? void 0 : (_options_locales_options_language = options.locales[options.language]) == null ? void 0 : _options_locales_options_language.VIDEO_LEVEL_AUTO}(${(realIitem == null ? void 0 : realIitem.name) || ''})</span>
6834
+ <span>${options == null ? void 0 : (_options_locales_options_language = options.locales[options.language]) == null ? void 0 : _options_locales_options_language.VIDEO_LEVEL_AUTO}(${(realItem == null ? void 0 : realItem.name) || ''})</span>
6828
6835
  `;
6829
6836
  } else {
6830
6837
  if (this.value !== this._level + '') this.value = this._level + '';
@@ -6906,8 +6913,8 @@ const SPEED_DEFAULT_OPTIONS = {
6906
6913
  }
6907
6914
 
6908
6915
  /*
6909
- * @ezuikit/control-date-picker v0.0.1-alpha.1
6910
- * Copyright (c) 2025-10-08 Ezviz-OpenBiz
6916
+ * @ezuikit/control-date-picker v0.0.1
6917
+ * Copyright (c) 2025-09-21 Ezviz-OpenBiz
6911
6918
  * Released under the MIT License.
6912
6919
  */
6913
6920
  function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
@@ -7381,8 +7388,8 @@ function _extends$6() {
7381
7388
  }
7382
7389
 
7383
7390
  /*
7384
- * @ezuikit/control-time-line v0.0.1-alpha.1
7385
- * Copyright (c) 2025-10-08 Ezviz-OpenBiz
7391
+ * @ezuikit/control-time-line v0.0.1
7392
+ * Copyright (c) 2025-09-21 Ezviz-OpenBiz
7386
7393
  * Released under the MIT License.
7387
7394
  */
7388
7395
 
@@ -10536,7 +10543,7 @@ const THEME_DEFAULT_OPTIONS = {
10536
10543
  */ this._footerMoreControl = null, /** 头部控件 @since 0.0.1 @private */ this._header = null, /** 低部控件 @since 0.0.1 @private */ this._footer = null, /** 回放底部时间轴 @since 0.0.1 @private */ this._recFooter = null, /**
10537
10544
  * 移动端扩展容器, 扩展的控件渲染在指定容器以外, 仅只用端适用, 为了可以放置大的控件和方便开发接入
10538
10545
  * @private
10539
- */ this._mobileExtend = null, /** @since 0.0.1 @private */ this._interactiveResult = null, /** @since 0.0.1 @private */ this._themeData = null, this._fullscreen = null, this.zoomUtil = null, /** 清除屏幕旋转 */ this._cleanupOrientation = null, /** resizeObserver 监听销毁 */ this._cleanUpResizeObserver = null, /** 容器的宽 */ this._width = 0, /** 容器的高 */ this._height = 0, /** 当前容器的全屏状态 true: 全屏, false: 非全屏 */ this._isCurrentFullscreen = false, /** 屏幕旋转角度 0 | 90 | 180 | 270 */ this._orientationAngle = 0, /** 是否播放中 @private */ this._playing = false, /** 加载中 */ this._loading = false, /** 音量 */ this._volume = 0, /** 静音 */ this._muted = false, /** 电子放大倍数 @private */ this._zoom = 1, /** 放大中 true: 可缩放状态,false: 禁止缩放状态(不能缩放) @private */ this._zooming = false, /** 录制中 @private */ this._recording = false, /** 对讲中 @private */ this._talking = false, /** 倍速 @private */ this._speed = 1, /** 倍速 @private */ this._videoLevelAuto = false, /** 清晰度列表 */ this.videoLevelList = [], /** 回放片段列表 */ this.recordList = [], /** 窗口尺寸变化时,设置窗口超出隐藏,防止出现滚动条 */ this._resizeOverflowTimer = null, /** 清理 header/footer 动画 定时器 @private */ this._onPauseTimingFunc = null, /** 销毁标识 @readonly */ this.destroyed = false, /** 播放地址信息 */ this.urlInfo = null;
10546
+ */ this._mobileExtend = null, /** @since 0.0.1 @private */ this._interactiveResult = null, /** @since 0.0.1 @private */ this._themeData = null, this._fullscreen = null, this.zoomUtil = null, /** 清除屏幕旋转 */ this._cleanupOrientation = null, /** resizeObserver 监听销毁 */ this._cleanUpResizeObserver = null, /** 容器的宽 */ this._width = 0, /** 容器的高 */ this._height = 0, /** 当前容器的全屏状态 true: 全屏, false: 非全屏 */ this._isCurrentFullscreen = false, /** 屏幕旋转角度 0 | 90 | 180 | 270 */ this._orientationAngle = 0, /** 是否播放中 @private */ this._playing = false, /** 加载中 */ this._loading = false, /** 音量 */ this._volume = 0, /** 静音 */ this._muted = false, /** 电子放大倍数 @private */ this._zoom = 1, /** 放大中 true: 可缩放状态,false: 禁止缩放状态(不能缩放) @private */ this._zooming = false, /** 录制中 @private */ this._recording = false, /** 对讲中 @private */ this._talking = false, /** 倍速 @private */ this._speed = 1, /** 自定清晰度 @private */ this._videoLevelAuto = false, /** 清晰度列表 */ this.videoLevelList = [], /** 回放片段列表 */ this.recordList = [], /** 窗口尺寸变化时,设置窗口超出隐藏,防止出现滚动条 */ this._resizeOverflowTimer = null, /** 清理 header/footer 动画 定时器 @private */ this._onPauseTimingFunc = null, /** 销毁标识 @readonly */ this.destroyed = false, /** 播放地址信息 */ this.urlInfo = null;
10540
10547
  this._initOptions(options);
10541
10548
  if (this.options.type === 'ezopen') {
10542
10549
  var _this_urlInfo_searchParams, _this_urlInfo;
@@ -10596,6 +10603,6 @@ const THEME_DEFAULT_OPTIONS = {
10596
10603
  zh,
10597
10604
  en
10598
10605
  };
10599
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '0.0.1-alpha.4';
10606
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '0.0.1-alpha.6';
10600
10607
 
10601
10608
  export { Control, Fullscreen, Loading, Message, Play, Poster, Rec, Theme, Utils, Volume, Theme as default };
package/dist/index.umd.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v0.0.1-alpha.4
3
- * Copyright (c) 2025-10-08 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v0.0.1-alpha.6
3
+ * Copyright (c) 2025-10-13 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  (function (global, factory) {
@@ -5258,6 +5258,8 @@
5258
5258
  });
5259
5259
  theme == null ? void 0 : theme.on(EVENTS.videoInfo, function(info) {
5260
5260
  });
5261
+ theme == null ? void 0 : theme.on('getDeviceInfo', function(info) {
5262
+ });
5261
5263
  theme == null ? void 0 : theme.on(EVENTS.firstFrameDisplay, function() {
5262
5264
  theme._disabled(false);
5263
5265
  });
@@ -5843,8 +5845,8 @@
5843
5845
  }(Control);
5844
5846
 
5845
5847
  /*
5846
- * @ezuikit/control-zoom v0.0.1-alpha.1
5847
- * Copyright (c) 2025-10-08 Ezviz-OpenBiz
5848
+ * @ezuikit/control-zoom v0.0.2
5849
+ * Copyright (c) 2025-09-21 Ezviz-OpenBiz
5848
5850
  * Released under the MIT License.
5849
5851
  */
5850
5852
  /**
@@ -6517,7 +6519,7 @@
6517
6519
  this.setZoom = this.setZoom.bind(this);
6518
6520
  }
6519
6521
  }
6520
- Zoom.VERSION = '0.0.1-alpha.1';
6522
+ Zoom.VERSION = '0.0.2';
6521
6523
 
6522
6524
  function _extends$i() {
6523
6525
  _extends$i = Object.assign || function(target) {
@@ -7601,8 +7603,8 @@
7601
7603
  function isMobile(agent){var _navigator,_navigator1,_navigator2;return /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone|Opera Mini)/i.test(null==(_navigator=navigator)?void 0:_navigator.userAgent)||/Macintosh/i.test(null==(_navigator1=navigator)?void 0:_navigator1.userAgent)&&(null==(_navigator2=navigator)?void 0:_navigator2.maxTouchPoints)>1}
7602
7604
 
7603
7605
  /*
7604
- * @ezuikit/control-ptz v0.0.1-alpha.1
7605
- * Copyright (c) 2025-10-08 Ezviz-OpenBiz
7606
+ * @ezuikit/control-ptz v0.0.1
7607
+ * Copyright (c) 2025-09-21 Ezviz-OpenBiz
7606
7608
  * Released under the MIT License.
7607
7609
  */
7608
7610
 
@@ -7771,11 +7773,11 @@
7771
7773
  $icons[0].className = $icons[0].className.replace(`${PTZ_MOBILE_PREFIX}-default`, `${PTZ_MOBILE_PREFIX}-active`);
7772
7774
  }
7773
7775
  }
7774
- $warp.style = `background-image:linear-gradient(${direction === 0 ? 180 : direction === 1 ? 0 : direction === 2 ? 90 : 270}deg, #c0ddf1 0%, rgba(100,143,252,0.00) 50%)`;
7776
+ $warp.style.cssText = `background-image:linear-gradient(${direction === 0 ? 180 : direction === 1 ? 0 : direction === 2 ? 90 : 270}deg, #c0ddf1 0%, rgba(100,143,252,0.00) 50%)`;
7775
7777
  if (type === 'stop') {
7776
7778
  var _this_options_env1;
7777
7779
  url = ((_this_options_env1 = this.options.env) == null ? void 0 : _this_options_env1.domain) + '/api/lapp/device/ptz/stop';
7778
- $warp.style = '';
7780
+ $warp.style.cssText = '';
7779
7781
  $icons[3].className = $icons[3].className.replace(`${PTZ_MOBILE_PREFIX}-active`, `${PTZ_MOBILE_PREFIX}-default`);
7780
7782
  $icons[1].className = $icons[1].className.replace(`${PTZ_MOBILE_PREFIX}-active`, `${PTZ_MOBILE_PREFIX}-default`);
7781
7783
  $icons[2].className = $icons[2].className.replace(`${PTZ_MOBILE_PREFIX}-active`, `${PTZ_MOBILE_PREFIX}-default`);
@@ -7819,11 +7821,14 @@
7819
7821
  60003,
7820
7822
  60004
7821
7823
  ].includes(+rt.code)) {
7822
- $warp.style = `background-image:linear-gradient(${direction === 0 ? 180 : direction === 1 ? 0 : direction === 2 ? 90 : 270}deg, #f45656 0%, rgba(100,143,252,0.00) 50%)`;
7824
+ $warp.style.cssText = `background-image:linear-gradient(${direction === 0 ? 180 : direction === 1 ? 0 : direction === 2 ? 90 : 270}deg, #f45656 0%, rgba(100,143,252,0.00) 50%)`;
7823
7825
  }
7824
7826
  }
7825
7827
  operationResultCb == null ? void 0 : operationResultCb(rt);
7826
7828
  }).catch((err)=>{
7829
+ }).finally(()=>{
7830
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
7831
+ operationResultCb = null;
7827
7832
  });
7828
7833
  }
7829
7834
  constructor(container, options){
@@ -9411,14 +9416,16 @@
9411
9416
  controlType: 'button',
9412
9417
  classNameSuffix: 'definition',
9413
9418
  renderLabel: function(label, item, list) {
9419
+ var _list_;
9414
9420
  if ((item == null ? void 0 : item.level) === 'auto') {
9415
9421
  var _options_locales_options_language;
9416
- var realIitem = list.find(function(it) {
9422
+ var realItem = list.find(function(it) {
9417
9423
  return it.level === _assert_this_initialized$1(_this)._level;
9418
9424
  });
9419
- return "<span>" + (options == null ? void 0 : (_options_locales_options_language = options.locales[options.language]) == null ? void 0 : _options_locales_options_language.VIDEO_LEVEL_AUTO) + "(" + ((realIitem == null ? void 0 : realIitem.name) || '') + ")</span>";
9425
+ return "<span>" + (options == null ? void 0 : (_options_locales_options_language = options.locales[options.language]) == null ? void 0 : _options_locales_options_language.VIDEO_LEVEL_AUTO) + "(" + ((realItem == null ? void 0 : realItem.name) || '') + ")</span>";
9420
9426
  }
9421
- return "<span>" + label + "</span>";
9427
+ // 如果 label 不存在,则不显示label,直接显示list的第一个label, 一般自定义清晰度列表可能会出现
9428
+ return "<span>" + (label || ((_list_ = list[0]) == null ? void 0 : _list_.label) || '') + "</span>";
9422
9429
  },
9423
9430
  onChange: function(value, item) {
9424
9431
  var _options_onChange;
@@ -9445,10 +9452,10 @@
9445
9452
  _this._level = realLevel + '';
9446
9453
  if (l === 'auto') {
9447
9454
  var _options_locales_options_language;
9448
- var realIitem = _this.list.find(function(it) {
9455
+ var realItem = _this.list.find(function(it) {
9449
9456
  return it.level === _this._level;
9450
9457
  });
9451
- _this.$container.querySelector("." + PREFIX_CLASS + "-select-btn").innerHTML = "\n <span>" + (options == null ? void 0 : (_options_locales_options_language = options.locales[options.language]) == null ? void 0 : _options_locales_options_language.VIDEO_LEVEL_AUTO) + "(" + ((realIitem == null ? void 0 : realIitem.name) || '') + ")</span>\n ";
9458
+ _this.$container.querySelector("." + PREFIX_CLASS + "-select-btn").innerHTML = "\n <span>" + (options == null ? void 0 : (_options_locales_options_language = options.locales[options.language]) == null ? void 0 : _options_locales_options_language.VIDEO_LEVEL_AUTO) + "(" + ((realItem == null ? void 0 : realItem.name) || '') + ")</span>\n ";
9452
9459
  } else {
9453
9460
  if (_this.value !== _this._level + '') _this.value = _this._level + '';
9454
9461
  }
@@ -9571,8 +9578,8 @@
9571
9578
  }(Select);
9572
9579
 
9573
9580
  /*
9574
- * @ezuikit/control-date-picker v0.0.1-alpha.1
9575
- * Copyright (c) 2025-10-08 Ezviz-OpenBiz
9581
+ * @ezuikit/control-date-picker v0.0.1
9582
+ * Copyright (c) 2025-09-21 Ezviz-OpenBiz
9576
9583
  * Released under the MIT License.
9577
9584
  */
9578
9585
  function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
@@ -10072,8 +10079,8 @@
10072
10079
  }(Control);
10073
10080
 
10074
10081
  /*
10075
- * @ezuikit/control-time-line v0.0.1-alpha.1
10076
- * Copyright (c) 2025-10-08 Ezviz-OpenBiz
10082
+ * @ezuikit/control-time-line v0.0.1
10083
+ * Copyright (c) 2025-09-21 Ezviz-OpenBiz
10077
10084
  * Released under the MIT License.
10078
10085
  */
10079
10086
 
@@ -12679,7 +12686,7 @@
12679
12686
  */ _this._footerMoreControl = null, /** 头部控件 @since 0.0.1 @private */ _this._header = null, /** 低部控件 @since 0.0.1 @private */ _this._footer = null, /** 回放底部时间轴 @since 0.0.1 @private */ _this._recFooter = null, /**
12680
12687
  * 移动端扩展容器, 扩展的控件渲染在指定容器以外, 仅只用端适用, 为了可以放置大的控件和方便开发接入
12681
12688
  * @private
12682
- */ _this._mobileExtend = null, /** @since 0.0.1 @private */ _this._interactiveResult = null, /** @since 0.0.1 @private */ _this._themeData = null, _this._fullscreen = null, _this.zoomUtil = null, /** 清除屏幕旋转 */ _this._cleanupOrientation = null, /** resizeObserver 监听销毁 */ _this._cleanUpResizeObserver = null, /** 容器的宽 */ _this._width = 0, /** 容器的高 */ _this._height = 0, /** 当前容器的全屏状态 true: 全屏, false: 非全屏 */ _this._isCurrentFullscreen = false, /** 屏幕旋转角度 0 | 90 | 180 | 270 */ _this._orientationAngle = 0, /** 是否播放中 @private */ _this._playing = false, /** 加载中 */ _this._loading = false, /** 音量 */ _this._volume = 0, /** 静音 */ _this._muted = false, /** 电子放大倍数 @private */ _this._zoom = 1, /** 放大中 true: 可缩放状态,false: 禁止缩放状态(不能缩放) @private */ _this._zooming = false, /** 录制中 @private */ _this._recording = false, /** 对讲中 @private */ _this._talking = false, /** 倍速 @private */ _this._speed = 1, /** 倍速 @private */ _this._videoLevelAuto = false, /** 清晰度列表 */ _this.videoLevelList = [], /** 回放片段列表 */ _this.recordList = [], /** 窗口尺寸变化时,设置窗口超出隐藏,防止出现滚动条 */ _this._resizeOverflowTimer = null, /** 清理 header/footer 动画 定时器 @private */ _this._onPauseTimingFunc = null, /** 销毁标识 @readonly */ _this.destroyed = false, /** 播放地址信息 */ _this.urlInfo = null;
12689
+ */ _this._mobileExtend = null, /** @since 0.0.1 @private */ _this._interactiveResult = null, /** @since 0.0.1 @private */ _this._themeData = null, _this._fullscreen = null, _this.zoomUtil = null, /** 清除屏幕旋转 */ _this._cleanupOrientation = null, /** resizeObserver 监听销毁 */ _this._cleanUpResizeObserver = null, /** 容器的宽 */ _this._width = 0, /** 容器的高 */ _this._height = 0, /** 当前容器的全屏状态 true: 全屏, false: 非全屏 */ _this._isCurrentFullscreen = false, /** 屏幕旋转角度 0 | 90 | 180 | 270 */ _this._orientationAngle = 0, /** 是否播放中 @private */ _this._playing = false, /** 加载中 */ _this._loading = false, /** 音量 */ _this._volume = 0, /** 静音 */ _this._muted = false, /** 电子放大倍数 @private */ _this._zoom = 1, /** 放大中 true: 可缩放状态,false: 禁止缩放状态(不能缩放) @private */ _this._zooming = false, /** 录制中 @private */ _this._recording = false, /** 对讲中 @private */ _this._talking = false, /** 倍速 @private */ _this._speed = 1, /** 自定清晰度 @private */ _this._videoLevelAuto = false, /** 清晰度列表 */ _this.videoLevelList = [], /** 回放片段列表 */ _this.recordList = [], /** 窗口尺寸变化时,设置窗口超出隐藏,防止出现滚动条 */ _this._resizeOverflowTimer = null, /** 清理 header/footer 动画 定时器 @private */ _this._onPauseTimingFunc = null, /** 销毁标识 @readonly */ _this.destroyed = false, /** 播放地址信息 */ _this.urlInfo = null;
12683
12690
  _this._initOptions(options);
12684
12691
  if (_this.options.type === 'ezopen') {
12685
12692
  var _this_urlInfo_searchParams, _this_urlInfo;
@@ -13845,7 +13852,7 @@
13845
13852
  zh: zh,
13846
13853
  en: en
13847
13854
  };
13848
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '0.0.1-alpha.4';
13855
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '0.0.1-alpha.6';
13849
13856
 
13850
13857
  // 不要动这里的代码, 这个出口是为了编译成 umd 规范的文件
13851
13858
 
package/dist/style.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v0.0.1-alpha.4
3
- * Copyright (c) 2025-10-08 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v0.0.1-alpha.6
3
+ * Copyright (c) 2025-10-13 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  require("./style.css");
@@ -1216,7 +1216,7 @@ declare class Theme extends EventEmitter {
1216
1216
  readonly speedChange: "Control.speedChange";
1217
1217
  readonly speedPanelOpenChange: "Control.speedPanelOpenChange";
1218
1218
  readonly speedDestroy: "Control.speedDestroy";
1219
- readonly ptzPanelOpenChange: "Control.ptzPanelOpenChange";
1219
+ readonly ptzPanelOpenChange: "Control.ptzPanelOpenChange"; /** 播放地址信息 */
1220
1220
  readonly ptzSpeedChange: "Control.ptzSpeedChange";
1221
1221
  readonly ptzError: "Control.ptzError";
1222
1222
  readonly ptzDestroy: "Control.ptzDestroy";
@@ -1490,7 +1490,7 @@ declare class Theme extends EventEmitter {
1490
1490
  DEVICE_NOT_SUPPORT_3D_ZOOM: string;
1491
1491
  '3D_ZOOM_ACTIVED': string;
1492
1492
  '3D_ZOOM_NOT_ACTIVED': string; /** 倍速 @private */
1493
- '3D_ZOOM_CLOSED': string; /** 倍速 @private */
1493
+ '3D_ZOOM_CLOSED': string; /** 自定清晰度 @private */
1494
1494
  CHANGE_ZOOM_TYPE: string;
1495
1495
  FULLSCREEN: string;
1496
1496
  FULLSCREEN_EXIT: string;
@@ -1643,7 +1643,7 @@ declare class Theme extends EventEmitter {
1643
1643
  396505: string;
1644
1644
  396506: string;
1645
1645
  396508: string;
1646
- /** 倍速 @private */
1646
+ /** 自定清晰度 @private */
1647
1647
  396509: string;
1648
1648
  396510: string;
1649
1649
  396511: string;
@@ -1803,9 +1803,6 @@ declare class Theme extends EventEmitter {
1803
1803
  CHANGE_ZOOM_TYPE: string;
1804
1804
  FULLSCREEN: string;
1805
1805
  FULLSCREEN_EXIT: string;
1806
- /**
1807
- * 倍速
1808
- */
1809
1806
  GET_WEB_FULLSCREEN_STATUS: string;
1810
1807
  WEB_FULLSCREEN: string;
1811
1808
  WEB_FULLSCREEN_EXIT: string;
@@ -1940,7 +1937,7 @@ declare class Theme extends EventEmitter {
1940
1937
  _talking: boolean;
1941
1938
  /** 倍速 @private */
1942
1939
  _speed: number;
1943
- /** 倍速 @private */
1940
+ /** 自定清晰度 @private */
1944
1941
  _videoLevelAuto: boolean;
1945
1942
  /** 清晰度列表 */
1946
1943
  videoLevelList: DefinitionItem[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ezuikit/player-theme",
3
- "version": "0.0.1-alpha.4",
3
+ "version": "0.0.1-alpha.6",
4
4
  "description": "player theme",
5
5
  "title": "theme",
6
6
  "main": "dist/index.js",
@@ -40,9 +40,5 @@
40
40
  "@ezuikit/control-ptz": "workspace:*",
41
41
  "@ezuikit/control-zoom": "workspace:*",
42
42
  "@ezuikit/control-time-line": "workspace:*"
43
- },
44
- "publishConfig": {
45
- "registry": "https://registry.npmjs.org/",
46
- "access": "public"
47
43
  }
48
44
  }