@ezuikit/player-theme 0.0.1-alpha.5 → 0.0.1-alpha.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 +10 -8
- package/dist/index.mjs +10 -8
- package/dist/index.umd.js +10 -8
- package/dist/style.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @ezuikit/player-theme v0.0.1-alpha.
|
|
3
|
-
* Copyright (c) 2025-10-
|
|
2
|
+
* @ezuikit/player-theme v0.0.1-alpha.6
|
|
3
|
+
* Copyright (c) 2025-10-13 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
@@ -6799,12 +6799,14 @@ function __filter(list, locale = {}) {
|
|
|
6799
6799
|
controlType: 'button',
|
|
6800
6800
|
classNameSuffix: 'definition',
|
|
6801
6801
|
renderLabel: (label, item, list)=>{
|
|
6802
|
+
var _list_;
|
|
6802
6803
|
if ((item == null ? void 0 : item.level) === 'auto') {
|
|
6803
6804
|
var _options_locales_options_language;
|
|
6804
|
-
const
|
|
6805
|
-
return `<span>${options == null ? void 0 : (_options_locales_options_language = options.locales[options.language]) == null ? void 0 : _options_locales_options_language.VIDEO_LEVEL_AUTO}(${(
|
|
6805
|
+
const realItem = list.find((it)=>it.level === this._level);
|
|
6806
|
+
return `<span>${options == null ? void 0 : (_options_locales_options_language = options.locales[options.language]) == null ? void 0 : _options_locales_options_language.VIDEO_LEVEL_AUTO}(${(realItem == null ? void 0 : realItem.name) || ''})</span>`;
|
|
6806
6807
|
}
|
|
6807
|
-
|
|
6808
|
+
// 如果 label 不存在,则不显示label,直接显示list的第一个label, 一般自定义清晰度列表可能会出现
|
|
6809
|
+
return `<span>${label || ((_list_ = list[0]) == null ? void 0 : _list_.label) || ''}</span>`;
|
|
6808
6810
|
},
|
|
6809
6811
|
onChange: (value, item)=>{
|
|
6810
6812
|
var _options_onChange;
|
|
@@ -6831,9 +6833,9 @@ function __filter(list, locale = {}) {
|
|
|
6831
6833
|
this._level = realLevel + '';
|
|
6832
6834
|
if (l === 'auto') {
|
|
6833
6835
|
var _options_locales_options_language;
|
|
6834
|
-
const
|
|
6836
|
+
const realItem = this.list.find((it)=>it.level === this._level);
|
|
6835
6837
|
this.$container.querySelector(`.${PREFIX_CLASS}-select-btn`).innerHTML = `
|
|
6836
|
-
<span>${options == null ? void 0 : (_options_locales_options_language = options.locales[options.language]) == null ? void 0 : _options_locales_options_language.VIDEO_LEVEL_AUTO}(${(
|
|
6838
|
+
<span>${options == null ? void 0 : (_options_locales_options_language = options.locales[options.language]) == null ? void 0 : _options_locales_options_language.VIDEO_LEVEL_AUTO}(${(realItem == null ? void 0 : realItem.name) || ''})</span>
|
|
6837
6839
|
`;
|
|
6838
6840
|
} else {
|
|
6839
6841
|
if (this.value !== this._level + '') this.value = this._level + '';
|
|
@@ -10605,7 +10607,7 @@ const THEME_DEFAULT_OPTIONS = {
|
|
|
10605
10607
|
zh,
|
|
10606
10608
|
en
|
|
10607
10609
|
};
|
|
10608
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '0.0.1-alpha.
|
|
10610
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '0.0.1-alpha.6';
|
|
10609
10611
|
|
|
10610
10612
|
exports.Control = Control;
|
|
10611
10613
|
exports.Fullscreen = Fullscreen;
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @ezuikit/player-theme v0.0.1-alpha.
|
|
3
|
-
* Copyright (c) 2025-10-
|
|
2
|
+
* @ezuikit/player-theme v0.0.1-alpha.6
|
|
3
|
+
* Copyright (c) 2025-10-13 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import EventEmitter from 'eventemitter3';
|
|
@@ -6795,12 +6795,14 @@ function __filter(list, locale = {}) {
|
|
|
6795
6795
|
controlType: 'button',
|
|
6796
6796
|
classNameSuffix: 'definition',
|
|
6797
6797
|
renderLabel: (label, item, list)=>{
|
|
6798
|
+
var _list_;
|
|
6798
6799
|
if ((item == null ? void 0 : item.level) === 'auto') {
|
|
6799
6800
|
var _options_locales_options_language;
|
|
6800
|
-
const
|
|
6801
|
-
return `<span>${options == null ? void 0 : (_options_locales_options_language = options.locales[options.language]) == null ? void 0 : _options_locales_options_language.VIDEO_LEVEL_AUTO}(${(
|
|
6801
|
+
const realItem = list.find((it)=>it.level === this._level);
|
|
6802
|
+
return `<span>${options == null ? void 0 : (_options_locales_options_language = options.locales[options.language]) == null ? void 0 : _options_locales_options_language.VIDEO_LEVEL_AUTO}(${(realItem == null ? void 0 : realItem.name) || ''})</span>`;
|
|
6802
6803
|
}
|
|
6803
|
-
|
|
6804
|
+
// 如果 label 不存在,则不显示label,直接显示list的第一个label, 一般自定义清晰度列表可能会出现
|
|
6805
|
+
return `<span>${label || ((_list_ = list[0]) == null ? void 0 : _list_.label) || ''}</span>`;
|
|
6804
6806
|
},
|
|
6805
6807
|
onChange: (value, item)=>{
|
|
6806
6808
|
var _options_onChange;
|
|
@@ -6827,9 +6829,9 @@ function __filter(list, locale = {}) {
|
|
|
6827
6829
|
this._level = realLevel + '';
|
|
6828
6830
|
if (l === 'auto') {
|
|
6829
6831
|
var _options_locales_options_language;
|
|
6830
|
-
const
|
|
6832
|
+
const realItem = this.list.find((it)=>it.level === this._level);
|
|
6831
6833
|
this.$container.querySelector(`.${PREFIX_CLASS}-select-btn`).innerHTML = `
|
|
6832
|
-
<span>${options == null ? void 0 : (_options_locales_options_language = options.locales[options.language]) == null ? void 0 : _options_locales_options_language.VIDEO_LEVEL_AUTO}(${(
|
|
6834
|
+
<span>${options == null ? void 0 : (_options_locales_options_language = options.locales[options.language]) == null ? void 0 : _options_locales_options_language.VIDEO_LEVEL_AUTO}(${(realItem == null ? void 0 : realItem.name) || ''})</span>
|
|
6833
6835
|
`;
|
|
6834
6836
|
} else {
|
|
6835
6837
|
if (this.value !== this._level + '') this.value = this._level + '';
|
|
@@ -10601,6 +10603,6 @@ const THEME_DEFAULT_OPTIONS = {
|
|
|
10601
10603
|
zh,
|
|
10602
10604
|
en
|
|
10603
10605
|
};
|
|
10604
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '0.0.1-alpha.
|
|
10606
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '0.0.1-alpha.6';
|
|
10605
10607
|
|
|
10606
10608
|
export { Control, Fullscreen, Loading, Message, Play, Poster, Rec, Theme, Utils, Volume, Theme as default };
|
package/dist/index.umd.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @ezuikit/player-theme v0.0.1-alpha.
|
|
3
|
-
* Copyright (c) 2025-10-
|
|
2
|
+
* @ezuikit/player-theme v0.0.1-alpha.6
|
|
3
|
+
* Copyright (c) 2025-10-13 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
(function (global, factory) {
|
|
@@ -9416,14 +9416,16 @@
|
|
|
9416
9416
|
controlType: 'button',
|
|
9417
9417
|
classNameSuffix: 'definition',
|
|
9418
9418
|
renderLabel: function(label, item, list) {
|
|
9419
|
+
var _list_;
|
|
9419
9420
|
if ((item == null ? void 0 : item.level) === 'auto') {
|
|
9420
9421
|
var _options_locales_options_language;
|
|
9421
|
-
var
|
|
9422
|
+
var realItem = list.find(function(it) {
|
|
9422
9423
|
return it.level === _assert_this_initialized$1(_this)._level;
|
|
9423
9424
|
});
|
|
9424
|
-
return "<span>" + (options == null ? void 0 : (_options_locales_options_language = options.locales[options.language]) == null ? void 0 : _options_locales_options_language.VIDEO_LEVEL_AUTO) + "(" + ((
|
|
9425
|
+
return "<span>" + (options == null ? void 0 : (_options_locales_options_language = options.locales[options.language]) == null ? void 0 : _options_locales_options_language.VIDEO_LEVEL_AUTO) + "(" + ((realItem == null ? void 0 : realItem.name) || '') + ")</span>";
|
|
9425
9426
|
}
|
|
9426
|
-
|
|
9427
|
+
// 如果 label 不存在,则不显示label,直接显示list的第一个label, 一般自定义清晰度列表可能会出现
|
|
9428
|
+
return "<span>" + (label || ((_list_ = list[0]) == null ? void 0 : _list_.label) || '') + "</span>";
|
|
9427
9429
|
},
|
|
9428
9430
|
onChange: function(value, item) {
|
|
9429
9431
|
var _options_onChange;
|
|
@@ -9450,10 +9452,10 @@
|
|
|
9450
9452
|
_this._level = realLevel + '';
|
|
9451
9453
|
if (l === 'auto') {
|
|
9452
9454
|
var _options_locales_options_language;
|
|
9453
|
-
var
|
|
9455
|
+
var realItem = _this.list.find(function(it) {
|
|
9454
9456
|
return it.level === _this._level;
|
|
9455
9457
|
});
|
|
9456
|
-
_this.$container.querySelector("." + PREFIX_CLASS + "-select-btn").innerHTML = "\n <span>" + (options == null ? void 0 : (_options_locales_options_language = options.locales[options.language]) == null ? void 0 : _options_locales_options_language.VIDEO_LEVEL_AUTO) + "(" + ((
|
|
9458
|
+
_this.$container.querySelector("." + PREFIX_CLASS + "-select-btn").innerHTML = "\n <span>" + (options == null ? void 0 : (_options_locales_options_language = options.locales[options.language]) == null ? void 0 : _options_locales_options_language.VIDEO_LEVEL_AUTO) + "(" + ((realItem == null ? void 0 : realItem.name) || '') + ")</span>\n ";
|
|
9457
9459
|
} else {
|
|
9458
9460
|
if (_this.value !== _this._level + '') _this.value = _this._level + '';
|
|
9459
9461
|
}
|
|
@@ -13850,7 +13852,7 @@
|
|
|
13850
13852
|
zh: zh,
|
|
13851
13853
|
en: en
|
|
13852
13854
|
};
|
|
13853
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '0.0.1-alpha.
|
|
13855
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '0.0.1-alpha.6';
|
|
13854
13856
|
|
|
13855
13857
|
// 不要动这里的代码, 这个出口是为了编译成 umd 规范的文件
|
|
13856
13858
|
|
package/dist/style.js
CHANGED