@ezuikit/player-theme 2.0.2-beta.5 → 2.0.2-beta.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,5 +1,5 @@
1
1
  /*
2
- * @ezuikit/player-theme v2.0.2-beta.5
2
+ * @ezuikit/player-theme v2.0.2-beta.6
3
3
  * Copyright (c) 2025-12-09 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
@@ -4355,10 +4355,10 @@ function debounce(func, wait) {
4355
4355
  theme.emit(EVENTS.control.timeLineChange, date);
4356
4356
  });
4357
4357
  theme.controls.timeLineControl.on(EVENTS.control.timeLinePanelOpenChange, function(open) {
4358
- var _theme_controls_dateControl;
4359
- if ((_theme_controls_dateControl = theme.controls.dateControl) == null ? void 0 : _theme_controls_dateControl.dataPickerUtil) {
4360
- var _theme_controls_dateControl_dataPickerUtil, _theme_controls_dateControl1;
4361
- (_theme_controls_dateControl1 = theme.controls.dateControl) == null ? void 0 : (_theme_controls_dateControl_dataPickerUtil = _theme_controls_dateControl1.dataPickerUtil) == null ? void 0 : _theme_controls_dateControl_dataPickerUtil.hide();
4358
+ var _theme_controls_dateControl, _theme_controls;
4359
+ if ((_theme_controls = theme.controls) == null ? void 0 : (_theme_controls_dateControl = _theme_controls.dateControl) == null ? void 0 : _theme_controls_dateControl.dataPickerUtil) {
4360
+ var _theme_controls_dateControl_dataPickerUtil, _theme_controls_dateControl1, _theme_controls1;
4361
+ (_theme_controls1 = theme.controls) == null ? void 0 : (_theme_controls_dateControl1 = _theme_controls1.dateControl) == null ? void 0 : (_theme_controls_dateControl_dataPickerUtil = _theme_controls_dateControl1.dataPickerUtil) == null ? void 0 : _theme_controls_dateControl_dataPickerUtil.hide();
4362
4362
  }
4363
4363
  theme.emit(EVENTS.control.timeLinePanelOpenChange, open);
4364
4364
  });
@@ -8584,27 +8584,35 @@ var SPEED_DEFAULT_OPTIONS = {
8584
8584
  _assert_this_initialized(_this).emit(EVENTS.control.speedPanelOpenChange, open, value, item);
8585
8585
  }
8586
8586
  })) || this;
8587
+ _this._filterSpeedList(options.list, options.props.recType);
8587
8588
  _this.on(EVENTS.speedChange, function(speed) {
8588
8589
  if (_this.value !== speed + '') _this.value = speed + '';
8589
8590
  });
8590
8591
  _this.on(EVENTS.control.recTypeChange, function(type) {
8591
- if (!(options == null ? void 0 : options.list)) {
8592
- // 非用户自定义
8593
- if (type === 'rec') {
8594
- // 本地回放 不支持 8 16 32 倍速
8595
- var list = _this.list.filter(function(item) {
8596
- return (item == null ? void 0 : item.value) && +item.value < 8;
8597
- });
8598
- _this.updateOptions(list);
8599
- } else {
8600
- // 云端回放 支持 8 16 32 倍速
8601
- _this.updateOptions(SPEED_DEFAULT_OPTIONS.list);
8602
- }
8603
- }
8592
+ _this._filterSpeedList(options.list, type);
8604
8593
  });
8605
8594
  return _this;
8606
8595
  }
8607
8596
  var _proto = Speed.prototype;
8597
+ /**
8598
+ * 滤掉本地回放不支持的倍速
8599
+ * @param optionsList 初始化配置倍速列表
8600
+ * @param type 回放类型
8601
+ */ _proto._filterSpeedList = function _filterSpeedList(optionsList, type) {
8602
+ if (!optionsList) {
8603
+ // 非用户自定义
8604
+ if (type === 'rec') {
8605
+ // 本地回放 不支持 8 16 32 倍速
8606
+ var list = this.list.filter(function(item) {
8607
+ return (item == null ? void 0 : item.value) && +item.value < 8;
8608
+ });
8609
+ this.updateOptions(list);
8610
+ } else {
8611
+ // 云端回放 支持 8 16 32 倍速
8612
+ this.updateOptions(SPEED_DEFAULT_OPTIONS.list);
8613
+ }
8614
+ }
8615
+ };
8608
8616
  _proto.reset = function reset(hide) {
8609
8617
  this.value = 1 + '';
8610
8618
  Select.prototype.reset.call(this, hide);
@@ -11864,7 +11872,7 @@ var THEME_DEFAULT_OPTIONS = {
11864
11872
  zh: zh,
11865
11873
  en: en
11866
11874
  };
11867
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.0.2-beta.5';
11875
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.0.2-beta.6';
11868
11876
 
11869
11877
  exports.Control = Control;
11870
11878
  exports.Fullscreen = Fullscreen;
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * @ezuikit/player-theme v2.0.2-beta.5
2
+ * @ezuikit/player-theme v2.0.2-beta.6
3
3
  * Copyright (c) 2025-12-09 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
@@ -4353,10 +4353,10 @@ function debounce(func, wait) {
4353
4353
  theme.emit(EVENTS.control.timeLineChange, date);
4354
4354
  });
