@ezuikit/player-theme 2.1.0-beta.11 → 2.1.0-beta.12

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 v2.1.0-beta.11
3
- * Copyright (c) 2026-01-16 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v2.1.0-beta.12
3
+ * Copyright (c) 2026-01-19 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  /**
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v2.1.0-beta.11
3
- * Copyright (c) 2026-01-16 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v2.1.0-beta.12
3
+ * Copyright (c) 2026-01-19 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  'use strict';
@@ -10406,7 +10406,7 @@ var THEME_DEFAULT_OPTIONS = {
10406
10406
  _inherits(Theme, EventEmitter);
10407
10407
  function Theme(options) {
10408
10408
  var _this;
10409
- var _this_options_volumeOptions, _this_options_volumeOptions1, _this_options_speedOptions, _this_options, _this_options1;
10409
+ var _this_options_volumeOptions, _this_options_volumeOptions1, _this_options_speedOptions, _this_options, _this_options1, _this_options2, _this_options3;
10410
10410
  _this = EventEmitter.call(this) || this, /** 播放器配置项 */ _this.options = THEME_DEFAULT_OPTIONS, _this.staticPath = '', /** 所有控件列表, 所有控件名称规则(`${iconId}Control`), 如音量控件 this.controls["volumeControl"] @since 0.0.1 */ _this.controls = {}, /**
10411
10411
  * @since 0.0.1
10412
10412
  * @private
@@ -10492,7 +10492,8 @@ var THEME_DEFAULT_OPTIONS = {
10492
10492
  'flv',
10493
10493
  'hls',
10494
10494
  'mp4'
10495
- ].includes(options.type) ? LiveTemplate : (_ref3 = (_this_options_template = (_this_options = _this.options) == null ? void 0 : _this_options.template) != null ? _this_options_template : (_this_options1 = _this.options) == null ? void 0 : _this_options1.themeData) != null ? _ref3 : null);
10495
+ ].includes(options.type) ? ((_this_options = _this.options) == null ? void 0 : _this_options.themeData) !== undefined ? (_this_options1 = _this.options) == null ? void 0 : _this_options1.themeData : LiveTemplate // 标准流仅支持 null 和 LiveTemplate (支持自定义 2026-01-19)
10496
+ : (_ref3 = (_this_options_template = (_this_options2 = _this.options) == null ? void 0 : _this_options2.template) != null ? _this_options_template : (_this_options3 = _this.options) == null ? void 0 : _this_options3.themeData) != null ? _ref3 : null);
10496
10497
  _this._addEventListener();
10497
10498
  _themeEventemitter(_this);
10498
10499
  return _this;
@@ -11680,7 +11681,7 @@ var THEME_DEFAULT_OPTIONS = {
11680
11681
  zh: zh,
11681
11682
  en: en
11682
11683
  };
11683
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.11';
11684
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.12';
11684
11685
 
11685
11686
  exports.Control = Control;
11686
11687
  exports.EVENTS = EVENTS;
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v2.1.0-beta.11
3
- * Copyright (c) 2026-01-16 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v2.1.0-beta.12
3
+ * Copyright (c) 2026-01-19 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import EventEmitter from 'eventemitter3';
@@ -10404,7 +10404,7 @@ var THEME_DEFAULT_OPTIONS = {
10404
10404
  _inherits(Theme, EventEmitter);
10405
10405
  function Theme(options) {
10406
10406
  var _this;
10407
- var _this_options_volumeOptions, _this_options_volumeOptions1, _this_options_speedOptions, _this_options, _this_options1;
10407
+ var _this_options_volumeOptions, _this_options_volumeOptions1, _this_options_speedOptions, _this_options, _this_options1, _this_options2, _this_options3;
10408
10408
  _this = EventEmitter.call(this) || this, /** 播放器配置项 */ _this.options = THEME_DEFAULT_OPTIONS, _this.staticPath = '', /** 所有控件列表, 所有控件名称规则(`${iconId}Control`), 如音量控件 this.controls["volumeControl"] @since 0.0.1 */ _this.controls = {}, /**
10409
10409
  * @since 0.0.1
10410
10410
  * @private
@@ -10490,7 +10490,8 @@ var THEME_DEFAULT_OPTIONS = {
10490
10490
  'flv',
10491
10491
  'hls',
10492
10492
  'mp4'
10493
- ].includes(options.type) ? LiveTemplate : (_ref3 = (_this_options_template = (_this_options = _this.options) == null ? void 0 : _this_options.template) != null ? _this_options_template : (_this_options1 = _this.options) == null ? void 0 : _this_options1.themeData) != null ? _ref3 : null);
10493
+ ].includes(options.type) ? ((_this_options = _this.options) == null ? void 0 : _this_options.themeData) !== undefined ? (_this_options1 = _this.options) == null ? void 0 : _this_options1.themeData : LiveTemplate // 标准流仅支持 null 和 LiveTemplate (支持自定义 2026-01-19)
10494
+ : (_ref3 = (_this_options_template = (_this_options2 = _this.options) == null ? void 0 : _this_options2.template) != null ? _this_options_template : (_this_options3 = _this.options) == null ? void 0 : _this_options3.themeData) != null ? _ref3 : null);
10494
10495
  _this._addEventListener();
10495
10496
  _themeEventemitter(_this);
10496
10497
  return _this;
@@ -11678,6 +11679,6 @@ var THEME_DEFAULT_OPTIONS = {
11678
11679
  zh: zh,
11679
11680
  en: en
11680
11681
  };
11681
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.11';
11682
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.12';
11682
11683
 
11683
11684
  export { Control, EVENTS, Fullscreen, Loading, Message, Play, Poster, Rec, Theme, Utils, Volume };