@ezuikit/player-theme 2.1.0-beta.3 → 2.1.0-beta.5

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/README.md CHANGED
@@ -1 +1,40 @@
1
- # EZUIKit-player-theme
1
+ ## 简介
2
+
3
+ 萤石播放器主题
4
+
5
+ ## 快速入门
6
+
7
+ ```ts
8
+ import Theme from '@ezuikit/player-theme';
9
+ // 引入样式
10
+ import '@ezuikit/player-theme/dist/style.css';
11
+
12
+ // 使用
13
+ const theme = new Theme({
14
+ // ...
15
+ });
16
+
17
+ // 播放器接入主题
18
+ class Player extends Theme {
19
+ constructor(options) {
20
+ super(options);
21
+ // ...
22
+ }
23
+ // ...
24
+ }
25
+ ```
26
+
27
+ ## 样式变量
28
+
29
+ ```scss
30
+ --ezplayer-default-color: #fff;
31
+ --ezplayer-primary-color: #407aff;
32
+ --ezplayer-active-color: var(--ezplayer-primary-color, #407aff);
33
+ --ezplayer-disabled-color: #aaa;
34
+ --ezplayer-font-size: 14px;
35
+ --ezplayer-icon-font-size: 24px;
36
+ --ezplayer-btn-height: var(--ezplayer-icon-font-size, 24px);
37
+ --ezplayer-border-radius: 8px;
38
+ // 移动端暂时不生效
39
+ --ezplayer-picker-panel-bg-color: rgba(0, 0, 0, 0.7);
40
+ ```
package/dist/constant.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v2.1.0-beta.3
3
- * Copyright (c) 2025-12-30 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v2.1.0-beta.5
3
+ * Copyright (c) 2026-01-03 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.3
3
- * Copyright (c) 2025-12-30 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v2.1.0-beta.5
3
+ * Copyright (c) 2026-01-03 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  'use strict';
@@ -4392,12 +4392,6 @@ function debounce(func, wait) {
4392
4392
  theme.emit(EVENTS.control.recDestroy);
4393
4393
  });
4394
4394
  }
4395
- // content
4396
- if (theme.contentControl) {
4397
- theme.contentControl.on(EVENTS.control.contentRerender, function(info) {
4398
- theme.emit(EVENTS.control.contentRerender, info);
4399
- });
4400
- }
4401
4395
  }
4402
4396
  var ignoreList = [
4403
4397
  EVENTS.getOSDTime,
@@ -10195,6 +10189,9 @@ var THEME_DEFAULT_OPTIONS = {
10195
10189
  },
10196
10190
  scaleMode: _this.scaleMode
10197
10191
  });
10192
+ _this.contentControl.on(EVENTS.control.contentRerender, function(info) {
10193
+ _this.emit(EVENTS.control.contentRerender, info);
10194
+ });
10198
10195
  // zoom utils
10199
10196
  __zoom(_this, _this.contentControl.$content, _extends({}, _this.options.zoomOptions || {}, {
10200
10197
  onTap: function() {
@@ -11391,7 +11388,7 @@ var THEME_DEFAULT_OPTIONS = {
11391
11388
  zh: zh,
11392
11389
  en: en
11393
11390
  };
11394
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.3';
11391
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.5';
11395
11392
 
11396
11393
  exports.Control = Control;
11397
11394
  exports.EVENTS = EVENTS;
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v2.1.0-beta.3
3
- * Copyright (c) 2025-12-30 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v2.1.0-beta.5
3
+ * Copyright (c) 2026-01-03 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import EventEmitter from 'eventemitter3';
@@ -4390,12 +4390,6 @@ function debounce(func, wait) {
4390
4390
  theme.emit(EVENTS.control.recDestroy);
4391
4391
  });
4392
4392
  }
4393
- // content
4394
- if (theme.contentControl) {
4395
- theme.contentControl.on(EVENTS.control.contentRerender, function(info) {
4396
- theme.emit(EVENTS.control.contentRerender, info);
4397
- });
4398
- }
4399
4393
  }
4400
4394
  var ignoreList = [
4401
4395
  EVENTS.getOSDTime,
@@ -10193,6 +10187,9 @@ var THEME_DEFAULT_OPTIONS = {
10193
10187
  },
10194
10188
  scaleMode: _this.scaleMode
10195
10189
  });
10190
+ _this.contentControl.on(EVENTS.control.contentRerender, function(info) {
10191
+ _this.emit(EVENTS.control.contentRerender, info);
10192
+ });
10196
10193
  // zoom utils
10197
10194
  __zoom(_this, _this.contentControl.$content, _extends({}, _this.options.zoomOptions || {}, {
10198
10195
  onTap: function() {
@@ -11389,6 +11386,6 @@ var THEME_DEFAULT_OPTIONS = {
11389
11386
  zh: zh,
11390
11387
  en: en
11391
11388
  };
11392
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.3';
11389
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.5';
11393
11390
 
11394
11391
  export { Control, EVENTS, Fullscreen, Loading, Message, Play, Poster, Rec, Theme, Utils, Volume };