@ezuikit/player-theme 2.1.0-beta.1 → 2.1.0-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 +2 -2
- package/dist/index.js +8 -5
- package/dist/index.mjs +8 -5
- package/dist/index.umd.js +8 -5
- package/dist/style.js +2 -2
- package/package.json +1 -1
package/dist/constant.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @ezuikit/player-theme v2.1.0-beta.
|
|
3
|
-
* Copyright (c) 2025-12-
|
|
2
|
+
* @ezuikit/player-theme v2.1.0-beta.3
|
|
3
|
+
* Copyright (c) 2025-12-30 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
@@ -1911,7 +1911,10 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1911
1911
|
if (this._lastVolume !== _volume) {
|
|
1912
1912
|
this._volume = _volume;
|
|
1913
1913
|
this._lastVolume = this._volume;
|
|
1914
|
-
if (this._progress)
|
|
1914
|
+
if (this._progress) {
|
|
1915
|
+
// 静音时进度条为 0
|
|
1916
|
+
this._progress.value = this._muted ? 0 : _volume;
|
|
1917
|
+
}
|
|
1915
1918
|
this._options.onChange == null ? void 0 : this._options.onChange.call(this._options, _volume, this._muted);
|
|
1916
1919
|
this.emit(EVENTS.control.volumechange, _volume, this._muted);
|
|
1917
1920
|
}
|
|
@@ -8716,7 +8719,7 @@ function _set_prototype_of$6(o, p) {
|
|
|
8716
8719
|
],
|
|
8717
8720
|
badges: ((_this_options_props = this.options.props) == null ? void 0 : _this_options_props.recMonth) || [],
|
|
8718
8721
|
language: this.options.language === 'zh' ? 'zh' : 'en',
|
|
8719
|
-
current:
|
|
8722
|
+
current: require$$1.DateTime.toDate(this._value),
|
|
8720
8723
|
placement: 'tr',
|
|
8721
8724
|
triggerClose: true,
|
|
8722
8725
|
disabledDate: function(date) {
|
|
@@ -11388,7 +11391,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11388
11391
|
zh: zh,
|
|
11389
11392
|
en: en
|
|
11390
11393
|
};
|
|
11391
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.
|
|
11394
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.3';
|
|
11392
11395
|
|
|
11393
11396
|
exports.Control = Control;
|
|
11394
11397
|
exports.EVENTS = EVENTS;
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @ezuikit/player-theme v2.1.0-beta.
|
|
3
|
-
* Copyright (c) 2025-12-
|
|
2
|
+
* @ezuikit/player-theme v2.1.0-beta.3
|
|
3
|
+
* Copyright (c) 2025-12-30 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import EventEmitter from 'eventemitter3';
|
|
@@ -1909,7 +1909,10 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1909
1909
|
if (this._lastVolume !== _volume) {
|
|
1910
1910
|
this._volume = _volume;
|
|
1911
1911
|
this._lastVolume = this._volume;
|
|
1912
|
-
if (this._progress)
|
|
1912
|
+
if (this._progress) {
|
|
1913
|
+
// 静音时进度条为 0
|
|
1914
|
+
this._progress.value = this._muted ? 0 : _volume;
|
|
1915
|
+
}
|
|
1913
1916
|
this._options.onChange == null ? void 0 : this._options.onChange.call(this._options, _volume, this._muted);
|
|
1914
1917
|
this.emit(EVENTS.control.volumechange, _volume, this._muted);
|
|
1915
1918
|
}
|
|
@@ -8714,7 +8717,7 @@ function _set_prototype_of$6(o, p) {
|
|
|
8714
8717
|
],
|
|
8715
8718
|
badges: ((_this_options_props = this.options.props) == null ? void 0 : _this_options_props.recMonth) || [],
|
|
8716
8719
|
language: this.options.language === 'zh' ? 'zh' : 'en',
|
|
8717
|
-
current:
|
|
8720
|
+
current: DateTime.toDate(this._value),
|
|
8718
8721
|
placement: 'tr',
|
|
8719
8722
|
triggerClose: true,
|
|
8720
8723
|
disabledDate: function(date) {
|
|
@@ -11386,6 +11389,6 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11386
11389
|
zh: zh,
|
|
11387
11390
|
en: en
|
|
11388
11391
|
};
|
|
11389
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.
|
|
11392
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.3';
|
|
11390
11393
|
|
|
11391
11394
|
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 v2.1.0-beta.
|
|
3
|
-
* Copyright (c) 2025-12-
|
|
2
|
+
* @ezuikit/player-theme v2.1.0-beta.3
|
|
3
|
+
* Copyright (c) 2025-12-30 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
(function (global, factory) {
|
|
@@ -3160,7 +3160,10 @@
|
|
|
3160
3160
|
if (this._lastVolume !== _volume) {
|
|
3161
3161
|
this._volume = _volume;
|
|
3162
3162
|
this._lastVolume = this._volume;
|
|
3163
|
-
if (this._progress)
|
|
3163
|
+
if (this._progress) {
|
|
3164
|
+
// 静音时进度条为 0
|
|
3165
|
+
this._progress.value = this._muted ? 0 : _volume;
|
|
3166
|
+
}
|
|
3164
3167
|
this._options.onChange == null ? void 0 : this._options.onChange.call(this._options, _volume, this._muted);
|
|
3165
3168
|
this.emit(EVENTS.control.volumechange, _volume, this._muted);
|
|
3166
3169
|
}
|
|
@@ -10495,7 +10498,7 @@
|
|
|
10495
10498
|
],
|
|
10496
10499
|
badges: ((_this_options_props = this.options.props) == null ? void 0 : _this_options_props.recMonth) || [],
|
|
10497
10500
|
language: this.options.language === 'zh' ? 'zh' : 'en',
|
|
10498
|
-
current:
|
|
10501
|
+
current: distExports$6.DateTime.toDate(this._value),
|
|
10499
10502
|
placement: 'tr',
|
|
10500
10503
|
triggerClose: true,
|
|
10501
10504
|
disabledDate: function(date) {
|
|
@@ -13768,7 +13771,7 @@
|
|
|
13768
13771
|
zh: zh,
|
|
13769
13772
|
en: en
|
|
13770
13773
|
};
|
|
13771
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.
|
|
13774
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.3';
|
|
13772
13775
|
|
|
13773
13776
|
// 不要动这里的代码, 这个出口是为了编译成 umd 规范的文件
|
|
13774
13777
|
|
package/dist/style.js
CHANGED