@ezuikit/player-theme 3.1.2-beta.2 → 3.1.2-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/dist/constant.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v3.1.2-beta.2
3
- * Copyright (c) 2026-08-12 04:37:54 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v3.1.2-beta.3
3
+ * Copyright (c) 2026-08-14 08:18:55 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  /**
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v3.1.2-beta.2
3
- * Copyright (c) 2026-08-12 04:37:54 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v3.1.2-beta.3
3
+ * Copyright (c) 2026-08-14 08:18:55 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  'use strict';
@@ -4277,6 +4277,7 @@ function debounce(func, wait) {
4277
4277
  var // rerender 画面
4278
4278
  _theme_contentControl_emit, _theme_contentControl;
4279
4279
  (_theme_contentControl = theme.contentControl) == null ? void 0 : (_theme_contentControl_emit = _theme_contentControl.emit) == null ? void 0 : _theme_contentControl_emit.call(_theme_contentControl, EVENTS.videoInfo, info.width, info.height);
4280
+ theme._videoInfo = info;
4280
4281
  }
4281
4282
  });
4282
4283
  theme == null ? void 0 : theme.on(EVENTS.resize, function() {
@@ -10177,7 +10178,7 @@ var THEME_DEFAULT_OPTIONS = {
10177
10178
  // _recMonthObj: Record<string, string[]> = {};
10178
10179
  /**
10179
10180
  * 录像回放的月份列表 @private
10180
- */ _this.recMonth = [], /** 清理 header/footer 动画 定时器 @private */ _this._onPauseTimingFunc = null, /** 销毁标识 @readonly */ _this.destroyed = false, _this.scaleMode = 0;
10181
+ */ _this.recMonth = [], /** 清理 header/footer 动画 定时器 @private */ _this._onPauseTimingFunc = null, /** 销毁标识 @readonly */ _this.destroyed = false, _this.scaleMode = 0, _this._videoInfo = {};
10181
10182
  _this._initOptions(options);