4355
4355
  theme.controls.timeLineControl.on(EVENTS.control.timeLinePanelOpenChange, function(open) {
4356
- var _theme_controls_dateControl;
4357
- if ((_theme_controls_dateControl = theme.controls.dateControl) == null ? void 0 : _theme_controls_dateControl.dataPickerUtil) {
4358
- var _theme_controls_dateControl_dataPickerUtil, _theme_controls_dateControl1;
4359
- (_theme_controls_dateControl1 = theme.controls.dateControl) == null ? void 0 : (_theme_controls_dateControl_dataPickerUtil = _theme_controls_dateControl1.dataPickerUtil) == null ? void 0 : _theme_controls_dateControl_dataPickerUtil.hide();
4356
+ var _theme_controls_dateControl, _theme_controls;
4357
+ if ((_theme_controls = theme.controls) == null ? void 0 : (_theme_controls_dateControl = _theme_controls.dateControl) == null ? void 0 : _theme_controls_dateControl.dataPickerUtil) {
4358
+ var _theme_controls_dateControl_dataPickerUtil, _theme_controls_dateControl1, _theme_controls1;
4359
+ (_theme_controls1 = theme.controls) == null ? void 0 : (_theme_controls_dateControl1 = _theme_controls1.dateControl) == null ? void 0 : (_theme_controls_dateControl_dataPickerUtil = _theme_controls_dateControl1.dataPickerUtil) == null ? void 0 : _theme_controls_dateControl_dataPickerUtil.hide();
4360
4360
  }
4361
4361
  theme.emit(EVENTS.control.timeLinePanelOpenChange, open);
4362
4362
  });
@@ -8582,27 +8582,35 @@ var SPEED_DEFAULT_OPTIONS = {
8582
8582
  _assert_this_initialized(_this).emit(EVENTS.control.speedPanelOpenChange, open, value, item);
8583
8583
  }
8584
8584
  })) || this;
8585
+ _this._filterSpeedList(options.list, options.props.recType);
8585
8586
  _this.on(EVENTS.speedChange, function(speed) {
8586
8587
  if (_this.value !== speed + '') _this.value = speed + '';
8587
8588
  });
8588
8589
  _this.on(EVENTS.control.recTypeChange, function(type) {
8589
- if (!(options == null ? void 0 : options.list)) {
8590
- // 非用户自定义
8591
- if (type === 'rec') {
8592
- // 本地回放 不支持 8 16 32 倍速
8593
- var list = _this.list.filter(function(item) {
8594
- return (item == null ? void 0 : item.value) && +item.value < 8;
8595
- });
8596
- _this.updateOptions(list);
8597
- } else {
8598
- // 云端回放 支持 8 16 32 倍速
8599
- _this.updateOptions(SPEED_DEFAULT_OPTIONS.list);
8600
- }
8601
- }
8590
+ _this._filterSpeedList(options.list, type);
8602
8591
  });
8603
8592
  return _this;
8604
8593
  }
8605
8594
  var _proto = Speed.prototype;
8595
+ /**
8596
+ * 滤掉本地回放不支持的倍速
8597
+ * @param optionsList 初始化配置倍速列表
8598
+ * @param type 回放类型
8599
+ */ _proto._filterSpeedList = function _filterSpeedList(optionsList, type) {
8600
+ if (!optionsList) {
8601
+ // 非用户自定义
8602
+ if (type === 'rec') {
8603
+ // 本地回放 不支持 8 16 32 倍速
8604
+ var list = this.list.filter(function(item) {
8605
+ return (item == null ? void 0 : item.value) && +item.value < 8;
8606
+ });
8607
+ this.updateOptions(list);
8608
+ } else {
8609
+ // 云端回放 支持 8 16 32 倍速
8610
+ this.updateOptions(SPEED_DEFAULT_OPTIONS.list);
8611
+ }
8612
+ }
8613
+ };
8606
8614
  _proto.reset = function reset(hide) {
8607
8615
  this.value = 1 + '';
8608
8616
  Select.prototype.reset.call(this, hide);
@@ -11862,6 +11870,6 @@ var THEME_DEFAULT_OPTIONS = {
11862
11870
  zh: zh,
11863
11871
  en: en
11864
11872
  };
11865
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.0.2-beta.5';
11873
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.0.2-beta.6';
11866
11874
 
11867
11875
  export { Control, Fullscreen, Loading, Message, Play, Poster, Rec, Theme, Utils, Volume };
package/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * @ezuikit/player-theme v2.0.2-beta.5
2
+ * @ezuikit/player-theme v2.0.2-beta.6
3
3
  * Copyright (c) 2025-12-09 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
@@ -5965,10 +5965,10 @@
5965
5965
  theme.emit(EVENTS.control.timeLineChange, date);
5966
5966
  });
