@ezuikit/player-theme 2.1.0-beta.1 → 2.1.0-beta.2
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.2
|
|
3
|
+
* Copyright (c) 2025-12-30 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
@@ -1746,7 +1746,7 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1746
1746
|
_this._lastVolume = _this._volume;
|
|
1747
1747
|
_this._muted = !!((_this__options_props3 = _this._options.props) == null ? void 0 : _this__options_props3.muted) || false;
|
|
1748
1748
|
// 轻应用私有暂时不支持调节音量
|
|
1749
|
-
if (!(Utils.isMobile || _this._options.PLAY_TYPE
|
|
1749
|
+
if (!(Utils.isMobile || _this._options.PLAY_TYPE !== 'ezopen')) {
|
|
1750
1750
|
var _this__options_props4, _this__options_props5;
|
|
1751
1751
|
_this.picker = new Picker(_this.$container, {
|
|
1752
1752
|
getPopupContainer: function() {
|
|
@@ -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
|
}
|
|
@@ -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.2';
|
|
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.2
|
|
3
|
+
* Copyright (c) 2025-12-30 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import EventEmitter from 'eventemitter3';
|
|
@@ -1744,7 +1744,7 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1744
1744
|
_this._lastVolume = _this._volume;
|
|
1745
1745
|
_this._muted = !!((_this__options_props3 = _this._options.props) == null ? void 0 : _this__options_props3.muted) || false;
|
|
1746
1746
|
// 轻应用私有暂时不支持调节音量
|
|
1747
|
-
if (!(Utils.isMobile || _this._options.PLAY_TYPE
|
|
1747
|
+
if (!(Utils.isMobile || _this._options.PLAY_TYPE !== 'ezopen')) {
|
|
1748
1748
|
var _this__options_props4, _this__options_props5;
|
|
1749
1749
|
_this.picker = new Picker(_this.$container, {
|
|
1750
1750
|
getPopupContainer: function() {
|
|
@@ -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
|
}
|
|
@@ -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.2';
|
|
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.2
|
|
3
|
+
* Copyright (c) 2025-12-30 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
(function (global, factory) {
|
|
@@ -2995,7 +2995,7 @@
|
|
|
2995
2995
|
_this._lastVolume = _this._volume;
|
|
2996
2996
|
_this._muted = !!((_this__options_props3 = _this._options.props) == null ? void 0 : _this__options_props3.muted) || false;
|
|
2997
2997
|
// 轻应用私有暂时不支持调节音量
|
|
2998
|
-
if (!(Utils.isMobile || _this._options.PLAY_TYPE
|
|
2998
|
+
if (!(Utils.isMobile || _this._options.PLAY_TYPE !== 'ezopen')) {
|
|
2999
2999
|
var _this__options_props4, _this__options_props5;
|
|
3000
3000
|
_this.picker = new Picker(_this.$container, {
|
|
3001
3001
|
getPopupContainer: function() {
|
|
@@ -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
|
}
|
|
@@ -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.2';
|
|
13772
13775
|
|
|
13773
13776
|
// 不要动这里的代码, 这个出口是为了编译成 umd 规范的文件
|
|
13774
13777
|
|
package/dist/style.js
CHANGED