10182
10183
  if (_this.options.type === 'ezopen') {
10183
10184
  var _this_urlInfo_searchParams1, _this_urlInfo1, _this_urlInfo2;
@@ -10220,7 +10221,7 @@ var THEME_DEFAULT_OPTIONS = {
10220
10221
  _this._muted = (_ref1 = (_this_options_volumeOptions_muted = (_this_options_volumeOptions1 = _this.options.volumeOptions) == null ? void 0 : _this_options_volumeOptions1.muted) != null ? _this_options_volumeOptions_muted : _this.options.muted) != null ? _ref1 : false;
10221
10222
  var _this_options_speedOptions_value, _ref2;
10222
10223
  // playbackSpeed 是 萤石标准流倍速字段
10223
- _this._speed = (_ref2 = (_this_options_speedOptions_value = (_this_options_speedOptions = _this.options.speedOptions) == null ? void 0 : _this_options_speedOptions.value) != null ? _this_options_speedOptions_value : (_this_urlInfo = _this.urlInfo) == null ? void 0 : (_this_urlInfo_searchParams = _this_urlInfo.searchParams) == null ? void 0 : _this_urlInfo_searchParams.playbackSpeed) != null ? _ref2 : 1;
10224
+ _this._speed = +((_ref2 = (_this_options_speedOptions_value = (_this_options_speedOptions = _this.options.speedOptions) == null ? void 0 : _this_options_speedOptions.value) != null ? _this_options_speedOptions_value : (_this_urlInfo = _this.urlInfo) == null ? void 0 : (_this_urlInfo_searchParams = _this_urlInfo.searchParams) == null ? void 0 : _this_urlInfo_searchParams.playbackSpeed) != null ? _ref2 : 1);
10224
10225
  _this._mobileInnerWidthHeight = _this._mobileInnerWidthHeight.bind(_this);
10225
10226
  _this._throttleMobileInnerWidthHeight = throttle(_this._mobileInnerWidthHeight, 20).bind(_this);
10226
10227
  _this._onDblClickFullscreen = debounce(_this._onDblClickFullscreen, 20).bind(_this);
@@ -10458,6 +10459,8 @@ var THEME_DEFAULT_OPTIONS = {
10458
10459
  if (this.i18n) this.i18n = null;
10459
10460
  this.recType = '';
10460
10461
  this.recMonth = []; // 清空数据
10462
+ // 重置
10463
+ this._videoInfo = {};
10461
10464
  this.emit(EVENTS.theme.destroyed);
10462
10465
  this.removeAllListeners();
10463
10466
  if (this.logger) this.logger = null;
@@ -11074,6 +11077,41 @@ var THEME_DEFAULT_OPTIONS = {
11074
11077
  return this._height;
11075
11078
  }
11076
11079
  },
11080
+ {
11081
+ key: "videoInfo",
11082
+ get: /**
11083
+ * 视频信息
11084
+ * @version 3.1.2
11085
+ * ```ts
11086
+ * theme.videoInfo // ThemeVideoInfo
11087
+ * ```
11088
+ */ function get() {
11089
+ return this._videoInfo || {};
11090
+ }
11091
+ },
11092
+ {
11093
+ key: "videoWidth",
11094
+ get: /**
11095
+ * 视频分辨率 宽
11096
+ *
11097
+ * @version 3.1.2
11098
+ *
11099
+ * ```ts
11100
+ * theme.videoWidth // number
11101
+ * ```
11102
+ */ function get() {
11103
+ return this._videoInfo.width || 0;
11104
+ }
11105
+ },
11106
+ {
11107
+ key: "videoHeight",
11108
+ get: /**
11109
+ * 视频分辨率 高
11110
+ * @version 3.1.2
11111
+ */ function get() {
11112
+ return this._videoInfo.height || 0;
11113
+ }
11114
+ },
11077
11115
  {
11078
11116
  key: "playing",
11079
11117
  get: /**
@@ -11338,13 +11376,13 @@ var THEME_DEFAULT_OPTIONS = {
11338
11376
  {
11339
11377
  key: "speed",
11340
11378
  get: function get() {
11341
- return this._speed;
11379
+ return +this._speed;
11342
11380
  },
11343
11381
  set: /**
11344
11382
  * 倍速
11345
11383
  */ function set(speed) {
11346
11384
  speed = +speed;
11347
- if (speed !== this._speed) {
11385
+ if (speed !== +this._speed) {
11348
11386
  this._speed = speed;
11349
11387
  this.emit(EVENTS.speedChange, speed);
11350
11388
  }
@@ -11491,7 +11529,7 @@ var THEME_DEFAULT_OPTIONS = {
11491
11529
  zh: zh,
11492
11530
  en: en
11493
11531
  };
11494
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.2-beta.2';
11532
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.2-beta.3';
11495
11533
 
11496
11534
  exports.Control = Control;
11497
11535
  exports.EVENTS = EVENTS;
package/dist/index.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v3.1.2-beta.2
3
- * Copyright (c) 2026-08-12 04:37:54 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v3.1.2-beta.3
3
+ * Copyright (c) 2026-08-14 08:18:55 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import EventEmitter from 'eventemitter3';
@@ -4275,6 +4275,7 @@ function debounce(func, wait) {
4275
4275
  var // rerender 画面
4276
4276
  _theme_contentControl_emit, _theme_contentControl;
4277
4277
  (_theme_contentControl = theme.contentControl) == null ? void 0 : (_theme_contentControl_emit = _theme_contentControl.emit) == null ? void 0 : _theme_contentControl_emit.call(_theme_contentControl, EVENTS.videoInfo, info.width, info.height);
4278
+ theme._videoInfo = info;
4278
4279
  }
4279
4280
  });
4280
4281
  theme == null ? void 0 : theme.on(EVENTS.resize, function() {
@@ -10175,7 +10176,7 @@ var THEME_DEFAULT_OPTIONS = {
10175
10176
  // _recMonthObj: Record<string, string[]> = {};
10176
10177
  /**
10177
10178
  * 录像回放的月份列表 @private
10178
- */ _this.recMonth = [], /** 清理 header/footer 动画 定时器 @private */ _this._onPauseTimingFunc = null, /** 销毁标识 @readonly */ _this.destroyed = false, _this.scaleMode = 0;
10179
+ */ _this.recMonth = [], /** 清理 header/footer 动画 定时器 @private */ _this._onPauseTimingFunc = null, /** 销毁标识 @readonly */ _this.destroyed = false, _this.scaleMode = 0, _this._videoInfo = {};
10179
10180
  _this._initOptions(options);
10180
10181
  if (_this.options.type === 'ezopen') {
10181
10182
  var _this_urlInfo_searchParams1, _this_urlInfo1, _this_urlInfo2;
@@ -10218,7 +10219,7 @@ var THEME_DEFAULT_OPTIONS = {
10218
10219
  _this._muted = (_ref1 = (_this_options_volumeOptions_muted = (_this_options_volumeOptions1 = _this.options.volumeOptions) == null ? void 0 : _this_options_volumeOptions1.muted) != null ? _this_options_volumeOptions_muted : _this.options.muted) != null ? _ref1 : false;
10219
10220
  var _this_options_speedOptions_value, _ref2;
10220
10221
  // playbackSpeed 是 萤石标准流倍速字段
10221
- _this._speed = (_ref2 = (_this_options_speedOptions_value = (_this_options_speedOptions = _this.options.speedOptions) == null ? void 0 : _this_options_speedOptions.value) != null ? _this_options_speedOptions_value : (_this_urlInfo = _this.urlInfo) == null ? void 0 : (_this_urlInfo_searchParams = _this_urlInfo.searchParams) == null ? void 0 : _this_urlInfo_searchParams.playbackSpeed) != null ? _ref2 : 1;
10222
+ _this._speed = +((_ref2 = (_this_options_speedOptions_value = (_this_options_speedOptions = _this.options.speedOptions) == null ? void 0 : _this_options_speedOptions.value) != null ? _this_options_speedOptions_value : (_this_urlInfo = _this.urlInfo) == null ? void 0 : (_this_urlInfo_searchParams = _this_urlInfo.searchParams) == null ? void 0 : _this_urlInfo_searchParams.playbackSpeed) != null ? _ref2 : 1);
10222
10223
  _this._mobileInnerWidthHeight = _this._mobileInnerWidthHeight.bind(_this);
10223
10224
  _this._throttleMobileInnerWidthHeight = throttle(_this._mobileInnerWidthHeight, 20).bind(_this);
10224
10225
  _this._onDblClickFullscreen = debounce(_this._onDblClickFullscreen, 20).bind(_this);
@@ -10456,6 +10457,8 @@ var THEME_DEFAULT_OPTIONS = {
10456
10457
  if (this.i18n) this.i18n = null;
10457
10458
  this.recType = '';
10458
10459
  this.recMonth = []; // 清空数据
10460
+ // 重置
10461
+ this._videoInfo = {};
10459
10462
  this.emit(EVENTS.theme.destroyed);
10460
10463
  this.removeAllListeners();
10461
10464
  if (this.logger) this.logger = null;
@@ -11072,6 +11075,41 @@ var THEME_DEFAULT_OPTIONS = {
11072
11075
  return this._height;
11073
11076
  }
11074
11077
  },
11078
+ {
11079
+ key: "videoInfo",
11080
+ get: /**
11081
+ * 视频信息
11082
+ * @version 3.1.2
11083
+ * ```ts
11084
+ * theme.videoInfo // ThemeVideoInfo
11085
+ * ```
11086
+ */ function get() {
11087
+ return this._videoInfo || {};
11088
+ }
11089
+ },
11090
+ {
11091
+ key: "videoWidth",
11092
+ get: /**
11093
+ * 视频分辨率 宽
11094
+ *
11095
+ * @version 3.1.2
11096
+ *
11097
+ * ```ts
11098
+ * theme.videoWidth // number
11099
+ * ```
11100
+ */ function get() {
11101
+ return this._videoInfo.width || 0;
11102
+ }
11103
+ },
11104
+ {
11105
+ key: "videoHeight",
11106
+ get: /**
11107
+ * 视频分辨率 高
11108
+ * @version 3.1.2
11109
+ */ function get() {
11110
+ return this._videoInfo.height || 0;
11111
+ }
11112
+ },
11075
11113
  {
11076
11114
  key: "playing",
11077
11115
  get: /**
@@ -11336,13 +11374,13 @@ var THEME_DEFAULT_OPTIONS = {
11336
11374
  {
11337
11375
  key: "speed",
11338
11376
  get: function get() {
11339
- return this._speed;
11377
+ return +this._speed;
11340
11378
  },
11341
11379
  set: /**
11342
11380
  * 倍速
11343
11381
  */ function set(speed) {
11344
11382
  speed = +speed;
11345
- if (speed !== this._speed) {
11383
+ if (speed !== +this._speed) {
11346
11384
  this._speed = speed;
11347
11385
  this.emit(EVENTS.speedChange, speed);
11348
11386
  }
@@ -11489,6 +11527,6 @@ var THEME_DEFAULT_OPTIONS = {
11489
11527
  zh: zh,
11490
11528
  en: en
11491
11529
  };
11492
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.2-beta.2';
11530
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.2-beta.3';
11493
11531
 
11494
11532
  export { Control, EVENTS, Fullscreen, Loading, Message, Play, Poster, Rec, Theme, Utils, Volume };
package/dist/index.umd.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v3.1.2-beta.2
3
- * Copyright (c) 2026-08-12 04:37:54 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v3.1.2-beta.3
3
+ * Copyright (c) 2026-08-14 08:18:55 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  (function (global, factory) {
@@ -5765,6 +5765,7 @@
5765
5765
  var // rerender 画面
5766
5766
  _theme_contentControl_emit, _theme_contentControl;
5767
5767
  (_theme_contentControl = theme.contentControl) == null ? void 0 : (_theme_contentControl_emit = _theme_contentControl.emit) == null ? void 0 : _theme_contentControl_emit.call(_theme_contentControl, EVENTS$2.videoInfo, info.width, info.height);
5768
+ theme._videoInfo = info;
5768
5769
  }
5769
5770
  });
5770
5771
  theme == null ? void 0 : theme.on(EVENTS$2.resize, function() {
@@ -12521,7 +12522,7 @@
12521
12522
  // _recMonthObj: Record<string, string[]> = {};
12522
12523
  /**
12523
12524
  * 录像回放的月份列表 @private
12524
- */ _this.recMonth = [], /** 清理 header/footer 动画 定时器 @private */ _this._onPauseTimingFunc = null, /** 销毁标识 @readonly */ _this.destroyed = false, _this.scaleMode = 0;
12525
+ */ _this.recMonth = [], /** 清理 header/footer 动画 定时器 @private */ _this._onPauseTimingFunc = null, /** 销毁标识 @readonly */ _this.destroyed = false, _this.scaleMode = 0, _this._videoInfo = {};
12525
12526
  _this._initOptions(options);
12526
12527
  if (_this.options.type === 'ezopen') {
12527
12528
  var _this_urlInfo_searchParams1, _this_urlInfo1, _this_urlInfo2;
@@ -12564,7 +12565,7 @@
12564
12565
  _this._muted = (_ref1 = (_this_options_volumeOptions_muted = (_this_options_volumeOptions1 = _this.options.volumeOptions) == null ? void 0 : _this_options_volumeOptions1.muted) != null ? _this_options_volumeOptions_muted : _this.options.muted) != null ? _ref1 : false;
12565
12566
  var _this_options_speedOptions_value, _ref2;
12566
12567
  // playbackSpeed 是 萤石标准流倍速字段
12567
- _this._speed = (_ref2 = (_this_options_speedOptions_value = (_this_options_speedOptions = _this.options.speedOptions) == null ? void 0 : _this_options_speedOptions.value) != null ? _this_options_speedOptions_value : (_this_urlInfo = _this.urlInfo) == null ? void 0 : (_this_urlInfo_searchParams = _this_urlInfo.searchParams) == null ? void 0 : _this_urlInfo_searchParams.playbackSpeed) != null ? _ref2 : 1;
12568
+ _this._speed = +((_ref2 = (_this_options_speedOptions_value = (_this_options_speedOptions = _this.options.speedOptions) == null ? void 0 : _this_options_speedOptions.value) != null ? _this_options_speedOptions_value : (_this_urlInfo = _this.urlInfo) == null ? void 0 : (_this_urlInfo_searchParams = _this_urlInfo.searchParams) == null ? void 0 : _this_urlInfo_searchParams.playbackSpeed) != null ? _ref2 : 1);
12568
12569
  _this._mobileInnerWidthHeight = _this._mobileInnerWidthHeight.bind(_this);
12569
12570
  _this._throttleMobileInnerWidthHeight = throttle(_this._mobileInnerWidthHeight, 20).bind(_this);
12570
12571
  _this._onDblClickFullscreen = debounce(_this._onDblClickFullscreen, 20).bind(_this);
@@ -12802,6 +12803,8 @@
12802
12803
  if (this.i18n) this.i18n = null;
12803
12804
  this.recType = '';
12804
12805
  this.recMonth = []; // 清空数据
12806
+ // 重置
12807
+ this._videoInfo = {};
12805
12808
  this.emit(EVENTS$2.theme.destroyed);
12806
12809
  this.removeAllListeners();
12807
12810
  if (this.logger) this.logger = null;
@@ -13418,6 +13421,41 @@
13418
13421
  return this._height;
13419
13422
  }
13420
13423
  },
13424
+ {
13425
+ key: "videoInfo",
13426
+ get: /**
13427
+ * 视频信息
13428
+ * @version 3.1.2
13429
+ * ```ts
13430
+ * theme.videoInfo // ThemeVideoInfo
13431
+ * ```
13432
+ */ function get() {
13433
+ return this._videoInfo || {};
13434
+ }
13435
+ },
13436
+ {
13437
+ key: "videoWidth",
13438
+ get: /**
13439
+ * 视频分辨率 宽
13440
+ *
13441
+ * @version 3.1.2
13442
+ *
13443
+ * ```ts
13444
+ * theme.videoWidth // number
13445
+ * ```
13446
+ */ function get() {
13447
+ return this._videoInfo.width || 0;
13448
+ }
13449
+ },
13450
+ {
13451
+ key: "videoHeight",
13452
+ get: /**
13453
+ * 视频分辨率 高
13454
+ * @version 3.1.2
13455
+ */ function get() {
13456
+ return this._videoInfo.height || 0;
13457
+ }
13458
+ },
13421
13459
  {
13422
13460
  key: "playing",
13423
13461
  get: /**
@@ -13682,13 +13720,13 @@
13682
13720
  {
13683
13721
  key: "speed",
13684
13722
  get: function get() {
13685
- return this._speed;
13723
+ return +this._speed;
13686
13724
  },
13687
13725
  set: /**
13688
13726
  * 倍速
13689
13727
  */ function set(speed) {
13690
13728
  speed = +speed;
13691
- if (speed !== this._speed) {
13729
+ if (speed !== +this._speed) {
13692
13730
  this._speed = speed;
13693
13731
  this.emit(EVENTS$2.speedChange, speed);
13694
13732
  }
@@ -13835,7 +13873,7 @@
13835
13873
  zh: zh,
13836
13874
  en: en
13837
13875
  };
13838
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.2-beta.2';
13876
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.2-beta.3';
13839
13877
 
13840
13878
  // 不要动这里的代码, 这个出口是为了编译成 umd 规范的文件
13841
13879
 
package/dist/style.css CHANGED
@@ -1,7 +1,7 @@
1
1
  :root{--ezplayer-default-color:#fff;--ezplayer-primary-color:#407aff;--ezplayer-active-color:var(--ezplayer-primary-color,#407aff);--ezplayer-disabled-color:#aaa;--ezplayer-font-size:14px;--ezplayer-icon-font-size:24px;--ezplayer-btn-height:var(--ezplayer-icon-font-size,24px);--ezplayer-border-radius:8px;--ezplayer-control-space:16px;--ezplayer-header-height:46px;--ezplayer-footer-height:80px;--ezplayer-fullscreen-control-space:26px;--ezplayer-panel-bg-color:rgba(0,0,0,.7);--ezplayer-mobile-control-space:16px;--ezplayer-mobile-header-height:45px;--ezplayer-mobile-footer-height:54px;--ezplayer-mobile-fullscreen-header-height:75px;--ezplayer-mobile-fullscreen-footer-height:110px;--ezplayer-mobile-fullscreen-control-space:26px;--ezplayer-mobile-extend-bg-color:#f5f7fa;--ezplayer-mobile-extend-default-color:#2c2c2c}
2
2
  body.ezplayer-body-mobile-noscroll{background-color:#000!important;height:100vh;overflow:hidden;touch-action:none}.ezplayer,.ezplayer-mobile-extend{background-color:#000;box-sizing:border-box;color:var(--ezplayer-default-color,#fff);display:flex;flex-direction:column;font-size:14px;font-size:var(--ezplayer-font-size,14px);padding:0;position:relative;--webkit-tap-highlight-color:transparent;outline:none}.ezplayer *,.ezplayer-mobile-extend *{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ezplayer:-webkit-full-screen{height:100%!important;width:100%!important}.ezplayer *{box-sizing:border-box}.ezplayer li,.ezplayer ul{box-sizing:border-box;list-style:none;margin:0;padding:0}.ezplayer-control{align-items:center;cursor:pointer;display:inline-flex;justify-content:center}.ezplayer-control-block,.ezplayer-control-text{cursor:unset}.ezplayer-control-block{align-items:center;box-sizing:border-box;color:var(--ezplayer-default-color,#fff);display:flex;flex-direction:column;justify-content:center;margin:0;padding:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ezplayer-btn,.ezplayer-icon,.ezplayer-text{display:inline-flex;transition:color .2s ease-in-out}.ezplayer-btn{cursor:pointer}.ezplayer-btn,.ezplayer-text{font-size:var(--ezplayer-font-size,14px)}.ezplayer-btn{align-items:center;border:1px solid var(--ezplayer-default-color,#fff);border-radius:12px;border-radius:calc(var(--ezplayer-btn-height, 24px)/2);display:inline-flex;height:var(--ezplayer-btn-height,26px);justify-content:center;padding:2px 10px;white-space:nowrap}.ezplayer-active{border-color:var(--ezplayer-active-color,#0099e5)!important;color:var(--ezplayer-active-color,#0099e5)!important}.ezplayer-disabled,.ezplayer-disabled .ezplayer-btn,.ezplayer-disabled .ezplayer-icon,.ezplayer-disabled .ezplayer-text{border-color:var(--ezplayer-disabled-color,#aaa)!important;color:var(--ezplayer-disabled-color)!important;cursor:not-allowed!important}.ezplayer-hide{display:none!important}.ezplayer-hide-transition{opacity:0!important;pointer-events:none!important}.ezplayer-overflow-hidden{overflow:hidden}.ezplayer-global-fullscreen .ezplayer-footer,.ezplayer-global-fullscreen .ezplayer-header,.ezplayer-global-fullscreen .ezplayer-rec-footer{display:none}.ezplayer-mobile .ezplayer-control-global-fullscreen{display:none!important}.ezplayer-mobile.ezplayer-fullscreen.ezplayer-angle-0,.ezplayer-mobile.ezplayer-fullscreen.ezplayer-angle-180{background-color:#000!important;bottom:0!important;height:100vw!important;height:var(--ezplayer-mobile-inner-width,100vw)!important;left:0!important;overflow:hidden;padding-right:env(safe-area-inset-bottom);position:fixed!important;right:0!important;top:0!important;transform:rotate(90.001deg) translateY(-100%)!important;-webkit-transform:rotate(90.001deg) translateY(-100%)!important;transform-origin:0 0!important;-webkit-transform-origin:0 0!important;width:100vh!important;width:var(--ezplayer-mobile-inner-height,100vh)!important;z-index:9999}.ezplayer-mobile.ezplayer-fullscreen.ezplayer-angle-270,.ezplayer-mobile.ezplayer-fullscreen.ezplayer-angle-90{background-color:#000!important;bottom:0!important;height:100vh!important;height:var(--ezplayer-mobile-inner-height,100vh)!important;left:0!important;overflow:hidden;position:fixed!important;right:0!important;top:0!important;transform:rotate(0deg) translateY(0)!important;-webkit-transform:rotate(0deg) translateY(0)!important;transform-origin:0 0!important;-webkit-transform-origin:0 0!important;width:100vw!important;width:var(--ezplayer-mobile-inner-width,100vw)!important;z-index:9999}
3
3
  .ezplayer-footer,.ezplayer-header{align-items:center;box-sizing:border-box;color:var(--ezplayer-default-color,#fff);display:flex;flex-wrap:nowrap;font-size:24px;justify-content:space-between;left:0;opacity:1;position:absolute;right:0;transition:opacity .3s ease;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%;z-index:20}.ezplayer-footer-left,.ezplayer-footer-right,.ezplayer-header-left,.ezplayer-header-right{display:inline-flex;flex-direction:row;flex-wrap:nowrap}.ezplayer-footer-left,.ezplayer-header-left{padding-left:20px}.ezplayer-footer-left .ezplayer-control,.ezplayer-header-left .ezplayer-control{margin-right:16px}.ezplayer-footer-left .ezplayer-control:last-child,.ezplayer-header-left .ezplayer-control:last-child{margin-right:0!important}.ezplayer-footer-right,.ezplayer-header-right{padding-right:20px}.ezplayer-footer-right .ezplayer-control,.ezplayer-header-right .ezplayer-control{margin-left:16px}.ezplayer-footer-right .ezplayer-control:first-child,.ezplayer-header-right .ezplayer-control:first-child{margin-left:0!important}.ezplayer-footer .ezplayer-control,.ezplayer-header .ezplayer-control{padding:2px}.ezplayer-footer .ezplayer-control-text+.ezplayer-control-text,.ezplayer-header .ezplayer-control-text+.ezplayer-control-text{margin-left:8px}.ezplayer-footer-more,.ezplayer-header-more{align-items:center;display:flex;flex-direction:row}.ezplayer-header{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAuCAMAAADeMYNYAAAAbFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB0Iv+qAAAAJHRSTlOBdGtiTDoxGxIJy8bCvbm0sKyno56alZGMiHtbV1JFQSomIQDNbq/TAAAAPklEQVQI1xXBhQHAIAAEsau7uwv778iTkFNQUlHT0NLRMzAyMbOwsuHseOproAcnF6HePEQa68vHT6KpZmosd8UCpGNSKboAAAAASUVORK5CYII=");box-sizing:border-box;height:46px;margin:0;top:0}.ezplayer-header-left,.ezplayer-header-right{max-width:50%}.ezplayer-header .ezplayer-icon{font-size:22px}.ezplayer-control-rec .ezplayer-icon:first-child{margin-left:0}.ezplayer-footer{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAABQCAQAAAByztdQAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAACYktHRAD/h4/MvwAAAAd0SU1FB+kGBAsQDlySUqoAAAABb3JOVAHPoneaAAAAHElEQVQI12NgYGRiYGZiYGJiYEZiYJLECw5q9QCpgAFr/pGonwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyNS0wNi0wNFQxMToxNTo1OCswMDowMBLJutIAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjUtMDYtMDRUMTE6MTU6NTgrMDA6MDBjlAJuAAAAKHRFWHRkYXRlOnRpbWVzdGFtcAAyMDI1LTA2LTA0VDExOjE2OjE0KzAwOjAwnFz8PAAAAABJRU5ErkJggg==");bottom:0;box-sizing:border-box;height:80px;margin:0;padding-top:20px}.ezplayer-mobile .ezplayer-footer,.ezplayer-mobile .ezplayer-header{font-size:24px}.ezplayer-mobile .ezplayer-footer-left .ezplayer-control,.ezplayer-mobile .ezplayer-footer-right .ezplayer-control,.ezplayer-mobile .ezplayer-header-left .ezplayer-control,.ezplayer-mobile .ezplayer-header-right .ezplayer-control{height:24px;padding:0}.ezplayer-mobile .ezplayer-footer-left,.ezplayer-mobile .ezplayer-header-left{padding-left:15px}.ezplayer-mobile .ezplayer-footer-left .ezplayer-control,.ezplayer-mobile .ezplayer-header-left .ezplayer-control{margin-right:15px}.ezplayer-mobile .ezplayer-footer-right,.ezplayer-mobile .ezplayer-header-right{padding-right:15px}.ezplayer-mobile .ezplayer-footer-right .ezplayer-control,.ezplayer-mobile .ezplayer-header-right .ezplayer-control{margin-left:15px}.ezplayer-mobile .ezplayer-footer .ezplayer-control,.ezplayer-mobile .ezplayer-header .ezplayer-control{height:24px;min-width:24px}.ezplayer-mobile .ezplayer-footer .ezplayer-control-text,.ezplayer-mobile .ezplayer-header .ezplayer-control-text{font-size:14px}.ezplayer-mobile .ezplayer-header{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAAtCAMAAACzkkr1AAAAV1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOl5NtAAAAHXRSTlOWj4JzaV9YUUQ9MywlGxQKioZ8eW9kTUk4IA8FAKPHi9EAAABMSURBVAjXJcKFDcAwAAOwjKHM+P+dUzTL+C0LWwvnsK7sPULAtnGM2HdOCcfB58nXxTmjFNw3Pw/XivdlIVhKbg1KsdbcO4zhMTDnB9pJBB0jNaXIAAAAAElFTkSuQmCC");background:linear-gradient(180deg,rgba(0,0,0,.6) 0,transparent);height:45px;margin:0;padding:0}.ezplayer-mobile .ezplayer-footer{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAA2CAQAAABHVIAUAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAACYktHRAD/h4/MvwAAAAd0SU1FB+kHGQYOGOvM7YUAAAABb3JOVAHPoneaAAAAFUlEQVQY02NkYGRgYGFgxkUwjShZAMFnAW71uqvOAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDI1LTA3LTI1VDA2OjE0OjAwKzAwOjAwy873zwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyNS0wNy0yNVQwNjoxNDowMCswMDowMLqTT3MAAAAodEVYdGRhdGU6dGltZXN0YW1wADIwMjUtMDctMjVUMDY6MTQ6MjQrMDA6MDBb7E3CAAAAAElFTkSuQmCC");background:linear-gradient(180deg,transparent 0,rgba(0,0,0,.6));height:54px;padding-top:0}.ezplayer-mobile.ezplayer-fullscreen .ezplayer-header{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAABLCAQAAADw6J4LAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAACYktHRAD/h4/MvwAAAAd0SU1FB+kHGQYYHh43/WcAAAABb3JOVAHPoneaAAAAKUlEQVQY02NkOM3AwMLwF5X4h5dLOyXD13JmBiaG/8wMjAz/GRkYGRgADI9KMQ6gLKQAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjUtMDctMjVUMDY6MjQ6MTQrMDA6MDBqybVDAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDI1LTA3LTI1VDA2OjI0OjE0KzAwOjAwG5QN/wAAACh0RVh0ZGF0ZTp0aW1lc3RhbXAAMjAyNS0wNy0yNVQwNjoyNDozMCswMDowMPrrD04AAAAASUVORK5CYII=");background:linear-gradient(180deg,rgba(0,0,0,.8) 0,transparent);height:75px}.ezplayer-mobile.ezplayer-fullscreen .ezplayer-footer{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAABuCAMAAAA6XjI3AAAAaVBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAnbPKNAAAAI3RSTlMAQrRXSTozKxUHxb+spqCNh4F1ZVAgDbqTenBqJRvKm5dgXO7N8BQAAABzSURBVBjThcRFDsQwFATRH2Z2mHP/Q447bmuWKT2VfJdIYg0DxTHt2g59T9sGUSQRDmFoBRJYjvPn+6SUKHNPPOt54L6h62hdYdEWaFuaZ2gaacxrqV9VJZX5JNPruuA8oSypKCjPyXVp1EbIMkpTOg7tB7gTDCt3nEtMAAAAAElFTkSuQmCC");background:linear-gradient(180deg,transparent 9%,rgba(0,0,0,.8));height:110px;padding-top:18px}.ezplayer-mobile.ezplayer-fullscreen .ezplayer-footer-left,.ezplayer-mobile.ezplayer-fullscreen .ezplayer-header-left{padding-left:50px}.ezplayer-mobile.ezplayer-fullscreen .ezplayer-footer-left .ezplayer-control,.ezplayer-mobile.ezplayer-fullscreen .ezplayer-header-left .ezplayer-control{margin-right:30px}.ezplayer-mobile.ezplayer-fullscreen .ezplayer-footer-right,.ezplayer-mobile.ezplayer-fullscreen .ezplayer-header-right{padding-right:50px}.ezplayer-mobile.ezplayer-fullscreen .ezplayer-footer-right .ezplayer-control,.ezplayer-mobile.ezplayer-fullscreen .ezplayer-header-right .ezplayer-control{margin-left:30px}.ezplayer-fullscreen:not(.ezplayer-mobile) .ezplayer-footer-left .ezplayer-control,.ezplayer-fullscreen:not(.ezplayer-mobile) .ezplayer-header-left .ezplayer-control{margin-right:26px}.ezplayer-fullscreen:not(.ezplayer-mobile) .ezplayer-footer-right .ezplayer-control,.ezplayer-fullscreen:not(.ezplayer-mobile) .ezplayer-header-right .ezplayer-control{margin-left:26px}
4
- .ezplayer-content{align-items:center;justify-content:center}.ezplayer-content,.ezplayer-content-wrapper{box-sizing:border-box;display:flex;flex:1 1 auto;height:100%;margin:0;outline:none;overflow:hidden;padding:0;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%;z-index:0}.ezplayer-content-wrapper{background-color:#000}.ezplayer-content-video{align-items:center;box-sizing:border-box;display:flex;flex:1 1 auto;height:100%;justify-content:center;margin:0;outline:none;padding:0;width:100%}
4
+ .ezplayer-content{align-items:center;justify-content:center}.ezplayer-content,.ezplayer-content-wrapper{box-sizing:border-box;display:flex;flex:1 1 auto;height:100%;margin:0;outline:none;overflow:hidden;padding:0;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%;z-index:0}.ezplayer-content-wrapper{background-color:#000}.ezplayer-content-video{align-items:center;box-sizing:border-box;display:flex;flex:1 1 auto;height:100%;justify-content:center;margin:0;outline:none;padding:0;position:absolute!important;width:100%}
5
5
  .ezplayer-mobile-extend{background-color:#639;background-color:var(--ezplayer-mobile-extend-bg-color,#f5f7fa);color:var(--ezplayer-mobile-extend-default-color,#2c2c2c);display:flex;flex-direction:column}.ezplayer-mobile-extend-controls{background-color:#639;display:flex;height:66px;justify-content:space-around}.ezplayer-mobile-extend-controls .ezplayer-control{width:75px}.ezplayer-mobile-extend-control-panel{align-items:center;display:flex;flex-direction:column;min-height:390px}.ezplayer-mobile-extend-control-top{align-items:center;display:flex;height:36px;justify-content:space-between;padding-top:10px}.ezplayer-mobile-extend-control-top-left{display:inline-flex;padding-left:15px}.ezplayer-mobile-extend-control-top-right{display:inline-flex;justify-content:flex-end;padding-right:15px}.ezplayer-mobile-extend-control-content{display:flex;flex:1 1 auto;flex-direction:column;width:100%}
6
6
  .ezplayer-rec-footer{background-color:#000;box-sizing:border-box;display:flex;flex-direction:row;height:36px;position:relative}.ezplayer-rec-footer-time-line{display:flex;flex:1 1 auto;height:36px}.ezplayer-rec-footer-right{align-items:center;display:flex;flex:0 0 auto;flex-direction:row;height:36px}.ezplayer-rec-footer-date-picker{align-items:center;display:flex;height:36px;padding-left:8px}.ezplayer-rec-footer-date-picker .ezplayer-icon-date{font-size:20px;margin-top:-5px}.ezplayer-rec-footer-time-picker{align-items:center;display:flex;height:36px;padding-left:8px}.ezplayer-rec-footer-time-picker .ezplayer-icon-time{font-size:20px;margin-top:-5px}.ezplayer-rec-footer-btn:last-child{padding-right:20px}
7
7
  .epicker-body-noscroll{overflow:hidden;touch-action:none}.epicker{box-shadow:0 9px 28px 8px #0000000d;display:none;margin:0;opacity:0;padding:0;position:absolute;transition:opacity .3s ease;vertical-align:top;z-index:1000}.epicker,.epicker-body{box-sizing:border-box;flex-direction:column}.epicker-body{display:flex}.epicker.epicker-mobile .epicker-mask{background:#0000004d;bottom:0;box-sizing:border-box;height:100%;left:0;position:fixed;right:0;top:0;width:100%;z-index:9998}.epicker.epicker-mobile .epicker-body{align-items:center;bottom:0;left:0;position:fixed;right:0;z-index:9999}
package/dist/style.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v3.1.2-beta.2
3
- * Copyright (c) 2026-08-12 04:37:54 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v3.1.2-beta.3
3
+ * Copyright (c) 2026-08-14 08:18:55 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  require("./style.css");
@@ -1492,10 +1492,9 @@ declare class Theme extends EventEmitter {
1492
1492
  readonly audioInfo: "audioInfo";
1493
1493
  readonly videoInfo: "videoInfo";
1494
1494
  readonly firstFrameDisplay: "firstFrameDisplay";
1495
- readonly fullscreen: "fullscreen"; /** 所有私有流的模板 @since 0.0.1 */
1495
+ readonly fullscreen: "fullscreen";
1496
1496
  readonly exitFullscreen: "exitFullscreen";
1497
1497
  readonly fullscreenChange: "fullscreenChange";
1498
- /** 播放器配置项 */
1499
1498
  readonly resize: "resize";
1500
1499
  readonly orientationChange: "orientationChange";
1501
1500
  readonly audioCodecUnsupported: "audioCodecUnsupported";
@@ -1505,15 +1504,25 @@ declare class Theme extends EventEmitter {
1505
1504
  readonly speedChange: "speedChange";
1506
1505
  readonly recordingChange: "recordingChange";
1507
1506
  readonly talkingChange: "talkingChange";
1508
- readonly talkVolumeChange: "talkVolumeChange"; /** 封面控件 @since 0.0.1 @private */
1507
+ readonly talkVolumeChange: "talkVolumeChange";
1509
1508
  readonly broadcastChange: "broadcastChange";
1510
1509
  readonly aichatChange: "aichatChange";
1511
1510
  readonly liveChange: "liveChange";
1511
+ /**
1512
+ * @type { "rec" | "cloudRec" | "cloudRecord" } recType 回放类型
1513
+ * ```ts
1514
+ * theme.recType // 回放类型
1515
+ * ```
1516
+ */
1512
1517
  readonly recDropdownChange: "recDropdownChange";
1513
1518
  readonly recListChange: "recListChange";
1514
1519
  readonly alarmMessageChange: "alarmMessageChange";
1515
1520
  readonly setLoggerOptions: "setLoggerOptions";
1516
- readonly records: "records";
1521
+ readonly records: "records"; /**
1522
+ * 更多控件(footer more)
1523
+ * @since 0.0.1
1524
+ * @private
1525
+ */
1517
1526
  readonly ptzSpeedChange: "ptzSpeedChange";
1518
1527
  readonly setVideoLevelList: "setVideoLevelList";
1519
1528
  readonly currentVideoLevel: "currentVideoLevel";
@@ -1523,8 +1532,8 @@ declare class Theme extends EventEmitter {
1523
1532
  readonly control: {
1524
1533
  readonly play: "Control.play";
1525
1534
  readonly playDestroy: "Control.playDestroy";
1526
- readonly capturePicture: "Control.capturePicture";
1527
- readonly capturePictureResult: "Control.capturePictureResult"; /** @since 0.0.1 @private */
1535
+ readonly capturePicture: "Control.capturePicture"; /** @since 0.0.1 @private */
1536
+ readonly capturePictureResult: "Control.capturePictureResult";
1528
1537
  readonly capturePictureDestroy: "Control.capturePictureDestroy";
1529
1538
  readonly volumechange: "Control.volumechange";
1530
1539
  readonly volumePanelOpenChange: "Control.volumePanelOpenChange";
@@ -1534,18 +1543,15 @@ declare class Theme extends EventEmitter {
1534
1543
  readonly headerMorePanelOpenChange: "Control.headerMorePanelOpenChange";
1535
1544
  readonly footerMoreShowControlsChange: "Control.footerMoreShowControlsChange";
1536
1545
  readonly footerMorePanelOpenChange: "Control.footerMorePanelOpenChange";
1537
- /** 录制中 @private */
1538
1546
  readonly deviceDestroy: "Control.deviceDestroy";
1539
- readonly recTypeChange: "Control.recTypeChange";
1547
+ readonly recTypeChange: "Control.recTypeChange"; /** 自定清晰度 @private */
1540
1548
  readonly recDestroy: "Control.recDestroy";
1541
1549
  readonly definitionChange: "Control.definitionChange";
1542
1550
  readonly definitionList: "Control.definitionList";
1543
1551
  readonly definitionPanelOpenChange: "Control.definitionPanelOpenChange";
1544
1552
  readonly definitionDestroy: "Control.definitionDestroy";
1545
1553
  readonly speedChange: "Control.speedChange";
1546
- readonly speedPanelOpenChange: "Control.speedPanelOpenChange"; /**
1547
- * 录像回放的月份列表 @private
1548
- */
1554
+ readonly speedPanelOpenChange: "Control.speedPanelOpenChange";
1549
1555
  readonly speedDestroy: "Control.speedDestroy";
1550
1556
  readonly ptzPanelOpenChange: "Control.ptzPanelOpenChange";
1551
1557
  readonly ptzSpeedChange: "Control.ptzSpeedChange";
@@ -1704,7 +1710,6 @@ declare class Theme extends EventEmitter {
1704
1710
  397007: string;
1705
1711
  399000: string;
1706
1712
  399001: string;
1707
- /** 移动端竖屏, 全屏情况下不展示扩张,放置在 footer 中 */
1708
1713
  399002: string;
1709
1714
  399016: string;
1710
1715
  399048: string;
@@ -1759,6 +1764,7 @@ declare class Theme extends EventEmitter {
1759
1764
  MIN_SPEED_LIMIT: string;
1760
1765
  SEEK_CANNOT_CROSS_DAYS: string;
1761
1766
  SEEK_TIMEFORMAT_ERROR: string;
1767
+ /** 所有控件列表, 所有控件名称规则(`${iconId}Control`), 如音量控件 this.controls["volumeControl"] @since 0.0.1 */
1762
1768
  PAUSE: string;
1763
1769
  PAUSE_FAILED: string;
1764
1770
  RESUME: string;
@@ -1769,7 +1775,6 @@ declare class Theme extends EventEmitter {
1769
1775
  CHANGE_VIDEO_LEVEL: string;
1770
1776
  CHANGE_VIDEO_LEVEL_FAIL: string;
1771
1777
  GET_VIDEO_LEVEL_LIST: string;
1772
- /** 消息提示控件 @since 0.0.1 @private */
1773
1778
  PLEASE_INPUT_RIGHT_VIDEO_LEVEL: string;
1774
1779
  VIDEO_LEVEL_NOT_SUPPORT: string;
1775
1780
  VIDEO_LEVEL_AUTO: string;
@@ -1783,6 +1788,11 @@ declare class Theme extends EventEmitter {
1783
1788
  RESET_THEME: string;
1784
1789
  BTN_PLAY: string;
1785
1790
  BTN_PAUSE: string;
1791
+ /**
1792
+ * 更多控件(header more)
1793
+ * @since 0.0.1
1794
+ * @private
1795
+ */
1786
1796
  BTN_VOLUME: string;
1787
1797
  BTN_MUTED: string;
1788
1798
  BTN_RECORDVIDEO: string;
@@ -1792,18 +1802,14 @@ declare class Theme extends EventEmitter {
1792
1802
  BTN_AICHAT: string;
1793
1803
  BTN_LIVE: string;
1794
1804
  BTN_REC_DROPDOWN: string;
1795
- BTN_ALARM_MESSAGE: string;
1805
+ BTN_ALARM_MESSAGE: string; /** 头部控件 @since 0.0.1 @private */
1796
1806
  REC_DROPDOWN_CLOUD_REC: string;
1797
- REC_DROPDOWN_CLOUD_RECORD: string;
1807
+ REC_DROPDOWN_CLOUD_RECORD: string; /** 低部控件 @since 0.0.1 @private */
1798
1808
  REC_DROPDOWN_LOCAL_REC: string;
1799
- BTN_ZOOM: string; /** 回放底部时间轴 @since 0.0.1 @private */
1809
+ BTN_ZOOM: string;
1800
1810
  BTN_3D_ZOOM: string;
1801
1811
  BTN_PTZ: string;
1802
1812
  BTN_GLOBAL_FULLSCREEN: string;
1803
- /**
1804
- * 移动端扩展容器, 扩展的控件渲染在指定容器以外, 仅只用端适用, 为了可以放置大的控件和方便开发接入
1805
- * @private
1806
- */
1807
1813
  BTN_EXIT_GLOBAL_FULLSCREEN: string;
1808
1814
  BTN_FULLSCREEN: string;
1809
1815
  BTN_EXIR_FULLSCREEN: string;
@@ -1821,14 +1827,13 @@ declare class Theme extends EventEmitter {
1821
1827
  CAPTURE_FAILED: string;
1822
1828
  START_RECORD_SUCCESS: string;
1823
1829
  START_RECORD_FAILED: string;
1824
- STOP_RECORD_SUCCESS: string; /** resizeObserver 监听销毁 */
1830
+ STOP_RECORD_SUCCESS: string;
1825
1831
  STOP_RECORD_FAILED: string;
1826
1832
  RECORD_TIPS: string;
1827
1833
  RECORDS: string;
1828
1834
  OPEN_SOUND: string;
1829
1835
  CLOSE_SOUND: string;
1830
1836
  SOUND_OPENED: string;
1831
- /** 容器的宽 */
1832
1837
  ZOOM: string;
1833
1838
  START_ZOOM: string;
1834
1839
  CLOSE_ZOOM: string;
@@ -1838,7 +1843,7 @@ declare class Theme extends EventEmitter {
1838
1843
  ZOOM_SUB_MIN: string;
1839
1844
  ZOOM_LIMIT_MAX: string;
1840
1845
  ZOOM_LIMIT_MIN: string;
1841
- ZOOM_NOT_ENABLED: string; /** 是否播放中 @private */
1846
+ ZOOM_NOT_ENABLED: string;
1842
1847
  '3D_ZOOM': string;
1843
1848
  '3D_ZOOM_DISABLE': string;
1844
1849
  '3D_ZOOM_FAILED': string;
@@ -1847,12 +1852,13 @@ declare class Theme extends EventEmitter {
1847
1852
  DEVICE_NOT_SUPPORT_3D_ZOOM: string;
1848
1853
  '3D_ZOOM_ACTIVED': string;
1849
1854
  '3D_ZOOM_NOT_ACTIVED': string;
1850
- '3D_ZOOM_CLOSED': string;
1855
+ '3D_ZOOM_CLOSED': string; /** 录制中 @private */
1851
1856
  CHANGE_ZOOM_TYPE: string;
1852
1857
  FULLSCREEN: string;
1853
1858
  FULLSCREEN_EXIT: string;
1859
+ /** 倍速 @private */
1854
1860
  GET_WEB_FULLSCREEN_STATUS: string;
1855
- WEB_FULLSCREEN: string; /** 清晰度列表 */
1861
+ WEB_FULLSCREEN: string;
1856
1862
  WEB_FULLSCREEN_EXIT: string;
1857
1863
  DESTROY: string;
1858
1864
  GET_CAPACITY: string;
@@ -1865,16 +1871,16 @@ declare class Theme extends EventEmitter {
1865
1871
  PTZ_MID: string;
1866
1872
  PTZ_SLOW: string;
1867
1873
  PTZ_SPEED: string;
1868
- /**
1869
- * 录像回放的月份列表 @private
1870
- */
1871
1874
  DEVICE_ZOOM: string;
1872
1875
  DEVICE_FOCUS: string;
1873
1876
  NOT_SUPPORT_DEVICE_ZOOM: string;
1874
1877
  NOT_SUPPORT_FOCUS: string;
1875
1878
  MIRROR: string;
1879
+ /**
1880
+ * 录像回放的月份列表 @private
1881
+ */
1876
1882
  MIRROR_TYPE_ERROR: string;
1877
- CHANGE_FEC_TYPE: string;
1883
+ CHANGE_FEC_TYPE: string; /** 清理 header/footer 动画 定时器 @private */
1878
1884
  DEVICE_NOT_SUPPORT: string;
1879
1885
  TYPE_NOT_SUPPORT: string;
1880
1886
  FEC_SUPPORT_VERSION: string;
@@ -1946,8 +1952,8 @@ declare class Theme extends EventEmitter {
1946
1952
  395601: string;
1947
1953
  395602: string;
1948
1954
  395610: string;
1949
- /** 暂停控件 @since 0.0.1 @private */
1950
1955
  395620: string;
1956
+ /** 消息提示控件 @since 0.0.1 @private */
1951
1957
  395701: string;
1952
1958
  395702: string;
1953
1959
  395703: string;
@@ -1968,15 +1974,14 @@ declare class Theme extends EventEmitter {
1968
1974
  396503: string;
1969
1975
  396504: string;
1970
1976
  396505: string;
1971
- /** 屏幕旋转角度 0 | 90 | 180 | 270 */
1972
1977
  396506: string;
1973
1978
  396508: string;
1974
1979
  396509: string;
1975
1980
  396510: string;
1976
1981
  396511: string;
1977
- 396512: string; /** 倍速 @private */
1982
+ 396512: string;
1978
1983
  396513: string;
1979
- 396514: string;
1984
+ 396514: string; /** 回放片段列表 */
1980
1985
  396515: string;
1981
1986
  396516: string;
1982
1987
  /**
@@ -2049,12 +2054,7 @@ declare class Theme extends EventEmitter {
2049
2054
  GET_SPEED: string;
2050
2055
  MAX_SPEED_LIMIT: string;
2051
2056
  MIN_SPEED_LIMIT: string;
2052
- SEEK_CANNOT_CROSS_DAYS: string; /**
2053
- * 容器的高(单位 px)
2054
- * ```ts
2055
- * theme.height // number
2056
- * ```
2057
- */
2057
+ SEEK_CANNOT_CROSS_DAYS: string;
2058
2058
  SEEK_TIMEFORMAT_ERROR: string;
2059
2059
  PAUSE: string;
2060
2060
  PAUSE_FAILED: string;
@@ -2066,6 +2066,10 @@ declare class Theme extends EventEmitter {
2066
2066
  CHANGE_VIDEO_LEVEL: string;
2067
2067
  CHANGE_VIDEO_LEVEL_FAIL: string;
2068
2068
  GET_VIDEO_LEVEL_LIST: string;
2069
+ /**
2070
+ * 视频分辨率 高
2071
+ * @version 3.1.2
2072
+ */
2069
2073
  PLEASE_INPUT_RIGHT_VIDEO_LEVEL: string;
2070
2074
  VIDEO_LEVEL_NOT_SUPPORT: string;
2071
2075
  VIDEO_LEVEL_AUTO: string;
@@ -2088,21 +2092,9 @@ declare class Theme extends EventEmitter {
2088
2092
  BTN_AICHAT: string;
2089
2093
  BTN_LIVE: string;
2090
2094
  BTN_REC_DROPDOWN: string;
2091
- /**
2092
- * 加载中
2093
- * ```ts
2094
- * theme.loading // boolean
2095
- * ```
2096
- */
2097
2095
  BTN_ALARM_MESSAGE: string;
2098
2096
  REC_DROPDOWN_CLOUD_REC: string;
2099
- REC_DROPDOWN_CLOUD_RECORD: string; /**
2100
- * 加载状态
2101
- * ```ts
2102
- * // 事件监听
2103
- * theme.on(Theme.EVENTS.loading, (loading: boolean) => {})
2104
- * ```
2105
- */
2097
+ REC_DROPDOWN_CLOUD_RECORD: string;
2106
2098
  REC_DROPDOWN_LOCAL_REC: string;
2107
2099
  BTN_ZOOM: string;
2108
2100
  BTN_3D_ZOOM: string;
@@ -2114,13 +2106,7 @@ declare class Theme extends EventEmitter {
2114
2106
  BTN_EXPEND: string;
2115
2107
  BTN_WEBEXPEND: string;
2116
2108
  BTN_HD: string;
2117
- BTN_SPEED: string; /**
2118
- * 音量值
2119
- * ```ts
2120
- * // 事件监听
2121
- * theme.on(Theme.EVENTS.volumechange, (volume: number, muted: boolean) => {})
2122
- * ```
2123
- */
2109
+ BTN_SPEED: string;
2124
2110
  BTN_CLOUDREC: string;
2125
2111
  BTN_CLOUDRECORD: string;
2126
2112
  BTN_REC: string;
@@ -2133,6 +2119,9 @@ declare class Theme extends EventEmitter {
2133
2119
  CAPTURE_FAILED: string;
2134
2120
  START_RECORD_SUCCESS: string;
2135
2121
  START_RECORD_FAILED: string;
2122
+ /**
2123
+ * 音量值
2124
+ */
2136
2125
  STOP_RECORD_SUCCESS: string;
2137
2126
  STOP_RECORD_FAILED: string;
2138
2127
  RECORD_TIPS: string;
@@ -2149,6 +2138,10 @@ declare class Theme extends EventEmitter {
2149
2138
  ZOOM_SUB_MIN: string;
2150
2139
  ZOOM_LIMIT_MAX: string;
2151
2140
  ZOOM_LIMIT_MIN: string;
2141
+ /**
2142
+ * 静音
2143
+ *
2144
+ */
2152
2145
  ZOOM_NOT_ENABLED: string;
2153
2146
  '3D_ZOOM': string;
2154
2147
  '3D_ZOOM_DISABLE': string;
@@ -2312,6 +2305,7 @@ declare class Theme extends EventEmitter {
2312
2305
  /** 销毁标识 @readonly */
2313
2306
  destroyed: boolean;
2314
2307
  scaleMode: ThemeOptions['scaleMode'];
2308
+ _videoInfo: ThemeVideoInfo;
2315
2309
  constructor(options: ThemeOptions);
2316
2310
  get url(): string;
2317
2311
  set url(url: string);
@@ -2333,6 +2327,29 @@ declare class Theme extends EventEmitter {
2333
2327
  * ```
2334
2328
  */
2335
2329
  get height(): number;
2330
+ /**
2331
+ * 视频信息
2332
+ * @version 3.1.2
2333
+ * ```ts
2334
+ * theme.videoInfo // ThemeVideoInfo
2335
+ * ```
2336
+ */
2337
+ get videoInfo(): ThemeVideoInfo;
2338
+ /**
2339
+ * 视频分辨率 宽
2340
+ *
2341
+ * @version 3.1.2
2342
+ *
2343
+ * ```ts
2344
+ * theme.videoWidth // number
2345
+ * ```
2346
+ */
2347
+ get videoWidth(): number;
2348
+ /**
2349
+ * 视频分辨率 高
2350
+ * @version 3.1.2
2351
+ */
2352
+ get videoHeight(): number;
2336
2353
  /**
2337
2354
  * 当前播放状态
2338
2355
  * ```ts
@@ -2825,6 +2842,11 @@ interface ThemeOptions {
2825
2842
  disabledTimeLine?: boolean;
2826
2843
  [kye: string]: any;
2827
2844
  }
2845
+ interface ThemeVideoInfo {
2846
+ width?: number;
2847
+ height?: number;
2848
+ [key: string]: any;
2849
+ }
2828
2850
  /**
2829
2851
  * 回放控件类型
2830
2852
  * @since 0.0.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ezuikit/player-theme",
3
- "version": "3.1.2-beta.2",
3
+ "version": "3.1.2-beta.3",
4
4
  "description": "player theme",
5
5
  "title": "theme",
6
6
  "main": "dist/index.cjs",