5967
5967
  theme.controls.timeLineControl.on(EVENTS.control.timeLinePanelOpenChange, function(open) {
5968
- var _theme_controls_dateControl;
5969
- if ((_theme_controls_dateControl = theme.controls.dateControl) == null ? void 0 : _theme_controls_dateControl.dataPickerUtil) {
5970
- var _theme_controls_dateControl_dataPickerUtil, _theme_controls_dateControl1;
5971
- (_theme_controls_dateControl1 = theme.controls.dateControl) == null ? void 0 : (_theme_controls_dateControl_dataPickerUtil = _theme_controls_dateControl1.dataPickerUtil) == null ? void 0 : _theme_controls_dateControl_dataPickerUtil.hide();
5968
+ var _theme_controls_dateControl, _theme_controls;
5969
+ if ((_theme_controls = theme.controls) == null ? void 0 : (_theme_controls_dateControl = _theme_controls.dateControl) == null ? void 0 : _theme_controls_dateControl.dataPickerUtil) {
5970
+ var _theme_controls_dateControl_dataPickerUtil, _theme_controls_dateControl1, _theme_controls1;
5971
+ (_theme_controls1 = theme.controls) == null ? void 0 : (_theme_controls_dateControl1 = _theme_controls1.dateControl) == null ? void 0 : (_theme_controls_dateControl_dataPickerUtil = _theme_controls_dateControl1.dataPickerUtil) == null ? void 0 : _theme_controls_dateControl_dataPickerUtil.hide();
5972
5972
  }
5973
5973
  theme.emit(EVENTS.control.timeLinePanelOpenChange, open);
5974
5974
  });
@@ -10208,27 +10208,35 @@
10208
10208
  _assert_this_initialized(_this).emit(EVENTS.control.speedPanelOpenChange, open, value, item);
10209
10209
  }
10210
10210
  })) || this;
10211
+ _this._filterSpeedList(options.list, options.props.recType);
10211
10212
  _this.on(EVENTS.speedChange, function(speed) {
10212
10213
  if (_this.value !== speed + '') _this.value = speed + '';
10213
10214
  });
10214
10215
  _this.on(EVENTS.control.recTypeChange, function(type) {
10215
- if (!(options == null ? void 0 : options.list)) {
10216
- // 非用户自定义
10217
- if (type === 'rec') {
10218
- // 本地回放 不支持 8 16 32 倍速
10219
- var list = _this.list.filter(function(item) {
10220
- return (item == null ? void 0 : item.value) && +item.value < 8;
10221
- });
10222
- _this.updateOptions(list);
10223
- } else {
10224
- // 云端回放 支持 8 16 32 倍速
10225
- _this.updateOptions(SPEED_DEFAULT_OPTIONS.list);
10226
- }
10227
- }
10216
+ _this._filterSpeedList(options.list, type);
10228
10217
  });
10229
10218
  return _this;
10230
10219
  }
10231
10220
  var _proto = Speed.prototype;
10221
+ /**
10222
+ * 滤掉本地回放不支持的倍速
10223
+ * @param optionsList 初始化配置倍速列表
10224
+ * @param type 回放类型
10225
+ */ _proto._filterSpeedList = function _filterSpeedList(optionsList, type) {
10226
+ if (!optionsList) {
10227
+ // 非用户自定义
10228
+ if (type === 'rec') {
10229
+ // 本地回放 不支持 8 16 32 倍速
10230
+ var list = this.list.filter(function(item) {
10231
+ return (item == null ? void 0 : item.value) && +item.value < 8;
10232
+ });
10233
+ this.updateOptions(list);
10234
+ } else {
10235
+ // 云端回放 支持 8 16 32 倍速
10236
+ this.updateOptions(SPEED_DEFAULT_OPTIONS.list);
10237
+ }
10238
+ }
10239
+ };
10232
10240
  _proto.reset = function reset(hide) {
10233
10241
  this.value = 1 + '';
10234
10242
  Select.prototype.reset.call(this, hide);
@@ -14089,7 +14097,7 @@
14089
14097
  zh: zh,
14090
14098
  en: en
14091
14099
  };
14092
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.0.2-beta.5';
14100
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.0.2-beta.6';
14093
14101
 
14094
14102
  // 不要动这里的代码, 这个出口是为了编译成 umd 规范的文件
14095
14103
 
package/dist/style.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * @ezuikit/player-theme v2.0.2-beta.5
2
+ * @ezuikit/player-theme v2.0.2-beta.6
3
3
  * Copyright (c) 2025-12-09 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
@@ -58,6 +58,7 @@ interface ControlOptions {
58
58
  * 音量大小 0-1 volume?: number;
59
59
  * 是否静音 muted?: boolean;
60
60
  * 浏览器选择角度 0 | 90 | 180 | 270 orientationAngle?: number;
61
+ * 所有属性值来源 constant.ts 文中 THEME_PROPS
61
62
  */
62
63
  props?: Record<(typeof THEME_PROPS)[number], number | string | Record<string, unknown>>;
63
64
  [key: string]: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ezuikit/player-theme",
3
- "version": "2.0.2-beta.5",
3
+ "version": "2.0.2-beta.6",
4
4
  "description": "player theme",
5
5
  "title": "theme",
6
6
  "main": "dist/index.js",